Commit 231bfd0
Srinivasan Muralidharan
FAB-2524 - instantiate/upgrade should not specify code
https://jira.hyperledger.org/browse/FAB-2524
Instantiate and Upgrade continue to use the ChaincodeDeploymentSpec.
They should instead use the CDS from the installed package.
We should note that a better way to do that is to not overload
ChaincodeDeploymentSpec but use it only for the install command. That is
a much bigger change involving protocol and best done in a future CR.
We could check instantiate and upgrade calls just have minimal
information in the CDS and return error. This is not done in this
CR for two reasons
. this is a tactical fix pending the right protocol change mentioned
. don't want to break SDKs which may be sending those spurious
information. We will just ignore such information. They can make
the change at their convenience
Change-Id: I9ee8e6e347e3f935626d8b113dbe512a85859f19
Signed-off-by: Srinivasan Muralidharan <muralisr@us.ibm.com>1 parent ebe1b4d commit 231bfd0
2 files changed
+15
-9
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
467 | 467 | | |
468 | 468 | | |
469 | 469 | | |
470 | | - | |
471 | 470 | | |
472 | 471 | | |
473 | 472 | | |
| |||
479 | 478 | | |
480 | 479 | | |
481 | 480 | | |
482 | | - | |
483 | 481 | | |
484 | 482 | | |
485 | 483 | | |
| |||
536 | 534 | | |
537 | 535 | | |
538 | 536 | | |
539 | | - | |
540 | | - | |
541 | 537 | | |
542 | 538 | | |
543 | 539 | | |
| |||
554 | 550 | | |
555 | 551 | | |
556 | 552 | | |
557 | | - | |
| 553 | + | |
| 554 | + | |
| 555 | + | |
| 556 | + | |
| 557 | + | |
558 | 558 | | |
559 | 559 | | |
560 | 560 | | |
561 | 561 | | |
562 | 562 | | |
| 563 | + | |
| 564 | + | |
563 | 565 | | |
564 | 566 | | |
565 | 567 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
145 | 145 | | |
146 | 146 | | |
147 | 147 | | |
| 148 | + | |
| 149 | + | |
| 150 | + | |
| 151 | + | |
| 152 | + | |
| 153 | + | |
| 154 | + | |
| 155 | + | |
148 | 156 | | |
149 | 157 | | |
150 | 158 | | |
| |||
166 | 174 | | |
167 | 175 | | |
168 | 176 | | |
169 | | - | |
170 | | - | |
171 | | - | |
172 | | - | |
173 | 177 | | |
174 | 178 | | |
175 | 179 | | |
| |||
0 commit comments