-
Notifications
You must be signed in to change notification settings - Fork 8.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
This commit can be divided into two parts. One implements chaincode upgrade cli. Another is a refactor of chaincode cmd package. The main idea is extract endorserClient/broadcastClient/signer to be holded by ChaincodeCmdFactory, then we can get clients needed from ChaincodeCmdFactory in cmd implements. Thus in unit-tests, we can construct mock clients for tests. If this refactor looks good, we can extend it to other cmd tests. Change-Id: I1a44e347009fc645b2e97cd6d65efde5fb229257 Signed-off-by: jiangyaoguo <[email protected]>
- Loading branch information
1 parent
62e16f9
commit eb048ef
Showing
13 changed files
with
554 additions
and
129 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
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
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
Oops, something went wrong.