when GRANDPA pallet is halted, relay shall not submit finality transactions (#1288)

This commit is contained in:
Svyatoslav Nikolsky
2022-01-18 17:07:06 +03:00
committed by Bastian Köcher
parent a9334bb609
commit 0fa8c02e7a
6 changed files with 71 additions and 12 deletions
+5
View File
@@ -1151,6 +1151,11 @@ mod tests {
#[test]
fn storage_keys_computed_properly() {
assert_eq!(
IsHalted::<TestRuntime>::storage_value_final_key().to_vec(),
bp_header_chain::storage_keys::is_halted_key("Grandpa").0,
);
assert_eq!(
BestFinalized::<TestRuntime>::storage_value_final_key().to_vec(),
bp_header_chain::storage_keys::best_finalized_hash_key("Grandpa").0,