Bifrost
Bifrost copied to clipboard
BN-614 ⁃ Get Canonical Head Changes RPC
gRPC supports stream-based RPCs. The Bifrost node maintains a reference to the current head of the canonical chain. Anytime the canonical head changes, the steps to traverse from the previous head to the new head can be emitted as a stream source. Unapplies/reorgs are emitted as one type of event, while Applies/appends are emitted as another. This stream of traversal steps can help guide client nodes toward the current state of the chain.
➤ Sean Cheatham commented:
Discussion Points:
-
Get Block ID at Depth
- Allow client to fetch block at certain depth from the canonical head. depth=0 just means canonical head
-
Get Canonical Head (full header)