This repository was archived by the owner on Apr 22, 2025. It is now read-only.
Commit 4de9150
committed
FABN-1124: Use MSP ID from client user context
If Client has a user context set, use the MSP ID of that user as
the default MSP ID for the client. If no user context is set,
use the MSP ID of the organization specified in the client section
of the common connection profile used to configure the client, as
before.
This allows the client section of the connection profile to be
omitted for discovery, and functions like Client.getPeersForOrg()
to return the correct results in this case.
Change-Id: I7e0f1bd79c904a0b665a3b411952beb65884e38e
Signed-off-by: Mark S. Lewis <mark_lewis@uk.ibm.com>1 parent ffef003 commit 4de9150
File tree
4 files changed
+361
-301
lines changed- fabric-client
- lib
- test
- test
- fixtures
- unit
4 files changed
+361
-301
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
70 | 70 | | |
71 | 71 | | |
72 | 72 | | |
73 | | - | |
| 73 | + | |
74 | 74 | | |
75 | 75 | | |
76 | 76 | | |
| |||
393 | 393 | | |
394 | 394 | | |
395 | 395 | | |
396 | | - | |
| 396 | + | |
397 | 397 | | |
398 | 398 | | |
399 | 399 | | |
| |||
463 | 463 | | |
464 | 464 | | |
465 | 465 | | |
466 | | - | |
| 466 | + | |
467 | 467 | | |
468 | 468 | | |
469 | 469 | | |
| |||
576 | 576 | | |
577 | 577 | | |
578 | 578 | | |
579 | | - | |
| 579 | + | |
| 580 | + | |
| 581 | + | |
580 | 582 | | |
581 | 583 | | |
582 | 584 | | |
| |||
1327 | 1329 | | |
1328 | 1330 | | |
1329 | 1331 | | |
1330 | | - | |
| 1332 | + | |
1331 | 1333 | | |
1332 | 1334 | | |
1333 | 1335 | | |
| |||
0 commit comments