Skip to content

Instantly share code, notes, and snippets.

View photis's full-sized avatar

Photis Phudge photis

  • Crete, Greece / Ρηνανία-Παλατινάτο
View GitHub Profile
$ cargo build
Updating registry `https://github.com/rust-lang/crates.io-index`
Updating git repository `https://github.com/mimblewimble/rust-secp256k1-zkp`
Updating git repository `https://github.com/danburkert/memmap-rs`
Updating git repository `https://github.com/mimblewimble/cuckoo-miner`
Updating git repository `https://github.com/hyperium/hyper`
Compiling byteorder v0.5.3
Compiling typeable v0.1.2
Compiling bitflags v0.9.1
Compiling matches v0.1.6
$ cargo build
Compiling lazycell v0.5.1
Compiling num-traits v0.1.40
Compiling winapi-build v0.1.1
Compiling log v0.3.8
Compiling itoa v0.3.4
Compiling take v0.1.0
Compiling rustc-serialize v0.3.24
Compiling regex-syntax v0.3.9
Compiling libc v0.2.31
@photis
photis / wallet.dat
Created November 17, 2017 14:28
wallet.dat
{
"outputs": {
"b7f3768fa0684c8e4eff": {
"root_key_id": "73b9e02a38efe0dd353f",
"key_id": "b7f3768fa0684c8e4eff",
"n_child": 5,
"value": 50000000000,
"status": "Spent",
"height": 984,
"lock_height": 1984,
@photis
photis / gist:f8cbfd3de4dcd6e80e4fbfdccf73ab3e
Created November 18, 2017 08:34
syncing-after-restart-server
Nov 18 10:04:06.230 INFO Using configuration file at: /home/bitman/Projects/mimble/server/grin.toml
Nov 18 10:04:06.231 INFO Starting the Grin server...
Nov 18 10:04:06.259 INFO Saved genesis block with hash: e17ea64f, nonce: 28205, pow: Cuckoo(21e 7a2 eae 144e 1b1c 1fbd 203a 214b 293b 2b74 2bfa 2c26 32bb 346a 34c7 37c5 4164 42cc 4cc3 55af 5a70 5b14 5e1c 5f76 6061 60f9 61d7 6318 63a1 63fb 649b 64e5 65a1 6b69 70f8 71c7 71cd 7492 7b11 7db8 7f29 7ff8)
Nov 18 10:04:06.274 WARN P2P server started on 0.0.0.0:13414
Nov 18 10:04:06.274 INFO Starting rest apis at: 0.0.0.0:13413
Nov 18 10:04:06.274 INFO Sync: starting sync
Nov 18 10:04:06.274 WARN Grin server started.
Nov 18 10:04:06.275 INFO Starting HTTP API server at 0.0.0.0:13413.
Nov 18 10:04:06.276 DEBG Retrieving seed nodes from http://grin-tech.org/seeds.txt
Nov 18 10:04:06.855 DEBG Retrieved seed addresses: [V4(192.241.168.77:13414), V4(109.74.202.16:13414), V4(174.138.116.153:13414)]
@photis
photis / wallet.log
Created December 1, 2017 13:38
Wallet log
Nov 30 20:36:36.787 DEBG Received coinbase and built candidate output - Identifier(73b9e02a38efe0dd353f), Identifier(55da3d1aa6f97a31a1c7), 2077
Nov 30 20:36:36.787 DEBG block_fees - BlockFees { fees: 0, height: 8187, key_id: None }
Nov 30 20:36:36.787 DEBG block_fees updated - BlockFees { fees: 0, height: 8187, key_id: Some(Identifier(55da3d1aa6f97a31a1c7)) }
Nov 30 20:37:49.987 INFO Acquiring wallet lock ...
Nov 30 20:37:49.987 DEBG Attempting to acquire wallet lock
Nov 30 20:37:50.259 INFO ... released wallet lock
Nov 30 20:37:50.259 DEBG Received coinbase and built candidate output - Identifier(73b9e02a38efe0dd353f), Identifier(31eccad3fef7ef1a9c49), 2078
Nov 30 20:37:50.259 DEBG block_fees - BlockFees { fees: 0, height: 8188, key_id: None }
Nov 30 20:37:50.259 DEBG block_fees updated - BlockFees { fees: 0, height: 8188, key_id: Some(Identifier(31eccad3fef7ef1a9c49)) }
@photis
photis / gist:c0210ead2df9558409dee5c88a903d80
Created December 5, 2017 06:19
connection lost: Timeout
Dec 05 08:03:08.369 INFO Connected to peer PeerInfo { capabilities: FULL_HIST | UTXO_HIST | PEER_LIST | FULL_NODE, user_agent: "MW/Grin 0.1.20171204", version: 1, addr: V4(24.7.36.144:13414), total_difficulty: Difficulty { num: 132160103 } }
Dec 05 08:03:08.524 INFO Client 165.227.63.166:13414 disconnected.
Dec 05 08:03:13.732 INFO Client 159.89.0.180:13414 connection lost: Timeout
Dec 05 08:03:14.341 INFO Client 24.7.36.144:13414 connection lost: Timeout
Dec 05 08:03:14.530 INFO Client 165.227.63.166:13414 connection lost: Timeout
Dec 05 08:03:23.797 INFO Client 138.68.178.20:13414 connection lost: Timeout
Dec 05 08:03:24.128 INFO Client 174.138.116.153:13414 connection lost: Timeout
Dec 05 08:03:26.757 INFO Client 165.227.63.166:13414 connection lost: Timeout
Dec 05 08:03:33.535 INFO Client 138.68.178.20:13414 connection lost: Timeout
Dec 05 08:03:34.421 INFO Client 165.227.63.166:13414 connection lost: Timeout
photis@gringotts:~/Projects/cuckoo/src$ make all
./lean20 -n 38 | grep ^Sol | ./verify20 -n 38
Verifying size 42 proof for cuckoo20("",38)
Verified with cyclehash 2f0e43de86b8ca70e73170d54750d0dc86dcdbf5563265911d981801b929dd63
g++ -march=native -m64 -std=c++11 -Wall -Wno-format -Wno-deprecated-declarations -D_POSIX_C_SOURCE=200112L -O3 -DPREFETCH -I. -pthread -o lean4 -DSHOW -DIDXSHIFT=0 -DPROOFSIZE=6 -DEDGEBITS=3 simple_miner.cpp -L. -lblake2b
./lean4 -h 211
Looking for 6-cycle on cuckoo4("211") with 50% edges
1: 2: 3: 4: 5: 6: 7: 8: 9: 10: 11: 12: 13: 14: 15: 0 (6,15)
1: 2: 3: 4: 5: 6: 7: 8: 9: 10: 11: 12: 13: 14: 15:06 2 (2,15)
1: 2:15 3: 4: 5: 6: 7: 8: 9: 10: 11: 12: 13: 14: 15:06 3 (6,5)
photis@gringotts:~/Projects/cuckoo/src$ ./mean30x8 -t 8 -r 10
Looking for 42-cycle on cuckoo30("",0-9) with 50% edges
Using 2144MB bucket memory at 7f5a87d93010,
8x21MB thread memory at 7f5a7d60e010,
8-way siphash, and 128 buckets.
nonce 0
genUnodes round 0 size 67130731 rdtsc: 1602945201
genVnodes round 1 size 42435397 rdtsc: 3506457325
trimedges id 0 round 3 size 11766173 rdtsc: 870165554
trimedges id 0 round 7 size 3311124 rdtsc: 165932081
$ cargo build
Compiling cuckoo_miner v0.1.0 (https://github.com/mimblewimble/cuckoo-miner?tag=grin_integration_22#98125a41)
error: failed to run custom build command for `cuckoo_miner v0.1.0 (https://github.com/mimblewimble/cuckoo-miner?tag=grin_integration_22#98125a41)`
process didn't exit successfully: `/home/photis/Projects/mimble/grin/target/debug/build/cuckoo_miner-08e4daab7c7971a0/build-script-build` (exit code: 101)
--- stdout
cargo:rerun-if-changed=src/cuckoo_sys/plugins/cuckoo/.travis.yml
cargo:rerun-if-changed=src/cuckoo_sys/plugins/cuckoo/private/speedup32na0
cargo:rerun-if-changed=src/cuckoo_sys/plugins/cuckoo/private/equihash
cargo:rerun-if-changed=src/cuckoo_sys/plugins/cuckoo/private/cycle_freq.eps
cargo:rerun-if-changed=src/cuckoo_sys/plugins/cuckoo/private/fracs
photis@gringotts:~/Projects/mimble/cuckoo-miner$ cargo build
Updating registry `https://github.com/rust-lang/crates.io-index`
Compiling winapi-build v0.1.1
Compiling regex-syntax v0.4.2
Compiling cc v1.0.4
Compiling constant_time_eq v0.1.3
Compiling rustc-serialize v0.3.24
Compiling quote v0.3.15
Compiling void v1.0.2
Compiling lazy_static v1.0.0