Skip to content

Commit

Permalink
try to fix discovery following Kelvin recommendation
Browse files Browse the repository at this point in the history
  • Loading branch information
inelgnu committed Dec 11, 2019
1 parent 66ec50f commit b2ecdbe
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions backend/backend/settings/deps/ledger.py
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,11 @@ def update_client_with_discovery(client, discovery_results):

# Load one peer per msp for endorsing transaction
for msp in discovery_results['members']:
if not len(msp):
continue

peer_info = msp[0]

if peer_info['mspid'] != LEDGER['client']['msp_id']:
peer = Peer(name=peer_info['mspid'])

Expand Down

0 comments on commit b2ecdbe

Please sign in to comment.