diff options
Diffstat (limited to 'dex/app.go')
-rw-r--r-- | dex/app.go | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/dex/app.go b/dex/app.go index 5193fdfb8..867c10361 100644 --- a/dex/app.go +++ b/dex/app.go @@ -496,6 +496,9 @@ func (d *DexconApp) BlockDelivered(blockHash coreCommon.Hash, result coreTypes.F // BlockConfirmed is called when a block is confirmed and added to lattice. func (d *DexconApp) BlockConfirmed(block coreTypes.Block) { + d.insertMu.Lock() + defer d.insertMu.Unlock() + d.blockchain.AddConfirmedBlock(&block) } |