Bifrost icon indicating copy to clipboard operation
Bifrost copied to clipboard

BN-614 ⁃ Get Canonical Head Changes RPC

Open sync-by-unito[bot] opened this issue 3 years ago • 1 comments

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.

┆Issue is synchronized with this Jira Task by Unito

sync-by-unito[bot] avatar Aug 12 '22 12:08 sync-by-unito[bot]

➤ 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)

sync-by-unito[bot] avatar Aug 17 '22 19:08 sync-by-unito[bot]