bnb-chain / bnc-tendermint

Mozilla Public License 2.0
15 stars 14 forks source link

R4R: fix bug in load last validator set #141

Closed abelliumnt closed 4 years ago

abelliumnt commented 4 years ago

Previously I made a mistake in getting last validator set for state sync. The bug will result in panic whan a new validator is created. https://github.com/binance-chain/bnc-tendermint/blob/2f1f700e415d2978432452a67efa70fdfa4e7047/state/execution.go#L332

I have verified this change in mainnet