mirror of
https://github.com/fluencelabs/tendermint
synced 2025-06-14 13:51:21 +00:00
log invalid txs
This commit is contained in:
@ -1146,7 +1146,7 @@ func (cs *ConsensusState) finalizeCommit(height int) {
|
||||
PanicConsensus(Fmt("+2/3 committed an invalid block: %v", err))
|
||||
}
|
||||
|
||||
log.Notice("Finalizing commit of block", "height", block.Height, "hash", block.Hash())
|
||||
log.Notice(Fmt("Finalizing commit of block with %d txs", block.NumTxs), "height", block.Height, "hash", block.Hash())
|
||||
log.Info(Fmt("%v", block))
|
||||
|
||||
// Fire off event for new block.
|
||||
|
@ -70,6 +70,7 @@ func (s *State) execBlockOnProxyApp(evsw *events.EventSwitch, proxyAppConn proxy
|
||||
if res.Code == tmsp.RetCodeOK {
|
||||
validTxs += 1
|
||||
} else {
|
||||
log.Debug("Invalid tx", "code", res.Code, "log", res.Log)
|
||||
invalidTxs += 1
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user