Log transactions rejected from mempool as debug.
Most users won't care if a freestanding transaction is rejected from due to a rule violation, but the information should still be available to debug.
This commit is contained in:
parent
849c830cf8
commit
19d28f90e6
1 changed files with 1 additions and 1 deletions
2
peer.go
2
peer.go
|
@ -422,7 +422,7 @@ func (p *peer) handleTxMsg(msg *btcwire.MsgTx) {
|
|||
// so log it as such. Otherwise, something really did go wrong,
|
||||
// so log it as an actual error.
|
||||
if _, ok := err.(TxRuleError); ok {
|
||||
log.Infof("Rejected transaction %v: %v", hash, err)
|
||||
log.Debugf("Rejected transaction %v: %v", hash, err)
|
||||
} else {
|
||||
log.Errorf("Failed to process transaction %v: %v", hash, err)
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue