1
0
mirror of https://github.com/romanz/electrs.git synced 2024-11-19 09:54:09 +01:00

Reduce log verbosity for missing mempool transactions

This commit is contained in:
Roman Zeyde 2020-07-31 20:12:24 +03:00
parent 33aaf7ddc6
commit 39111665d0
No known key found for this signature in database
GPG Key ID: 87CAE5FA46917CBB

View File

@ -208,7 +208,7 @@ impl Tracker {
match daemon.getmempoolentry(txid) {
Ok(entry) => Some((txid, entry)),
Err(err) => {
warn!("no mempool entry {}: {}", txid, err); // e.g. new block or RBF
debug!("no mempool entry {}: {}", txid, err); // e.g. new block or RBF
None // ignore this transaction for now
}
}
@ -219,7 +219,7 @@ impl Tracker {
let txs = match daemon.gettransactions(&txids) {
Ok(txs) => txs,
Err(err) => {
warn!("failed to get transactions {:?}: {}", txids, err); // e.g. new block or RBF
debug!("failed to get transactions {:?}: {}", txids, err); // e.g. new block or RBF
return Ok(()); // keep the mempool until next update()
}
};