Store both block number and hash in best finalized storage value (#1475)

* store both block number and hash in BestFinalized

* also fix relay code

* spelling
This commit is contained in:
Svyatoslav Nikolsky
2022-06-24 15:37:46 +03:00
committed by Bastian Köcher
parent c0880d810a
commit a97dedb50f
5 changed files with 24 additions and 28 deletions
@@ -118,7 +118,7 @@ impl<C: ChainWithGrandpa> Engine<C> for Grandpa<C> {
}
fn is_initialized_key() -> StorageKey {
bp_header_chain::storage_keys::best_finalized_hash_key(C::WITH_CHAIN_GRANDPA_PALLET_NAME)
bp_header_chain::storage_keys::best_finalized_key(C::WITH_CHAIN_GRANDPA_PALLET_NAME)
}
async fn finality_proofs(client: Client<C>) -> Result<Subscription<Bytes>, SubstrateError> {