- 02 Mar, 2019 1 commit
-
-
David Enyeart authored
Add a hint about root cause - application capability V1_3 required. Change-Id: I4c72c4972f31732dff2e6aadd303853d5a1c79e7 Signed-off-by:
David Enyeart <enyeart@us.ibm.com>
-
- 05 Dec, 2018 1 commit
-
-
Senthil Nathan N authored
private data APIs are not allowed in Init() since the private data collection configuration is not yet committed on the channel. This CR provide a better error message indicating that pvtdata APIs are not allowed in chaincode Init(). FAB-13050 #done Change-Id: I6e6a8abdf1f35f56307be90d8b6b2830c8f35755 Signed-off-by:
senthil <cendhu@gmail.com>
-
- 02 Dec, 2018 1 commit
-
-
Senthil Nathan N authored
This CR introduces a cache (i.e., Golang map) in the txContext so that we can avoid repeating the same collection ACL check for a given <ns, coll> during privateData access. FAB-13040 #done Change-Id: I3093c2079e78b2b349276a275b22e77d7bd9c871 Signed-off-by:
senthil <cendhu@gmail.com>
-
- 01 Dec, 2018 1 commit
-
-
Senthil Nathan N authored
using the simpleCollectionStore in transactionContext, get the policy and evaluate it against the signedData to decide whether a private data access should be allowed or not. FAB-13039 #done Change-Id: I9f66ae70aac5c439ec5dc943407c59d365ef5d84 Signed-off-by:
senthil <cendhu@gmail.com>
-
- 30 Nov, 2018 1 commit
-
-
Senthil Nathan N authored
We need to add simpleCollectionStore interface in the transactionContext so that we can check whether the creator has access to the collection or not. FAB-13038 #done Change-Id: I5b150bb751bd22451b546b8c1028e54f1f1ca884 Signed-off-by:
senthil <cendhu@gmail.com>
-
- 28 Nov, 2018 1 commit
-
-
Will Lahti authored
This CR adds metrics for chaincode launch failures, chaincode launch timeouts, and chaincode execute timeouts. FAB-13027 #done Change-Id: Id995c92c56e2c064e38ee42f907c92af32c101c8 Signed-off-by:
Will Lahti <wtlahti@us.ibm.com>
-
- 19 Nov, 2018 1 commit
-
-
Will Lahti authored
Add metric for launch duration. FAB-12798 #done Change-Id: I0a200f32e2d14ce760b9de1d58c1d751c271fda2 Signed-off-by:
Will Lahti <wtlahti@us.ibm.com> Signed-off-by:
Matthew Sykes <sykesmat@us.ibm.com>
-
- 16 Nov, 2018 1 commit
-
-
Will Lahti authored
Adds metrics for transactions received, completed, and transaction duration. FAB-12797 #done Change-Id: I4bd48ed57e37e2be8ac95319a996889d61fa09e2 Signed-off-by:
Will Lahti <wtlahti@us.ibm.com> Signed-off-by:
Matthew Sykes <sykesmat@us.ibm.com>
-
- 13 Nov, 2018 1 commit
-
-
Suchith Arodi authored
Signed-off-by:
Suchith Arodi <suchith.arodi@gmail.com> Change-Id: I488f0d4f5216da5f67573e0eb6014e776f65cee1
-
- 29 Oct, 2018 1 commit
-
-
Saad Karim authored
Loggers shouldn't need to "register" in order to determine their level. Updated the Level() logic to evaluate a logger's module name against the current log spec. FAB-12528 #done Change-Id: I54bf378cd021ad1e4310b16cf1e313c9e4a39bb0 Signed-off-by:
Saad Karim <skarim@us.ibm.com> Signed-off-by:
Will Lahti <wtlahti@us.ibm.com> Signed-off-by:
Matthew Sykes <sykesmat@us.ibm.com>
-
- 07 Sep, 2018 2 commits
-
-
senthil authored
We need to make necessary changes in the core/chaincode/handler.go for pagination of results. Currently, the handler.go in the peer calls the ledger to execute queries (range query, rich query) on behalf of the chaincode. On an execution of a query, the ledger returns an iterator. Using the iterator, peer constructs the query response with records and send the response to chaincode. This CR makes the following changes to support pagination of results. When a pagination of results is enabled for a query (i.e., when the query metadata is passed with either pageSize or a bookmark or both for range/rich queries), the peer would call the new pagination enabled range/rich query APIs at ledger which would return a response metadata in addition to an iterator. The response metadata would contain the next bookmark and the number of records fetched for the query. Peer retrieves all fetched records from ledger, constructs a query response including both records and response metadata. The chaincode can pass on the bookmark in the response metadata to the application/sdk. Change-Id: Id770dd184369d1f7eaa30f046e1923c8fde564a5 Signed-off-by:
senthil <cendhu@gmail.com> Signed-off-by:
Chris Elder <chris.elder@us.ibm.com>
-
Matthew Sykes authored
Address a handful of comments related to the CR chain merged for state based endorsement in the chaincode package. Change-Id: I5b87ff172dfdc79c8070c89feeea6f5535ba39bc Signed-off-by:
Matthew Sykes <sykesmat@us.ibm.com>
-
- 05 Sep, 2018 3 commits
-
-
Alessandro Sorniotti authored
Make sure that a chaincode can invoke the new metadata-related getters and setters only if the channel operates in 1.2 mode. Change-Id: I15e77cd88a6e7ef0e802b02743a7e3cbdcc30ee3 Signed-off-by:
Alessandro Sorniotti <ale.linux@sopit.net> Signed-off-by:
Matthias Neugschwandtner <eug@zurich.ibm.com>
-
Alessandro Sorniotti authored
This change set enables the chaincode handler to retrieve application capabilities. Change-Id: I19aeb6a8a690964f27774f9339c965948151489d Signed-off-by:
Alessandro Sorniotti <ale.linux@sopit.net> Signed-off-by:
Matthias Neugschwandtner <eug@zurich.ibm.com>
-
Matthias Neugschwandtner authored
Extending the chaincode handler and shim implementation to support setting and retrieval of per-key metadata. Change-Id: I95cd24c9dc34a3310e1c83a8e97ec638b14b0a8b Signed-off-by:
Matthias Neugschwandtner <eug@zurich.ibm.com> Signed-off-by:
Alessandro Sorniotti <ale.linux@sopit.net>
-
- 09 Aug, 2018 2 commits
-
-
Matthew Sykes authored
Errors encountered while sending a message from the peer to chaincode were not handled consistently. This CR adopts the philosophy that send failures should be treated consistently. Change-Id: I49893e7db0376c0b78d1f654c7dc94e6eeabb38d Signed-off-by:
Matthew Sykes <sykesmat@us.ibm.com>
-
Matthew Sykes authored
Change-Id: I814cc86bd8c6120fe417deca19562bb809154cda Signed-off-by:
Matthew Sykes <sykesmat@us.ibm.com>
-
- 16 Jul, 2018 6 commits
-
-
Jason Yellick authored
This CR finally completes removing the legacy data "ChaincodeSpec" structures from the non-shim related pieces of the chaincode package. To maintain compatibility with the existing chaincode images, the ChaincodeSpec still exists in the handler path, and to maintain compatibility with the legacy lifecycle, a single deployment spec acceing execute method is available. Both of these should be removed in time. Change-Id: I5659695a55e0947a1ccec23721192a4c88177b38 Signed-off-by:
Jason Yellick <jyellick@us.ibm.com>
-
Jason Yellick authored
The chaincode context structure help the channel id, the chaincode name, chaincode version, and other things unrelated to identifying a chaincode like the proposal bytes. These other fields are also stored in the transaction parms, so, they are not needed and are confusing when in the chaincode context. This CR removes them. Change-Id: I892bd24cc621800cd1b089d90d0a603e112ae84c Signed-off-by:
Jason Yellick <jyellick@us.ibm.com>
-
Jason Yellick authored
Presently, there is a "context" which is passed into the chaincode package. Rather than actually be used for its intended purpose (of waiting for cancelation), the context is never actually checked. Instead, it simply carries the transaction simulators around in an opaque fashion. It's much better to make these transaction simulators to be passed in explicitly. Additionally, some other facets like TxID and the assorted proposals really fit much more naturally with the simulators and not with the chaincode context. So, this CR brings them in as well. Change-Id: I7e0c43af22f1e96b8d302e5cf877e7beec36598b Signed-off-by:
Jason Yellick <jyellick@us.ibm.com>
-
Jason Yellick authored
The syscc attribute is only used as part of deciding whether or not to print a log message. And, it is unnecessary in this case, so, removing it. Change-Id: I17ff4f654984240deddb726cc5902f83232993c3 Signed-off-by:
Jason Yellick <jyellick@us.ibm.com>
-
Jason Yellick authored
There was a shim created by the chaincode package to abstract away lifecycle operations. Over time, this shim has done less and less as the LSCC implementation has exposed more function directly rather than as chaincode calls. Now, the shim is only translating names. This CR simply aligns the names and removes the shim. Change-Id: Ide10dbe5b872752458dca87b0a520b946a644afd Signed-off-by:
Jason Yellick <jyellick@us.ibm.com>
-
Jason Yellick authored
Now that LSCC can be queried directly for chaincode definitions instead of having to go the roundabout way of invoking chaincode, the assorted internal users of 'getccdata' can be converted to use the new interface. Change-Id: Ic435742817643d2dc08d83afe2f66980c649b56a Signed-off-by:
Jason Yellick <jyellick@us.ibm.com>
-
- 10 Jul, 2018 1 commit
-
-
Jason Yellick authored
Presently, the Execute function can either take a 'ChaincodeInvocationSpec' or a 'ChaincodeDeploymentSpec', and the path switches in a few different places depending on which it is. This makes the code complicated and difficult to understand, and in the interest of removing the chaincode deployment spec entirely, this code path should be isolated. Change-Id: I1f54684dba5877b5c629a59d344803f6423cc3da Signed-off-by:
Jason Yellick <jyellick@us.ibm.com>
-
- 02 Jul, 2018 1 commit
-
-
Matthew Sykes authored
Fix data race in the shim A data race existed between reading and setting the error value returned from stream.Recv(). Modify the shim to avoid the race and add a bit more alignment between the peer and shim stream processing functions. Fix data races in MockCCComm - Quit was causing a race between channel send and close. Resolved by wiring a channel to Run and closing send and receive after the done channel had closed. - The keep alive go routine was racing on the keepAlive message during send. Wired the done channel into the keep-alive go routine. - Some tests are setting responses while go routines are running. Work around this bad behavior with a lock to avoid restructuring tests. Change-Id: I49bab82336bbbeb941b7db2d8bd279f254b4ec9f Signed-off-by:
Matthew Sykes <sykesmat@us.ibm.com>
-
- 22 May, 2018 4 commits
-
-
Matthew Sykes authored
Change-Id: I6863621e0f6c9eda47e6d37027f059a4ec3028b6 Signed-off-by:
Matthew Sykes <sykesmat@us.ibm.com>
-
Matthew Sykes authored
...and fix some typos Change-Id: I81fc5566cbae60349579de861b0fc74237212255 Signed-off-by:
Matthew Sykes <sykesmat@us.ibm.com>
-
Matthew Sykes authored
HandleInvokeChaincode should have returned the pb.ChaincodeMessage from the target handler as the response payload but it was returning the payload from the response. The handler now returns the original message. The TestChaincodeInvokeChaincode test has also been restored and is no longer skipped by default. Change-Id: I42aeb8504d70dd9435f55050cb7f0da3f71c8977 Signed-off-by:
Matthew Sykes <sykesmat@us.ibm.com>
-
Matthew Sykes authored
Change-Id: Icffce261c676fd80afecfeafbc873288c950ffca Signed-off-by:
Matthew Sykes <sykesmat@us.ibm.com>
-
- 14 May, 2018 2 commits
-
-
Matthew Sykes authored
Registry holds LaunchState to track launching instead of a bare channel. When launches complete, the embedded channel is closed. The error managed by LaunchState can be used to determine if the launch failed or succeeded. Change-Id: Ib069c5752915a8839cf9af50ab94224345e4ffc3 Signed-off-by:
Matthew Sykes <sykesmat@us.ibm.com>
-
Matthew Sykes authored
Change-Id: I088138ff65bfade39b233ac02a678a14387e9f8f Signed-off-by:
Matthew Sykes <sykesmat@us.ibm.com>
-
- 11 May, 2018 1 commit
-
-
Matthew Sykes authored
Based on a review comment. Change-Id: Ic69721aa95eb84f2cf4f4ffe70be3c91d39e89d6 Signed-off-by:
Matthew Sykes <sykesmat@us.ibm.com>
-
- 10 May, 2018 8 commits
-
-
Matthew Sykes authored
- Convert ActiveTransactions, Config, and PendingQueryResult unit tests to ginkgo. - Rename chaincode.getChaincodeInstance to chaincode.ParseName Change-Id: I2ade369d35b4bf9e47c2d8f0282a5413a834dd18 Signed-off-by:
Matthew Sykes <sykesmat@us.ibm.com>
-
Matthew Sykes authored
Change-Id: I17627eea18627b0c62ff8b20a5642c933075f85b Signed-off-by:
Saad Karim <skarim@us.ibm.com> Signed-off-by:
Matthew Sykes <sykesmat@us.ibm.com>
-
Matthew Sykes authored
Change-Id: I6fd3845799c7498471c04aeda186106323c41f31 Signed-off-by:
Saad Karim <skarim@us.ibm.com> Signed-off-by:
Matthew Sykes <sykesmat@us.ibm.com>
-
Matthew Sykes authored
- Remove constructor in favor of explicit dependency injection from ChaincodeSupport to the handler instance. - Add some documentation comments and group fields in Handler - Change state to int based enum so zero value matches default state of created - Rename getCCRootName to chaincodeName to more accurately reflect what is returned Change-Id: I56aa4245be5d1f465b50842b1e92b9b53eff0303 Signed-off-by:
Saad Karim <skarim@us.ibm.com> Signed-off-by:
Matthew Sykes <sykesmat@us.ibm.com>
-
Matthew Sykes authored
Change-Id: I46fc591bfc3d4a586bcf5f95227f92be221b8da4 Signed-off-by:
Saad Karim <skarim@us.ibm.com> Signed-off-by:
Matthew Sykes <sykesmat@us.ibm.com>
-
Matthew Sykes authored
Change-Id: Ib6b855d09851f1796240b55dde7c12a2b73a0c61 Signed-off-by:
Matthew Sykes <sykesmat@us.ibm.com>
-
Matthew Sykes authored
Change-Id: I033f8ca007b433082172689f951ea988024a1b90 Signed-off-by:
Saad Karim <skarim@us.ibm.com> Signed-off-by:
Matthew Sykes <sykesmat@us.ibm.com>
-
Matthew Sykes authored
Change-Id: I1e9baf4fa8fc3f0e08ebf6530317ccb97cab4653 Signed-off-by:
Saad Karim <skarim@us.ibm.com> Signed-off-by:
Matthew Sykes <sykesmat@us.ibm.com>
-