mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-05-01 15:57:55 +00:00
Switch to polkadot master branch (#230)
* Switch to polkadot master branch * Fix compilation
This commit is contained in:
@@ -161,11 +161,20 @@ pub fn validate_block<B: BlockT, E: ExecuteBlock<B>>(params: ValidationParams) -
|
||||
.and_then(|v| Decode::decode(&mut &v[..]).ok())
|
||||
.unwrap_or_default();
|
||||
|
||||
let validation_data: ValidationData =
|
||||
with_storage(|storage| storage.modified(VALIDATION_DATA))
|
||||
.and_then(|v| Decode::decode(&mut &v[..]).ok())
|
||||
.expect("`ValidationData` is required to be placed into the storage!");
|
||||
|
||||
ValidationResult {
|
||||
head_data,
|
||||
new_validation_code,
|
||||
upward_messages,
|
||||
processed_downward_messages,
|
||||
//TODO!
|
||||
horizontal_messages: Vec::new(),
|
||||
//TODO!
|
||||
hrmp_watermark: validation_data.persisted.block_number,
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user