When a witness is restarted without replay-blockchain option verify that the witness is not able to join the chain #378

Closed
opened 2022-05-30 15:45:37 +00:00 by prandnum · 5 comments
prandnum commented 2022-05-30 15:45:37 +00:00 (Migrated from gitlab.com)

Steps to validate:

  1. Run two peerplays nodes without replay-blockchain option.
  2. Run the chain for some time say 10 mins.
  3. Shutdown one process with CTRL + C
  4. Wait for sometime, say 5 mins
  5. 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)
Steps to validate: 1. Run two peerplays nodes without replay-blockchain option. 2. Run the chain for some time say 10 mins. 3. Shutdown one process with CTRL + C 4. Wait for sometime, say 5 mins 5. 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) ```
prandnum commented 2022-05-30 15:45:37 +00:00 (Migrated from gitlab.com)

assigned to @hirunda

assigned to @hirunda
prandnum commented 2022-05-30 15:46:25 +00:00 (Migrated from gitlab.com)

@bobinson @serkixenos @hirunda
CC: @hbelakon

As discussed during the scrum call, creating the defect.

@bobinson @serkixenos @hirunda CC: @hbelakon As discussed during the scrum call, creating the defect.
prandnum commented 2022-06-03 19:31:47 +00:00 (Migrated from gitlab.com)

without replay-blockchain option, the stopped witness is unable to connect to the blockchain. hence closing it.

without replay-blockchain option, the stopped witness is unable to connect to the blockchain. hence closing it.
prandnum (Migrated from gitlab.com) closed this issue 2022-06-03 19:31:52 +00:00
prandnum (Migrated from gitlab.com) reopened this issue 2022-06-03 19:31:58 +00:00
prandnum commented 2022-06-03 19:32:47 +00:00 (Migrated from gitlab.com)

@hirunda please set the state to testing then i will close this bug.

CC: @serkixenos

@hirunda please set the state to testing then i will close this bug. CC: @serkixenos
prandnum commented 2022-06-06 12:41:19 +00:00 (Migrated from gitlab.com)

Works as expected.

Works as expected.
prandnum (Migrated from gitlab.com) closed this issue 2022-06-06 12:41:20 +00:00
Sign in to join this conversation.
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: Peerplays_Blockchain/peerplays_migrated#378
No description provided.