|
|
@ -21,6 +21,7 @@ import ( |
|
|
|
"github.com/ethereum/go-ethereum/rlp" |
|
|
|
"github.com/ethereum/go-ethereum/rlp" |
|
|
|
pb "github.com/golang/protobuf/proto" |
|
|
|
pb "github.com/golang/protobuf/proto" |
|
|
|
"github.com/harmony-one/bls/ffi/go/bls" |
|
|
|
"github.com/harmony-one/bls/ffi/go/bls" |
|
|
|
|
|
|
|
common2 "github.com/harmony-one/harmony/internal/common" |
|
|
|
libp2p_peer "github.com/libp2p/go-libp2p-peer" |
|
|
|
libp2p_peer "github.com/libp2p/go-libp2p-peer" |
|
|
|
|
|
|
|
|
|
|
|
"github.com/harmony-one/harmony/api/proto" |
|
|
|
"github.com/harmony-one/harmony/api/proto" |
|
|
@ -31,7 +32,6 @@ import ( |
|
|
|
"github.com/harmony-one/harmony/contracts/structs" |
|
|
|
"github.com/harmony-one/harmony/contracts/structs" |
|
|
|
"github.com/harmony-one/harmony/core" |
|
|
|
"github.com/harmony-one/harmony/core" |
|
|
|
"github.com/harmony-one/harmony/core/types" |
|
|
|
"github.com/harmony-one/harmony/core/types" |
|
|
|
common2 "github.com/harmony-one/harmony/internal/common" |
|
|
|
|
|
|
|
nodeconfig "github.com/harmony-one/harmony/internal/configs/node" |
|
|
|
nodeconfig "github.com/harmony-one/harmony/internal/configs/node" |
|
|
|
"github.com/harmony-one/harmony/internal/ctxerror" |
|
|
|
"github.com/harmony-one/harmony/internal/ctxerror" |
|
|
|
"github.com/harmony-one/harmony/internal/utils" |
|
|
|
"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) { |
|
|
|
if node.Consensus.PubKey.IsEqual(node.Consensus.LeaderPubKey) { |
|
|
|
node.BroadcastNewBlock(newBlock) |
|
|
|
node.BroadcastNewBlock(newBlock) |
|
|
|
} else { |
|
|
|
} 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 { |
|
|
|
if err := node.AddNewBlock(newBlock); err != nil { |
|
|
|