Skip to content

Commit cb0e2c5

Browse files
committed
fix: use headPeer.address in anchor peer update instead of hardcoded peer0
Fixes #751 Signed-off-by: Ritesh Pandit <riteshpandit1708@gmail.com>
1 parent 45d6f78 commit cb0e2c5

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/setup-docker/templates/fabric-docker/commands-generated.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -216,14 +216,14 @@ notifyOrgsAboutChannels() {
216216
"<%= channel.name %>" <% -%>
217217
"<%= org.mspName %>" <% -%>
218218
"<%= org.cli.address %>" <% -%>
219-
"peer0.<%= org.domain %>" <% -%>
219+
"<%= org.headPeer.address %>" <% -%>
220220
"<%= channel.ordererHead.fullAddress %>"
221221
<% } else { -%>
222222
notifyOrgAboutNewChannelTls <% -%>
223223
"<%= channel.name %>" <% -%>
224224
"<%= org.mspName %>" <% -%>
225225
"<%= org.cli.address %>" <% -%>
226-
"peer0.<%= org.domain %>" <% -%>
226+
"<%= org.headPeer.address %>" <% -%>
227227
"<%= channel.ordererHead.fullAddress %>" <% -%>
228228
"crypto-orderer/tlsca.<%= channel.ordererHead.domain %>-cert.pem"
229229
<% } -%>

0 commit comments

Comments
 (0)