Synchronize mempool before starting server interfaces

indexv1
Martin Boehm 2018-03-06 12:42:54 +01:00
parent d1c4c66c5f
commit 98d91d4ce1
1 changed files with 4 additions and 2 deletions

View File

@ -151,6 +151,10 @@ func main() {
glog.Error("resyncIndex ", err)
return
}
if err = mempool.Resync(nil); err != nil {
glog.Error("resyncIndex ", err)
return
}
}
if txCache, err = db.NewTxCache(index, chain); err != nil {
@ -204,8 +208,6 @@ func main() {
// start the synchronization loops after the server interfaces are started
go syncIndexLoop()
go syncMempoolLoop()
// sync mempool immediately
chanSyncMempool <- struct{}{}
}
var mq *bchain.MQ