Add Wallet Address to BINGO Messages

pull/1373/head
charleszqwang 5 years ago
parent e02f5d4a3c
commit 9d6f01c129
  1. 4
      node/node_handler.go

@ -21,6 +21,7 @@ import (
"github.com/ethereum/go-ethereum/rlp"
pb "github.com/golang/protobuf/proto"
"github.com/harmony-one/bls/ffi/go/bls"
common2 "github.com/harmony-one/harmony/internal/common"
libp2p_peer "github.com/libp2p/go-libp2p-peer"
"github.com/harmony-one/harmony/api/proto"
@ -31,7 +32,6 @@ import (
"github.com/harmony-one/harmony/contracts/structs"
"github.com/harmony-one/harmony/core"
"github.com/harmony-one/harmony/core/types"
common2 "github.com/harmony-one/harmony/internal/common"
nodeconfig "github.com/harmony-one/harmony/internal/configs/node"
"github.com/harmony-one/harmony/internal/ctxerror"
"github.com/harmony-one/harmony/internal/utils"
@ -396,7 +396,7 @@ func (node *Node) PostConsensusProcessing(newBlock *types.Block) {
if node.Consensus.PubKey.IsEqual(node.Consensus.LeaderPubKey) {
node.BroadcastNewBlock(newBlock)
} else {
utils.GetLogInstance().Info("BINGO !!! Reached Consensus", "ViewID", node.Consensus.GetViewID())
utils.GetLogInstance().Info("BINGO !!! Reached Consensus", "ViewID", node.Consensus.GetViewID(), "MyAddress", common2.MustAddressToBech32(node.Consensus.SelfAddress))
}
if err := node.AddNewBlock(newBlock); err != nil {

Loading…
Cancel
Save