Skip to content

Commit 947ca94

Browse files
author
Jason Yellick
committed
[FAB-6512] Change gossip leader election default
The sampleconfig/core.yaml file defaults to disabling leader election and instead setting the peer to be a leader. This is the wrong default, because enabling leader election fixes a number of potential errors, including peers permanently disconnectoin from the ordering service during a network partition, and allows a peer to join a channel with a genesis block which does not contain the peer's org definition. Change-Id: I1f6de1d5e7a0275003450756e6303e70643a04ca Signed-off-by: Jason Yellick <jyellick@us.ibm.com>
1 parent 06c52b7 commit 947ca94

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

sampleconfig/core.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -113,12 +113,12 @@ peer:
113113
# connection with ordering service and use delivery protocol
114114
# to pull ledger blocks from ordering service. It is recommended to
115115
# use leader election for large networks of peers.
116-
useLeaderElection: false
116+
useLeaderElection: true
117117
# Statically defines peer to be an organization "leader",
118118
# where this means that current peer will maintain connection
119119
# with ordering service and disseminate block across peers in
120120
# its own organization
121-
orgLeader: true
121+
orgLeader: false
122122

123123
# Overrides the endpoint that the peer publishes to peers
124124
# in its organization. For peers in foreign organizations

0 commit comments

Comments
 (0)