This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#[macro_use] extern crate rustler; | |
#[macro_use] extern crate lazy_static; | |
extern crate ethash; | |
extern crate ethcore_util; | |
use rustler::{NifEnv, NifTerm, NifResult, NifEncoder}; | |
use ethash::{EthashManager}; | |
use ethcore_util::*; | |
mod atoms { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#[macro_use] extern crate rustler; | |
#[macro_use] extern crate lazy_static; | |
extern crate ethash; | |
extern crate ethcore_util; | |
use rustler::{NifEnv, NifTerm, NifResult, NifEncoder}; | |
use ethash::{EthashManager}; | |
use ethcore_util::*; | |
mod atoms { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
07:18:02:364 1328 args: -epool 192.168.1.34:9999 -mport 0 -ewal 0xf50291114666904b23728D6776823ba3ECE59145 -eworker r1 -tstop 85 -allcoins 1 -di 1 | |
07:18:02:416 1328 | |
07:18:02:425 1328 …ÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕª | |
07:18:02:433 1328 ∫ Claymore's Dual ETH + DCR/SC/LBC/PASC GPU Miner v9.5 ∫ | |
07:18:02:442 1328 »ÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕÕº | |
07:18:02:450 1328 | |
07:18:02:673 1328 ETH: 1 pool is specified | |
07:18:02:673 1328 Main Ethereum pool is 192.168.1.34:9999 | |
07:18:02:688 1328 DCR: 0 pool is specified | |
07:18:04:605 1328 OpenCL platform: AMD Accelerated Parallel Processing |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
znda2HktFcxLukbqhrtzZDYvyM1cwUKJbFr |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
error: linking with `cc` failed: exit code: 1 | |
| | |
= note: "cc" "-m64" "-L" "/Users/ssbb/.rustup/toolchains/1.17.0-x86_64-apple-darwin/lib/rustlib/x86_64-apple-darwin/lib" "/Users/ssbb/Workspace/pool/_build/dev/rustler_crates/ethash_bridge/debug/deps/ethash_bridge.0.o" "-o" "/Users/ssbb/Workspace/pool/_build/dev/rustler_crates/ethash_bridge/debug/deps/libethash_bridge.dylib" "/Users/ssbb/Workspace/pool/_build/dev/rustler_crates/ethash_bridge/debug/deps/ethash_bridge.crate.metadata.o" "-Wl,-dead_strip" "-nodefaultlibs" "-L" "/Users/ssbb/Workspace/pool/_build/dev/rustler_crates/ethash_bridge/debug/deps" "-L" "/Users/ssbb/Workspace/pool/_build/dev/rustler_crates/ethash_bridge/debug/build/sha3-1eae2c971b047dee/out" "-L" "/Users/ssbb/Workspace/pool/_build/dev/rustler_crates/ethash_bridge/debug/build/rust-crypto-1726770e89591a2e/out" "-L" "/Users/ssbb/Workspace/pool/_build/dev/rustler_crates/ethash_bridge/debug/build/rocksdb-sys-b69a8359734b930d/out" "-L" "/Users/ssbb/Workspace/pool/_build/dev/rustler_crates/ethas |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
fn verify<'a>(env: NifEnv<'a>, args: &[NifTerm<'a>]) -> NifResult<NifTerm<'a>> { | |
let block_number: u64 = try!(args[0].decode()); | |
let header_hash: &'a str = try!(args[1].decode()); | |
let nonce: u64 = try!(args[2].decode()); | |
let ethash = EthashManager::new(); | |
let result = ethash.compute_light(block_number, get_bytes_ref(header_hash), nonce); | |
Ok((atoms::ok(), result).encode(env)) | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
fn verify<'a>(env: NifEnv<'a>, args: &[NifTerm<'a>]) -> NifResult<NifTerm<'a>> { | |
let block_number: u64 = try!(args[0].decode()); | |
let header_hash: &'a str = try!(args[1].decode()); | |
let nonce: u64 = try!(args[2].decode()); | |
let ethash = EthashManager::new(); | |
let result = ethash.compute_light(block_number, get_bytes_ref(header_hash), nonce); | |
Ok((atoms::ok(), result).encode(env)) | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
t1ZbiB9qq3uK3E8QWwL2FX3rMQupPEMfiFG |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
bDA2wmxsQ9TdYKdVCYpAW8dD4UANcjxnSL |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
0xf50291114666904b23728D6776823ba3ECE59145 |