Stop logging warnings ErrTxNotFound in ethereum mempool

This commit is contained in:
Martin Boehm 2019-02-13 18:24:38 +01:00
parent 6460ca3872
commit 3edfebca65

View File

@ -75,7 +75,9 @@ func (m *MempoolEthereumType) Resync(onNewTxAddr OnNewTxAddrFunc) (int, error) {
if !exists { if !exists {
tx, err := m.chain.GetTransactionForMempool(txid) tx, err := m.chain.GetTransactionForMempool(txid)
if err != nil { if err != nil {
glog.Warning("cannot get transaction ", txid, ": ", err) if err != ErrTxNotFound {
glog.Warning("cannot get transaction ", txid, ": ", err)
}
continue continue
} }
io = make([]addrIndex, 0, len(tx.Vout)+len(tx.Vin)) io = make([]addrIndex, 0, len(tx.Vout)+len(tx.Vin))