Enable GetNodeData for AuRa chains and bump to v3.3.0-rc.11

This commit is contained in:
POA
2021-10-19 11:25:32 +03:00
parent ac30783c82
commit 25ce4b2ec8
7 changed files with 47 additions and 8 deletions

View File

@@ -2234,6 +2234,11 @@ impl BlockChainClient for Client {
}
}
fn is_aura(&self) -> bool {
let engine = self.engine.clone();
engine.name() == "AuthorityRound"
}
fn is_processing_fork(&self) -> bool {
let chain = self.chain.read();
self.importer

View File

@@ -258,6 +258,9 @@ pub trait BlockChainClient:
/// Get block total difficulty.
fn block_total_difficulty(&self, id: BlockId) -> Option<U256>;
/// Is it AuRa engine?
fn is_aura(&self) -> bool;
/// Attempt to get address storage root at given block.
/// May not fail on BlockId::Latest.
fn storage_root(&self, address: &Address, id: BlockId) -> Option<H256>;