-
Notifications
You must be signed in to change notification settings - Fork 507
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[FAB-10551] Fix CI error: could not find CC
The error 'could not find chaincode with name exampleCC' happens intermittently. There are two causes that this patch fixes: 1) When using dynamic local discovery, the non-anchor peer does not show up in the list of peers right away, so this patch will wait until all peers are there before attempting to install chaincode 2) After instatiating the CC, the non-anchor peer does not get the instantiate block right away, so any attempt to invoke the CC on that peer will result in the 'could not find CC' error. This patch will query for the instatiated chaincode until all peers have it, before attempting to invoke. Change-Id: I920ed3b7de8a3e985f8c5fed2ba96dc317fe2d39 Signed-off-by: Bob Stasyszyn <Bob.Stasyszyn@securekey.com>
- Loading branch information
1 parent
37c1b5a
commit 63d2604
Showing
2 changed files
with
82 additions
and
75 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters