From 47906dc46cd80731ff1a556456e945c328944c70 Mon Sep 17 00:00:00 2001 From: Josh Rickmar Date: Tue, 28 Jan 2014 16:11:59 -0500 Subject: [PATCH] Don't use extra goroutine to rollback account data. --- btcdrpc.go | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/btcdrpc.go b/btcdrpc.go index ff1df00..9437df2 100644 --- a/btcdrpc.go +++ b/btcdrpc.go @@ -487,9 +487,7 @@ func NtfnBlockDisconnected(n btcjson.Cmd, marshaled []byte) { } // Rollback Utxo and Tx data stores. - go func() { - accountstore.Rollback(bdn.Height, hash) - }() + accountstore.Rollback(bdn.Height, hash) // Pass notification to frontends too. frontendNotificationMaster <- marshaled