Stop logging warnings ErrTxNotFound in ethereum mempool

pull/124/head
Martin Boehm 2019-02-13 18:24:38 +01:00
parent 6460ca3872
commit 3edfebca65
1 changed files with 3 additions and 1 deletions

View File

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