mirror of
https://github.com/tendermint/tendermint.git
synced 2026-09-27 10:24:36 +00:00
various log fixes
This commit is contained in:
+4
-5
@@ -7,7 +7,6 @@ import (
|
||||
|
||||
. "github.com/tendermint/tendermint/binary"
|
||||
. "github.com/tendermint/tendermint/block"
|
||||
. "github.com/tendermint/tendermint/common"
|
||||
"github.com/tendermint/tendermint/p2p"
|
||||
)
|
||||
|
||||
@@ -71,10 +70,10 @@ func (pexR *MempoolReactor) RemovePeer(peer *p2p.Peer, reason interface{}) {
|
||||
func (memR *MempoolReactor) Receive(chId byte, src *p2p.Peer, msgBytes []byte) {
|
||||
_, msg_, err := DecodeMessage(msgBytes)
|
||||
if err != nil {
|
||||
log.Warn(Fmt("Error decoding message: %v", err))
|
||||
log.Warn("Error decoding message", "error", err)
|
||||
return
|
||||
}
|
||||
log.Info(Fmt("MempoolReactor received %v", msg_))
|
||||
log.Info("MempoolReactor received message", "msg", msg_)
|
||||
|
||||
switch msg_.(type) {
|
||||
case *TxMessage:
|
||||
@@ -82,10 +81,10 @@ func (memR *MempoolReactor) Receive(chId byte, src *p2p.Peer, msgBytes []byte) {
|
||||
err := memR.Mempool.AddTx(msg.Tx)
|
||||
if err != nil {
|
||||
// Bad, seen, or conflicting tx.
|
||||
log.Debug(Fmt("Could not add tx %v", msg.Tx))
|
||||
log.Debug("Could not add tx", "tx", msg.Tx)
|
||||
return
|
||||
} else {
|
||||
log.Debug(Fmt("Added valid tx %V", msg.Tx))
|
||||
log.Debug("Added valid tx", "tx", msg.Tx)
|
||||
}
|
||||
// Share tx.
|
||||
// We use a simple shotgun approach for now.
|
||||
|
||||
Reference in New Issue
Block a user