Skip to content

Commit

Permalink
always set leaderchainid (#1070)
Browse files Browse the repository at this point in the history
  • Loading branch information
WhoSoup authored Oct 6, 2020
1 parent 802316f commit 10f72f1
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions common/messages/electionMsgs/fedVoteLevelMsg.go
Original file line number Diff line number Diff line change
Expand Up @@ -257,6 +257,9 @@ func (m *FedVoteLevelMsg) FollowerExecute(is interfaces.IState) {

// Add to the process list (which will get immediately processed)
is.LogMessage("executeMsg", "add to pl", m.Volunteer.Ack)

// make sure the message has leaderchainid set
m.Volunteer.Missing.SetLeaderChainID(m.Volunteer.Ack.GetLeaderChainID())
pl.AddToProcessList(pl.State, m.Volunteer.Ack.(*messages.Ack), m.Volunteer.Missing)
} else {
is.ElectionsQueue().Enqueue(m)
Expand Down
2 changes: 1 addition & 1 deletion state/stateConsensus.go
Original file line number Diff line number Diff line change
Expand Up @@ -2543,7 +2543,7 @@ func (s *State) ProcessDBSig(dbheight uint32, msg interfaces.IMsg) bool {
uint32(0),
msg.GetVMIndex(),
uint32(vm.Height),
dbs.LeaderChainID,
dbs.GetLeaderChainID(),
)
s.electionsQueue.Enqueue(InMsg)
}
Expand Down

0 comments on commit 10f72f1

Please sign in to comment.