Skip to content

Commit

Permalink
NODE-2609 Schedule mining attempt after liquid block replacement
Browse files Browse the repository at this point in the history
  • Loading branch information
Ivan Mashonskii committed Oct 2, 2023
1 parent 7bed2d4 commit 24fe4fc
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -276,6 +276,10 @@ class BlockchainUpdaterImpl(
BlockStats.replaced(ng.base, block)
val (mbs, diffs) = ng.allSnapshots.unzip
log.trace(s"Discarded microblocks = $mbs, diffs = ${diffs.map(_.hashString)}")

val updatedBlockchain = SnapshotBlockchain(referencedBlockchain, r.snapshot, block, hitSource, r.carry, None, None)
miner.scheduleMining(Some(updatedBlockchain))

blockchainUpdateTriggers.onRollback(this, ng.base.header.reference, rocksdb.height)
blockchainUpdateTriggers.onProcessBlock(block, r.keyBlockSnapshot, ng.reward, hitSource, referencedBlockchain)
Some((r, diffs, ng.reward, hitSource))
Expand Down

0 comments on commit 24fe4fc

Please sign in to comment.