Switch to polkadot master branch (#230)

* Switch to polkadot master branch

* Fix compilation
This commit is contained in:
Bastian Köcher
2020-11-09 13:05:00 +01:00
committed by GitHub
parent 76f9ecae47
commit 182109ef5f
16 changed files with 124 additions and 95 deletions
@@ -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,
}
}