transaction proof test

This commit is contained in:
Robert Habermeier
2017-02-25 11:54:32 +01:00
parent 4158693470
commit 32f906fe9f
3 changed files with 85 additions and 16 deletions

View File

@@ -308,13 +308,13 @@ impl Client {
}
/// The env info as of the best block.
fn latest_env_info(&self) -> EnvInfo {
pub fn latest_env_info(&self) -> EnvInfo {
self.env_info(BlockId::Latest).expect("Best block header always stored; qed")
}
/// The env info as of a given block.
/// returns `None` if the block unknown.
fn env_info(&self, id: BlockId) -> Option<EnvInfo> {
pub fn env_info(&self, id: BlockId) -> Option<EnvInfo> {
self.block_header(id).map(|header| {
EnvInfo {
number: header.number(),