HomeSource World

core: mirror full node reorg logic in light client too (#20931)

Description

core: mirror full node reorg logic in light client too (#20931)

  • core: fix the condition of reorg
  • core: fix nitpick to only retrieve head once
  • core: don't reorg if received chain is longer at same diff

Co-authored-by: Péter Szilágyi <peterke@gmail.com>

Details

Provenance
icodezjb <icodezjb@163.com>Authored on Apr 22 2020, 8:27 AM
GitHub <noreply@github.com>Committed on Apr 22 2020, 8:27 AM
Parents
rGETHb9df7ecdc3d3: all: seperate consensus error and evm internal error (#20830)
Branches
Unknown
Tags
Unknown

Event Timeline

GitHub <noreply@github.com> committed rGETH2ec723219102: core: mirror full node reorg logic in light client too (#20931) (authored by icodezjb <icodezjb@163.com>).Apr 22 2020, 8:27 AM