Closed jpraynaud closed 3 months ago
Hi @falcucci, the PR #1623 has been merged 👍
You can work on the implementation of the new function in the ChainObserver
trait in the PallasChainObserver
: https://github.com/input-output-hk/mithril/blob/f700c4692b26c4b78ed9c83515af8992461a3040/mithril-common/src/chain_observer/pallas_observer.rs#L387
thank you! @jpraynaud
Why
We need to retrieve the block number of the tip of the Cardano chain with the Chain observer to use it to create new types of beacons.
What
Add a new function in the
ChainObserver
trait:And a new entity type:
And implement this function for the:
PallasChainObserver
by using n2c mini-protocol to get access to itCardanoCLIChainObserver
by using thequery tip
command (already used for implementingget_current_epoch
)See
How
ChainObserver
trait (@jpraynaud)FakeChainObserver
(@jpraynaud)CardanoCliChainObserver
(@jpraynaud)PallasChainObserver
(@falcucci )