diff --git a/blockmanager.go b/blockmanager.go index 23702087..318c5b00 100644 --- a/blockmanager.go +++ b/blockmanager.go @@ -652,8 +652,10 @@ func (b *blockManager) handleNotifyMsg(notification *btcchain.Notification) { // Notify frontends if r := b.server.rpcServer; r != nil { - go r.NotifyBlockConnected(block) - go r.NotifyBlockTXs(b.server.db, block) + go func() { + r.NotifyBlockTXs(b.server.db, block) + r.NotifyBlockConnected(block) + }() } // A block has been disconnected from the main block chain.