pub trait BlockInfo {
// Required methods
fn hash(&self) -> H256;
fn number(&self) -> SubstrateBlockNumber;
}
Expand description
Provides information about a block,
This is an abstratction on top of SubstrateBlock
that can’t be mocked in tests.
Can be removed once https://github.com/paritytech/subxt/issues/1883 is fixed.
Required Methods§
Sourcefn number(&self) -> SubstrateBlockNumber
fn number(&self) -> SubstrateBlockNumber
Returns the block number.