Add logging to utxo mempool

This commit is contained in:
Martin Boehm 2018-05-16 14:30:12 +02:00
parent abd53adb84
commit 7118581b3b

View File

@ -55,6 +55,7 @@ func NewUTXOMempool(chain BlockChain) *UTXOMempool {
}
}(i)
}
glog.Info("mempool: starting with ", numberOfSyncRoutines, " workers")
return m
}
@ -177,6 +178,6 @@ func (m *UTXOMempool) Resync(onNewTxAddr func(txid string, addr string)) error {
}
m.updateMappings(newTxToInputOutput, newAddrIDToTx)
m.onNewTxAddr = nil
glog.Info("Mempool: resync finished in ", time.Since(start), ", ", len(m.txToInputOutput), " transactions in mempool")
glog.Info("mempool: resync finished in ", time.Since(start), ", ", len(m.txToInputOutput), " transactions in mempool")
return nil
}