Multi-threaded:
- importing (write lock)
- getting pending set (read lock)
Background task:
- removing invalid
- culling // needs to be informed about major sync
- managing revalidation
- Locks:
| {"id":"7b32358a-651a-7676-5544-cd3de2a648c2","version":3,"crypto":{"cipher":"aes-128-ctr","cipherparams":{"iv":"9c45f27bbb15a3081368b302992f9d2d"},"ciphertext":"d5313d5c88ccd8da93087a426500982663429bacdb8dc6dcf192f545d228cd75","kdf":"pbkdf2","kdfparams":{"c":10240,"dklen":32,"prf":"hmac-sha256","salt":"7d694411e3ae6929e701c147ae044ee849af68001e947f4cde7cf38a2b2554f0"},"mac":"3b5c3045e0ea9f7ed79e5d073175130054ea22ec3549bda7d54c4ef0174785fb"},"address":"00a88fc3b3a86793de59c886e20b320a057a5723","name":"devmeetings","meta":"{}"} |
| 2018-11-12 15:59:08 UTC Imported #6691581 0xeca3…0b92 (32 txs, 7.99 Mgas, 246 ms, 28.28 KiB) + another 1 block(s) containing 68 tx(s) | |
| 2018-11-12 15:59:13 UTC Imported #6691582 0x464a…a129 (43 txs, 2.05 Mgas, 128 ms, 7.46 KiB) | |
| 2018-11-12 15:59:24 UTC Imported #6691583 0xcf51…dcd5 (103 txs, 7.98 Mgas, 611 ms, 28.57 KiB) | |
| 2018-11-12 15:59:31 UTC Imported #6691584 0x7d86…face (0 txs, 0.00 Mgas, 1 ms, 0.52 KiB) | |
| 2018-11-12 15:59:43 UTC Imported #6691585 0xdb77…26d5 (124 txs, 7.99 Mgas, 653 ms, 23.61 KiB) | |
| 2018-11-12 15:59:54 UTC Imported #6691586 0xe2b6…3591 (36 txs, 8.00 Mgas, 246 ms, 28.64 KiB) | |
| 2018-11-12 16:00:15 UTC Imported #6691587 0x2c08…29f4 (109 txs, 4.85 Mgas, 277 ms, 17.47 KiB) | |
| 2018-11-12 16:00:26 UTC Imported #6691588 0x6749…d114 (10 txs, 7.44 Mgas, 165 ms, 25.42 KiB) | |
| 2018-11-12 16:00:28 UTC Imported #6691589 0x759b…0d4f (122 txs, 5.99 Mgas, 615 ms, 20.16 KiB) | |
| 2018-11-12 16:00:43 UTC Imported #6691590 0xe29d…3b0c (10 txs, 0.64 Mgas, 19 ms, 1.79 KiB) |
| use std::path::Path; | |
| use db; | |
| use lmdb::{self, Transaction, Cursor}; | |
| pub struct Lmdb { | |
| env: lmdb::Environment, | |
| db: lmdb::Database, | |
| } |
| tomusdrw@t ~/workspace/substrate gav-fixes $ ./target/debug/substrate --dev --block-construction-execution=Wasm --other-execution=Wasm --importing-execution=Wasm --syncing-execution=Wasm | |
| 2019-03-19 11:43:34 Substrate Node | |
| 2019-03-19 11:43:34 version 0.10.0-e263901b-x86_64-linux-gnu | |
| 2019-03-19 11:43:34 by Parity Technologies, 2017-2019 | |
| 2019-03-19 11:43:34 Chain specification: Development | |
| 2019-03-19 11:43:34 Node name: bustling-snow-7464 | |
| 2019-03-19 11:43:34 Roles: AUTHORITY | |
| 2019-03-19 11:43:37 Initialising Genesis block/state (state: 0x0872…abc6, header-hash: 0x6e88…85e7) | |
| 2019-03-19 11:43:37 Loaded block-time = 4 seconds from genesis on first-launch | |
| 2019-03-19 11:43:37 Loading GRANDPA authority set from genesis on what appears to be first startup. |
| logs.txt:2019-03-27 13:32:06.938 jsonrpc-eventloop-0 DEBUG txpool Pool Status: Status { ready: 1, ready_bytes: 139, future: 0, future_bytes: 0 } | |
| logs.txt:2019-03-27 13:32:06.944 jsonrpc-eventloop-0 DEBUG txpool Pool Status: Status { ready: 2, ready_bytes: 278, future: 0, future_bytes: 0 } | |
| logs.txt:2019-03-27 13:32:06.950 jsonrpc-eventloop-0 DEBUG txpool Pool Status: Status { ready: 3, ready_bytes: 417, future: 0, future_bytes: 0 } | |
| logs.txt:2019-03-27 13:32:06.954 jsonrpc-eventloop-0 DEBUG txpool Pool Status: Status { ready: 4, ready_bytes: 556, future: 0, future_bytes: 0 } | |
| logs.txt:2019-03-27 13:32:06.959 jsonrpc-eventloop-0 DEBUG txpool Pool Status: Status { ready: 5, ready_bytes: 695, future: 0, future_bytes: 0 } | |
| logs.txt:2019-03-27 13:32:06.964 jsonrpc-eventloop-0 DEBUG txpool Pool Status: Status { ready: 6, ready_bytes: 834, future: 0, future_bytes: 0 } | |
| logs.txt:2019-03-27 13:32:06.969 jsonrpc-eventloop-0 DEBUG txpool Pool Status: Status { ready: 7, ready_bytes: 973, future: 0, future_bytes: 0 } | |
| lo |
| 2019-03-27 15:40:32 Pre-sealed block for proposal at 21. Hash now 0xf94984b222db72952956e247066511089cdb5ee240ceb386373ba01d27c6675a, previously 0x02c6fdb1656f01af72c788c0c74b7ae802a6f76265ae07b3e925dceda53ed8ff. | |
| Hash: given=1d202ef43070d026bd5ff79e41222d9d1560c4ba90446fe119dac2cf68ce62fe, expected=4a65837bb3c6aea26cfbedda19f3fcb8a2ee34b11a767d04ee1640b76dd05a97 | |
| ==================== | |
| stack backtrace: | |
| 0: substrate_panic_handler::panic_hook::h8bacb1ac4e7c6655 (0x5601c3b99add) | |
| at core/panic-handler/src/lib.rs:82 | |
| 1: substrate_panic_handler::set::{{closure}}::hb14e1cf94b23162b (0x5601c3b9abf6) | |
| at core/panic-handler/src/lib.rs:31 |
Multi-threaded:
Background task:
| pub type AccountId = u64; | |
| mod sp_core_crypto_dummy { | |
| use primitives::crypto::*; | |
| use codec::{Encode, Decode}; | |
| /// Dummy cryptography. Doesn't do anything. | |
| #[derive(Clone, Hash, Default, Eq, PartialEq, Encode, Decode, Debug, Ord, PartialOrd)] | |
| pub struct Dummy; |
| { | |
| "name": "BridgePoa", | |
| "engine": { | |
| "authorityRound": { | |
| "params": { | |
| "stepDuration": 5, | |
| "startStep": 2, | |
| "validators": { | |
| "list": [ | |
| "0x005e714f896a8b7cede9d38688c1a81de72a58e4", |
| #[tokio::test] | |
| fn should_read_state() { | |
| // given | |
| // This starts a special "test node" in the background. We communicate with the node over RPC. | |
| let mut test = test::deterministic(PolkadotRuntime.into()); | |
| type Balances = pallet_balances::Module<Runtime>; | |
| // This uses ManualSeal consensus (might require conditional compilation of Runtime though :() |