mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-04-29 05:37:58 +00:00
Integrate DMP into collation, take 2 (#233)
* Integrate DMP into collation * Integrate processed_downward_messages as well
This commit is contained in:
@@ -155,7 +155,10 @@ pub fn validate_block<B: BlockT, E: ExecuteBlock<B>>(params: ValidationParams) -
|
||||
|
||||
let processed_downward_messages = overlay.storage(PROCESSED_DOWNWARD_MESSAGES)
|
||||
.flatten()
|
||||
.and_then(|v| Decode::decode(&mut &v[..]).ok())
|
||||
.map(|v|
|
||||
Decode::decode(&mut &v[..])
|
||||
.expect("Processed downward message count is not correctly encoded in the storage")
|
||||
)
|
||||
.unwrap_or_default();
|
||||
|
||||
let validation_data: ValidationData = overlay.storage(VALIDATION_DATA).flatten()
|
||||
|
||||
Reference in New Issue
Block a user