Skip to content

Commit

Permalink
IOTEX-1025 update consensus messages (#1038)
Browse files Browse the repository at this point in the history
  • Loading branch information
CoderZhi authored and zjshen14 committed Apr 16, 2019
1 parent 6e04b47 commit 58f30cb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions consensus/scheme/rolldpos/rolldposctx.go
Original file line number Diff line number Diff line change
Expand Up @@ -237,15 +237,15 @@ func (ctx *rollDPoSCtx) Prepare() (
return
}
if isDelegate = ctx.round.IsDelegate(ctx.encodedAddr); !isDelegate {
ctx.logger().Info("current node is not a delegate")
ctx.logger().Info("current node is not an active consensus delegate")
delay = ctx.round.NextRoundStartTime().Sub(ctx.clock.Now())
return
}
if isProposer = ctx.round.Proposer() == ctx.encodedAddr; isProposer {
ctx.logger().Info("current node is a proposer")
proposal, err = ctx.mintBlock()
} else {
ctx.logger().Info("current node is a delegate")
ctx.logger().Info("current node is an active consensus delegate")
locked = ctx.round.IsLocked()
}
delay = ctx.round.StartTime().Sub(ctx.clock.Now())
Expand Down

0 comments on commit 58f30cb

Please sign in to comment.