skalenetwork / skale-consensus

Running the very core of SKL network, SKALE BFT consensus is universal, modern, modular, high-performance, asynchronous, provably-secure, agent-based Proof-of-Stake blockchain consensus engine in C++ 17. Includes provably secure embedded Oracle. Used by SKALE elastic blockchains. Easy and flexible enough to implement your own blockchain or smart contract platform. BLS signatures and Binary Asynchronous Consensus are main building blocks.
https://docs.skale.network/technology/consensus-spec
GNU Affero General Public License v3.0
78 stars 32 forks source link

Exit is activated in the middle of unit tests #782

Open dimalit opened 1 year ago

dimalit commented 1 year ago

When running unit tests of skaled that invovle consensus, consensus' exit flag seems to keep raised after exit of 1st test. It causes consensus to immediately exit at the beginning of 2nd test.

Tests that were used to reproduce: JsonRpcSuite.


[2023-05-30 14:46:44.268] [config] [info] ConsensusEngine: bootstrapping node
[2023-05-30 14:46:44.332] [config] [info] Version update history: 2.1.001
[2023-05-30 14:46:44.332] [config] [info] Bootstrapping consensus ...
[2023-05-30 14:46:44.332] [config] [info] Last committed block in consensus:0
[2023-05-30 14:46:44.332] [config] [info] Last committed block in skaled:0
[2023-05-30 14:46:44.332] [config] [info] Check the consensus database for corruption ...
[2023-05-30 14:46:44.332] [config] [info] Jump starting the system with block:0
[2023-05-30 14:46:44.332] [config] [trace] Save price for block0
[2023-05-30 14:48:21.723] [config] [info] Exiting on block boundary for block 0```