When a witness is restarted without replay-blockchain option verify that the witness is not able to join the chain
Steps to validate:
- Run two peerplays nodes without replay-blockchain option.
- Run the chain for some time say 10 mins.
- Shutdown one process with CTRL + C
- Wait for sometime, say 5 mins
- Try starting the stopped node again
Expected outcome:
114397ms th_a application.cpp:491 handle_block ] Error when pushing block:
10 assert_exception: Assert Exception
new_block.witness == wid: Witness produced block at wrong time
{"block witness":"1.6.1","scheduled":"1.6.9","slot_num":5}
th_a db_block.cpp:337 verify_signing_witness
{"new_block":{"previous":"000000207f7fe9ba3f0b1a49cf980b744fa5749d","timestamp":"2022-05-25T17:41:51","witness":"1.6.1","next_secret_hash":"13419c053873b86d1b7648be10425faf84e9d133","previous_secret":"a1def8b534b645460834bc0d4856436ce54ab599","transaction_merkle_root":"0000000000000000000000000000000000000000","extensions":[],"witness_signature":"1f45da306160a25ee99242db584a9bfa63d12518970384f21bdbba2254bff88377657c506c4100380a10d9fcb8bcbe3df1b977a638526bba014b44bacac76ce5f9","transactions":[]}}
th_a db_block.cpp:293 _push_block
114398ms th_a application.cpp:488 handle_block ] Error when pushing block:
3080000 unlinkable_block_exception: unlinkable block
block does not link to known chain
{}
th_a db_block.cpp:206 _push_block
{"new_block":{"previous":"0000002150fb8c4c911c03162e9b4715c57d3236","timestamp":"2022-05-25T17:42:15","witness":"1.6.1","next_secret_hash":"dd56f38c6e8e681c1d0270e8d982550cce5f14ec","previous_secret":"18a153238c12593a6763ed118cfa0808e6e52775","transaction_merkle_root":"0000000000000000000000000000000000000000","extensions":[],"witness_signature":"200a2dad339499a649b625e55370cde9c17110fcd11dd845278662663b7103632057adcc5c2c79b93de79101ff7348dce5f0761de55a0d1b8b69cbdde18e52af2f","transactions":[]}}
th_a db_block.cpp:293 _push_block
114398ms th_a application.cpp:488 handle_block ] Error when pushing block:
3080000 unlinkable_block_exception: unlinkable block
block does not link to known chain
{}
th_a db_block.cpp:206 _push_block
{"new_block":{"previous":"0000002280505585f8f6bed99c544e103cdd97d0","timestamp":"2022-05-25T17:42:48","witness":"1.6.1","next_secret_hash":"e99f23ab07a85dd24ab1f97a02c421cfdcc4091f","previous_secret":"40aa4b43614f843797067eeda591670f9f03f3a8","transaction_merkle_root":"0000000000000000000000000000000000000000","extensions":[],"witness_signature":"200d5b23d00ff8aa5bc5182304fdc4295c9a57b0e5fc5550ebcdad3b5058583ad2355d8eae08152cff4a8ebaf967305e1d77409c136470da11ca6bc1b038dbc730","transactions":[]}}
th_a db_block.cpp:293 _push_block
115000ms th_a witness.cpp:195 block_production_loo ] Not producing block because production is disabled until we receive a recent block (see: --enable-stale-production)