nimbus-eth1/nimbus/beacon/api_handler
Jordan Hrycaj 0b93236d1b
Beacon sync block import via forked chain (#2747)
* Accept finalised hash from RPC with the canon header as well

* Reorg internal sync descriptor(s)

details:
  Update target from RPC to provide the `consensus header` as well as
  the `finalised` block number

why:
  Prepare for using `importBlock()` instead of `persistBlocks()`

* Cosmetic updates

details:
+ Collect all pretty printers in `helpers.nim`
+ Remove unused return codes from function prototype

* Use `importBlock()` + `forkChoice()` rather than `persistBlocks()`

* Update logging and metrics

* Update docu
2024-10-17 17:59:50 +00:00
..
api_exchangeconf.nim replace deprecated types (#2704) 2024-10-16 08:34:12 +07:00
api_forkchoice.nim Beacon sync block import via forked chain (#2747) 2024-10-17 17:59:50 +00:00
api_getbodies.nim replace deprecated types (#2704) 2024-10-16 08:34:12 +07:00
api_getpayload.nim replace deprecated types (#2704) 2024-10-16 08:34:12 +07:00
api_newpayload.nim replace deprecated types (#2704) 2024-10-16 08:34:12 +07:00
api_utils.nim replace deprecated types (#2704) 2024-10-16 08:34:12 +07:00