Skip to content

Instantly share code, notes, and snippets.

View gavofyork's full-sized avatar

Gavin Wood gavofyork

View GitHub Profile
<svg version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="500" height="500"><defs/><g><g transform="translate(250,250)"><g transform="rotate(0,0,0) translate(0,-242)"><path fill="black" stroke="none" paint-order="stroke fill markers" d=" M 8 0 A 8 8 0 1 1 7.999996000000333 -0.007999998666671365"/></g><g transform="rotate(5.070422535211267,0,0) translate(0,-242)"><path fill="#e6007a" stroke="none" paint-order="stroke fill markers" d=" M 4 0 A 4 4 0 1 1 3.9999980000001667 -0.003999999333335683"/></g><g transform="rotate(10.140845070422534,0,0) translate(0,-242)"><path fill="#e6007a" stroke="none" paint-order="stroke fill markers" d=" M 4 0 A 4 4 0 1 1 3.9999980000001667 -0.003999999333335683"/></g><g transform="rotate(15.211267605633806,0,0) translate(0,-242)"><path fill="#e6007a" stroke="none" paint-order="stroke fill markers" d=" M 4 0 A 4 4 0 1 1 3.9999980000001667 -0.003999999333335683"/></g><g transform="rotate(20.28169014084507,0,0) translate(0,-242)"><path fi
➜ offline-phragmen git:(gav-subids) ✗ cargo run -- --network polkadot --at 9cba39fee8cd98da4b0cee583ca5841ff6cce87d3b078fbc67fa27be35f8d110 staking --count 197 --reduce --iterations 0
warning: unused import: `Style`
--> src/network.rs:12:25
|
12 | use ansi_term::{Colour, Style};
| ^^^^^
|
= note: `#[warn(unused_imports)]` on by default
warning: function is never used: `query_info`
➜ offline-phragmen git:(gav-subids) ✗ cargo run -- --network polkadot --at 9cba39fee8cd98da4b0cee583ca5841ff6cce87d3b078fbc67fa27be35f8d110 staking --count 197 --reduce --iterations 100
warning: unused import: `Style`
--> src/network.rs:12:25
|
12 | use ansi_term::{Colour, Style};
| ^^^^^
|
= note: `#[warn(unused_imports)]` on by default
warning: function is never used: `query_info`
39040031805ac57b11f08d45a9ce1f8f83128f729ebf82ea43be5b392547691ac51b00db2e67a09b1d0e805b61166185c1542fe4ecf2c42e44c684ef0588b9aa3d5302558a079c12e32a87518dcf292728b8b1b33c15da34773175f5c0e9b3b0657002a066542204f9de0d283352ecab65b01b73edf42a207df35d944bf4ab2896710425974163400e75234a829aac61e26a270b426d1d85341a3d9c0715ee64c8760485e39a6a05e8afc9067a1e2d2532078528fda04b2c6307a8fa0f8909e1082f04e8d6142fe5832dee07cc37ab997153cd9de2db5969b685800d995d59b0160a04e8d6148618ba57fe1b57dca5f7d64018ab49d7f41fdbb08c55e6562eff2d7005095ecece751cfdb5a0d8b04c40735b0ec9f120c4dc4d0e5bbb06a8c6c47f0806dcf0a0be1fc37194141915b5b85f478086db021a52f406930567e76a7907b207b778e38c0cc56969c4a645dc77407af778d32002ed3caadf13bc04d77830c3080cff9ca0965c7f6ac6e847975ed2acb15720f4a8f79467bddb70c3a04f7cbf080cffa3fbbf5d805e6ada1cacbc4fdbb227b2679579112a2766543e0a75d7d8080d05bce9994b49a9acf0336cc021a47dcfe5dac3500aa3ad5632e37a702077080d05c3967f5001ee681db6ab7fa59c96285074fdb3775b1e25ffea6b6b8f2e080d05ca557a885e1c472add0a9d8f7ec90481ff2294a94587bdf02daa08
error: linking with `arm-linux-gnueabihf-gcc` failed: exit code: 1
|
= note: "arm-linux-gnueabihf-gcc" "-Wl,--as-needed" "-Wl,-z,noexecstack" "-L" "/usr/local/rustup/toolchains/1.41.1-x86_64-unknown-linux-gnu/lib/rustlib/armv7-unknown-linux-gnueabihf/lib" "/home/rust/src/target/armv7-unknown-linux-gnueabihf/release/deps/polkadot_cli.polkadot_cli.nxg2vjwc-cgu.0.rcgu.o" "/home/rust/src/target/armv7-unknown-linux-gnueabihf/release/deps/polkadot_cli.polkadot_cli.nxg2vjwc-cgu.1.rcgu.o" "/home/rust/src/target/armv7-unknown-linux-gnueabihf/release/deps/polkadot_cli.polkadot_cli.nxg2vjwc-cgu.10.rcgu.o" "/home/rust/src/target/armv7-unknown-linux-gnueabihf/release/deps/polkadot_cli.polkadot_cli.nxg2vjwc-cgu.11.rcgu.o" "/home/rust/src/target/armv7-unknown-linux-gnueabihf/release/deps/polkadot_cli.polkadot_cli.nxg2vjwc-cgu.12.rcgu.o" "/home/rust/src/target/armv7-unknown-linux-gnueabihf/release/deps/polkadot_cli.polkadot_cli.nxg2vjwc-cgu.13.rcgu.o" "/home/rust/src/target/armv7-unknown-linux-gnueabihf/release/deps/polk
error: could not compile `polkadot-service`.
Caused by:
process didn't exit successfully: `rustc --edition=2018 --crate-name polkadot_service service/src/lib.rs --error-format=json --json=diagnostic-rendered-ansi --crate-type lib --emit=dep-info,metadata,link -C opt-level=3 --cfg 'feature="av_store"' --cfg 'feature="consensus"' --cfg 'feature="default"' --cfg 'feature="full-node"' --cfg 'feature="polkadot-network"' --cfg 'feature="rocksdb"' -C metadata=120d6d23101f271c -C extra-filename=-120d6d23101f271c --out-dir /home/rust/src/target/armv7-unknown-linux-gnueabihf/release/deps --target armv7-unknown-linux-gnueabihf -C linker=arm-linux-gnueabihf-gcc -L dependency=/home/rust/src/target/armv7-unknown-linux-gnueabihf/release/deps -L dependency=/home/rust/src/target/release/deps --extern system_rpc_runtime_api=/home/rust/src/target/armv7-unknown-linux-gnueabihf/release/deps/libframe_system_rpc_runtime_api-fbdbf4460381bda1.rmeta --extern futures=/home/rust/src/target/armv7-unknown-linux-gnueabihf/release/deps/l
2020-03-11 12:08:43 Block prepare storage changes error:
Execution(RuntimePanicked("Digest item must match that calculated."))
2020-03-11 12:08:43 New epoch 2488 launching at block 0x8efb…7da0 (block slot 263986479 >= start slot 263986479).
2020-03-11 12:08:43 Next epoch starts at slot 263987079
DigestItem: given=DigestItem::Consensus([66, 65, 66, 69], [1, 129, 2, 4, 181, 120, 0, 48, 158, 252, 129, 50, 248, 161, 119, 99, 117, 87, 201, 194, 217, 190, 106, 75, 161, 227, 30, 27, 140, 50, 225, 230, 153, 238, 23, 1, 0, 0, 0, 0, 0, 0, 0, 2, 185, 135, 239, 40, 91, 137, 24, 199, 126, 177, 157, 53, 133, 154, 146, 182, 7, 79, 89, 81, 25, 36, 106, 149, 240, 91, 90, 237, 91, 58, 95, 1, 0, 0, 0, 0, 0, 0, 0, 22, 34, 87, 210, 121, 38, 248, 217, 88, 169, 183, 99, 227, 104, 153, 208, 239, 210, 69, 226, 24, 234, 114, 194, 155, 146, 51, 9, 77, 138, 79, 37, 1, 0, 0, 0, 0, 0, 0, 0, 188, 234, 131, 54, 45, 205, 4, 213, 183, 1, 69, 154, 192, 169, 203, 158, 217, 255, 187, 97, 153, 188, 206, 64, 34, 18, 157, 206, 36, 66, 186, 78, 1, 0
/Users/gav/.cargo/bin/cargo check --color=always
Compiling bstr v0.1.4
Compiling clap v2.32.0
Compiling env_logger v0.6.1
Compiling parity-codec v3.5.1
Checking fork-tree v2.0.0 (/Users/gav/Core/substrate/core/util/fork-tree)
Checking finality-grandpa v0.7.2
Compiling jsonrpc-client-transports v12.0.0
Checking substrate-state-db v2.0.0 (/Users/gav/Core/substrate/core/state-db)
Checking substrate-keystore v2.0.0 (/Users/gav/Core/substrate/core/keystore)
2019-02-02 20:21:49 Imported #241191 (0xecfc…14ea)
2019-02-02 20:21:52 Idle (8 peers), best: #241191 (0xecfc…14ea), finalized #241187 (0x6e3f…7e65), ⬇ 0.8kiB/s ⬆ 2.5kiB/s
2019-02-02 20:21:57 Idle (8 peers), best: #241191 (0xecfc…14ea), finalized #241190 (0x793f…cfdc), ⬇ 2.0kiB/s ⬆ 2.5kiB/s
2019-02-02 20:21:58 Remote ping substream errored: Custom { kind: WriteZero, error: StringError("connection is closed") }
2019-02-02 20:22:02 Idle (8 peers), best: #241191 (0xecfc…14ea), finalized #241190 (0x793f…cfdc), ⬇ 16.6kiB/s ⬆ 0.9kiB/s
2019-02-02 20:22:02 Waiting to import block 0x06b8…6e04 before 4 votes can be imported. Possible fork?
2019-02-02 20:22:02 Error while opening custom protocol: Upgrade(Select(UnexpectedMessage))
2019-02-02 20:22:06 Error while opening custom protocol: Timeout
2019-02-02 20:22:07 Idle (5 peers), best: #241191 (0xecfc…14ea), finalized #241190 (0x793f…cfdc), ⬇ 0.4kiB/s ⬆ 0.5kiB/s
2019-02-02 20:22:07 Waiting to import block 0x06b8…6e04 before 4 votes can be imported. Possible fork?
error[E0432]: unresolved import `srml_support::RuntimeMetadata`
--> runtime/src/lib.rs:59:38
|
59 | pub use srml_support::{StorageValue, RuntimeMetadata};
| ^^^^^^^^^^^^^^^ no `RuntimeMetadata` in the root
error[E0277]: the trait bound `Event: runtime_io::parity_codec::Decode` is not satisfied
--> runtime/src/lib.rs:118:6
|
118 | impl system::Trait for Runtime {