mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-11-12 21:57:06 +00:00
Ensure relay chain block number strictly increases (#1280)
* Ensure relay chain block number strictly increases This is a safeguard for when async backing is enabled on the relay chain and multiple parachain blocks per relay chain block are legal. We will need to later change this to support then multiple parachain blocks per relay chain block. * Make the check configurable * Fix compilation * Update pallets/parachain-system/src/lib.rs Co-authored-by: André Silva <123550+andresilva@users.noreply.github.com> * Update pallets/parachain-system/src/lib.rs Co-authored-by: André Silva <123550+andresilva@users.noreply.github.com> * Fix test Co-authored-by: André Silva <123550+andresilva@users.noreply.github.com>
This commit is contained in:
1 parent
e6781f0841
commit
2ddfe5edc4
13 files changed
+99
-10
No files matched your search
@@ -67,8 +67,8 @@ where
|
||||
assert!(parent_head.hash() == *block.header().parent_hash(), "Invalid parent hash",);
|
||||
|
||||
// Create the db
|
||||
let (db, root) = match storage_proof.to_memory_db(Some(parent_head.state_root())) {
|
||||
Ok((db, root)) => (db, root),
|
||||
let db = match storage_proof.to_memory_db(Some(parent_head.state_root())) {
|
||||
Ok((db, _)) => db,
|
||||
Err(_) => panic!("Compact proof decoding failure."),
|
||||
};
|
||||
|
||||
|
||||
Reference in new issue
Block a user