Skip to content

Commit

Permalink
assign whole ConfState
Browse files Browse the repository at this point in the history
Signed-off-by: Antoine Toulme <[email protected]>
  • Loading branch information
atoulme committed Apr 2, 2022
1 parent b80153f commit 7933d80
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion orderer/consensus/etcdraft/node.go
Original file line number Diff line number Diff line change
Expand Up @@ -206,7 +206,7 @@ func (n *node) send(msgs []raftpb.Message) {
if msg.Type == raftpb.MsgSnap {
state := n.confState.Load()
if state != nil {
msg.Snapshot.Metadata.ConfState.Voters = state.(*raftpb.ConfState).Voters
msg.Snapshot.Metadata.ConfState = *state.(*raftpb.ConfState)
}
}

Expand Down

0 comments on commit 7933d80

Please sign in to comment.