revoxhere / duino-coin

ᕲ Duino-Coin is a coin that can be mined with almost everything, including Arduino boards.

Home Page:https://duinocoin.com

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Rust fails to compile the fasthash accelerations

Mike404-source opened this issue · comments

Both compiled and source versions of PC_Miner are not running. Both versions seem to "hang" on user verification and no config file is written. The generated url does produce good results when entered manually in a browser.

I am getting a libducohash error too on the new release

I am also getting an libducohash error with the 4.1:

error[E0599]: no method named add_class found for reference &pyo3::prelude::P yModule in the current scope
--> src/lib.rs:44:7
|
44 | m.add_class::()?;
| ^^^^^^^^^ method not found in &PyModule

error[E0277]: the trait bound &pyo3::prelude::PyModule: From<BoundRef<'_, '_, p yo3::prelude::PyModule>> is not satisfied
--> src/lib.rs:42:1
|
42 | #[pymodule]
| ^^^^^^^^^^^ the trait From<BoundRef<'_, '_, pyo3::prelude::PyModule>> is not implemented for &pyo3::prelude::PyModule, which is required by BoundRef<' _, '_, pyo3::prelude::PyModule>: Into<_>
|
= note: required for BoundRef<'_, '_, pyo3::prelude::PyModule> to implement Into<&pyo3::prelude::PyModule>
= note: this error originates in the attribute macro pymodule (in Nightly b uilds, run with -Z macro-backtrace for more info)

Some errors have detailed explanations: E0277, E0599.
For more information about an error, try rustc --explain E0277.
error: could not compile ducohasher (lib) due to 2 previous errors

Screenshot_20240623_114110_Chrome.jpg

Just to reaport after upgraded to 4.1 version, I'm using 10 ESP32 device, hashrate increase from around 8x to 9x KH/s and reject also increase.

This is preventing the docker container I made from being able to update.
For now I've removed it, so we'll have to deal without the fasthash.
Please notify me when this is fixed. I'll try and monitor either way.

Possible fix is to hardcode the rust version. But I'll have to look into that when I have more time.

Same eror

root@server-inspiron:/mnt/SysHDD/Applications/DuinoCoin/V4.1/libducohash# cargo build --release
   Compiling ducohasher v0.1.0 (/mnt/SysHDD/Applications/DuinoCoin/V4.1/libducohash)
error[E0599]: no method named `add_class` found for reference `&pyo3::types::PyModule` in the current scope
  --> src/lib.rs:44:7
   |
44 |     m.add_class::<DUCOHasher>()?;
   |       ^^^^^^^^^ method not found in `&PyModule`

error[E0277]: the trait bound `&pyo3::types::PyModule: From<BoundRef<'_, '_, pyo3::types::PyModule>>` is not satisfied
  --> src/lib.rs:42:1
   |
42 | #[pymodule]
   | ^^^^^^^^^^^ the trait `From<BoundRef<'_, '_, pyo3::types::PyModule>>` is not implemented for `&pyo3::types::PyModule`, which is required by `BoundRef<'_, '_, pyo3::types::PyModule>: Into<_>`
   |
   = note: required for `BoundRef<'_, '_, pyo3::types::PyModule>` to implement `Into<&pyo3::types::PyModule>`
   = note: this error originates in the attribute macro `pymodule` (in Nightly builds, run with -Z macro-backtrace for more info)

Some errors have detailed explanations: E0277, E0599.
For more information about an error, try `rustc --explain E0277`.
error: could not compile `ducohasher` (lib) due to 2 previous errors