ExocoreNetwork / exocore

5 stars 9 forks source link

fix: validatorupdateblock update every block cause messy of upgrade #57

Closed leonz789 closed 1 month ago

leonz789 commented 1 month ago

Description

When a node restart and the validatorset has just been update at the height when this node stopped, the recahe process might be failed to fill params into aggregatorContext.

Changes

Notable changes


Closes #XXX

cloud8little commented 1 month ago

Test passed.

test object: https://github.com/ExocoreNetwork/exocore/pull/57/commits/79d675d35de95f7128146a18fce15f81b1e54dfb

Steps:

  1. For the broken nodes, use the binary with this fix, for the non-broken nodes, use the PR #56 binary.
  2. Start all nodes, all nodes start consensus.
  3. after all nodes reach to the same height. stop all nodes.
  4. upgrade all nodes to use the binary with #57, start all nodes, all nodes works well.