Closed hyeonLewis closed 1 day ago
I'd prefer option 1, then remove the whole preload facility after we bring in the kaiax/valset. That's why I did https://github.com/kaiachain/kaia/commit/ca45d2a175113bcb7613a65a4c0618c7ed1db008.
@blukat29 Yes, then does that mean we can ignore this issue since it is in dev branch an will be resolved before next release?
@hyeonLewis No, could you fix it on the dev branch with a PR independent of valset? valset should take some time. It is totally fine to make a temporary UnregisterConsensusModule or something.
Sure, I'll fix it. Thanks.
Describe the bug When restarting the node, the
incorrectly regenerated historical state
error occurs because it can't handle any reward logic inconsensusModule.FinalizeHeader
. Currently, themReward
module is registered after preloading staking info in backend.How to reproduce
Expected behavior The mReward module is loaded in consensus module before creating snapshot, so it correctly restores the state root when processing a block.
Attachments
Environment (please complete the following information)
Additional context It seems we can't temporarily set the consensus module since it's append-only unlike staking module. We can introduce either:
SetupKaiaxModules