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>
Please register or sign in to comment