• R/O
  • HTTP
  • SSH
  • HTTPS

vapor: Commit

Golang implemented sidechain for Bytom


Commit MetaInfo

Revision4bc8c34936504eb903d2e8b5cf78473d41681b12 (tree)
Time2019-07-23 11:29:34
Authoryahtoo <yahtoo.ma@gmai...>
CommiterPaladz

Log Message

Opz log print (#343)

Change Summary

Incremental Difference

--- a/netsync/consensusmgr/handle.go
+++ b/netsync/consensusmgr/handle.go
@@ -67,7 +67,7 @@ func (m *Manager) processMsg(peerID string, msgType byte, msg ConsensusMessage)
6767 return
6868 }
6969
70- logrus.WithFields(logrus.Fields{"module": logModule, "peer": peer.Addr(), "type": reflect.TypeOf(msg), "message": msg.String()}).Info("receive message from peer")
70+ logrus.WithFields(logrus.Fields{"module": logModule, "peer": peer.Addr(), "type": reflect.TypeOf(msg), "message": msg.String()}).Debug("receive message from peer")
7171
7272 switch msg := msg.(type) {
7373 case *BlockProposeMsg:
--- a/p2p/peer.go
+++ b/p2p/peer.go
@@ -239,7 +239,7 @@ func (p *Peer) TrySend(chID byte, msg interface{}) bool {
239239 "peer": p.Addr(),
240240 "msg": msg,
241241 "type": reflect.TypeOf(msg),
242- }).Info("send message to peer")
242+ }).Debug("send message to peer")
243243 return p.mconn.TrySend(chID, msg)
244244 }
245245
--- a/protocol/block.go
+++ b/protocol/block.go
@@ -349,7 +349,7 @@ func (c *Chain) blockProcesser() {
349349 func (c *Chain) processBlock(block *types.Block) (bool, error) {
350350 blockHash := block.Hash()
351351 if c.BlockExist(&blockHash) {
352- log.WithFields(log.Fields{"module": logModule, "hash": blockHash.String(), "height": block.Height}).Info("block has been processed")
352+ log.WithFields(log.Fields{"module": logModule, "hash": blockHash.String(), "height": block.Height}).Debug("block has been processed")
353353 return c.orphanManage.BlockExist(&blockHash), nil
354354 }
355355
Show on old repository browser