File tree Expand file tree Collapse file tree 2 files changed +4
-2
lines changed Expand file tree Collapse file tree 2 files changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -383,7 +383,7 @@ impl BlockMinerThread {
383
383
"block_height" => new_block. header. chain_length,
384
384
"consensus_hash" => %new_block. header. consensus_hash,
385
385
) ;
386
- continue ;
386
+ return Err ( e ) ;
387
387
}
388
388
_ => {
389
389
error ! ( "Error while gathering signatures: {e:?}. Will try mining again." ;
Original file line number Diff line number Diff line change @@ -4324,7 +4324,9 @@ impl ParentStacksBlockInfo {
4324
4324
let burn_chain_tip = SortitionDB :: get_canonical_burn_chain_tip ( burn_db. conn ( ) )
4325
4325
. expect ( "FATAL: failed to query sortition DB for canonical burn chain tip" ) ;
4326
4326
4327
- if burn_chain_tip. consensus_hash != check_burn_block. consensus_hash {
4327
+ if burn_chain_tip. consensus_hash != check_burn_block. consensus_hash
4328
+ && burn_chain_tip. sortition_id != check_burn_block. sortition_id
4329
+ {
4328
4330
info ! (
4329
4331
"New canonical burn chain tip detected. Will not try to mine." ;
4330
4332
"new_consensus_hash" => %burn_chain_tip. consensus_hash,
You can’t perform that action at this time.
0 commit comments