[examples_redesign] Introduce example_cli package

This is the equivalent of `keychain_tracker_example_cli` that works with
the redesigned structures.
This commit is contained in:
志宇
2023-05-12 16:17:17 +08:00
parent 2e3cee4bd0
commit f55974a64b
8 changed files with 819 additions and 4 deletions

View File

@@ -34,6 +34,10 @@ impl ChainOracle for LocalChain {
},
)
}
fn get_chain_tip(&self) -> Result<Option<BlockId>, Self::Error> {
Ok(self.tip())
}
}
impl AsRef<BTreeMap<u32, BlockHash>> for LocalChain {