Commit 5914b12
Chris Elder
FAB-959 Chaincode with binary data in CouchDB
CouchDB is most suited for handling chaincode with JSON values.
But in some cases chaincode with binary values will need to be stored
in CouchDB state database, for example to support chaincode
deployment in lifecycle chaincode.
This change adds attachment support for couchDB in order to handle
chaincode with binary data, in addition to chaincode with JSON data.
For this change, only one attachment is supported even though
the attachment is added as an array.
The new signature for SaveDoc now allows for either a JSON represented
as a byte array or an array of attachments.
Change-Id: Ifac9ce56c053ed929dae2aab4a5932c0453680a7
Signed-off-by: Chris Elder <chris.elder@us.ibm.com>1 parent 2e9fab0 commit 5914b12
File tree
3 files changed
+433
-47
lines changed- core/ledger/kvledger/txmgmt/couchdbtxmgmt
- couchdb
3 files changed
+433
-47
lines changed
0 commit comments