https://github.com/starcoinorg/usbsolver
https://github.com/starcoinorg/usbsolver
Last synced: 6 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/starcoinorg/usbsolver
- Owner: starcoinorg
- Created: 2020-11-09T04:17:59.000Z (almost 5 years ago)
- Default Branch: master
- Last Pushed: 2021-06-28T02:23:04.000Z (over 4 years ago)
- Last Synced: 2025-03-27T20:40:00.293Z (7 months ago)
- Language: Rust
- Size: 241 KB
- Stars: 6
- Watchers: 3
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.org
Awesome Lists containing this project
README
* Usb solver
** Compile
#+BEGIN_SRC bash
cargo build
#+END_SRC
then, you get a shared libary named libsolver.so (linux) or libsolver.dylib (macos) under ./target/debug/** Plugin to miner_client
#+BEGIN_SRC bash
starcoin_miner -p ${path_of_the_solver_libary}
#+END_SRC** Plugin to starcoin node
Edit the config.yaml of starcoin node, in miner.client_config session
#+BEGIN_SRC
[miner.client_config]
plugin_path = ${path_of_the_solver_libary}
#+END_SRC** Q&A
libstd not find error, set env below:Macos:
#+BEGIN_SRC
export RUST_SRC_PATH="$(rustc --print sysroot)/lib/rustlib/src/rust/src"
export DYLD_LIBRARY_PATH="$(rustc --print sysroot)/lib:$DYLD_LIBRARY_PATH"
#+END_SRCLinux:
#+BEGIN_SRC
export RUST_SRC_PATH="$(rustc --print sysroot)/lib/rustlib/src/rust/src"
export LD_LIBRARY_PATH="$(rustc --print sysroot)/lib:$LD_LIBRARY_PATH"
#+END_SRC