Browse Source

log invalid txs

pull/192/head
Ethan Buchman 9 years ago
parent
commit
c0024cc7b2
2 changed files with 2 additions and 1 deletions
  1. +1
    -1
      consensus/state.go
  2. +1
    -0
      state/execution.go

+ 1
- 1
consensus/state.go View File

@ -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.


+ 1
- 0
state/execution.go View File

@ -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
}
}


Loading…
Cancel
Save