You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Add assertions for in-order block [dis]connection in ChannelManager
Sadly the connected-in-order tests have to be skipped in our normal
test suite as many tests violate it. Luckily we can still enforce
it in the tests which run in other crates.
Co-authored-by: Matt Corallo <[email protected]>
Co-authored-by: Jeffrey Czyz <[email protected]>
let header = BlockHeader{version:0x20000000,prev_blockhash:self.header_hashes[self.height],merkle_root:Default::default(),time:self.blocks_connected,bits:42,nonce:42};
203
-
self.height += 1;
204
202
self.blocks_connected += 1;
203
+
let header = BlockHeader{version:0x20000000,prev_blockhash:self.header_hashes[self.height].0,merkle_root:Default::default(),time:self.blocks_connected,bits:42,nonce:42};
let header = BlockHeader{version:0x20000000,prev_blockhash:*nodes[0].last_block_hash.lock().unwrap(),merkle_root:Default::default(),time:42,bits:42,nonce:42};
0 commit comments