- 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>
-
- 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>
-
- 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 2 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>
-
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 1 commit
-
-
Matthew Sykes authored
Change-Id: I814cc86bd8c6120fe417deca19562bb809154cda Signed-off-by:
Matthew Sykes <sykesmat@us.ibm.com>
-
- 16 Jul, 2018 7 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>
-
Jason Yellick authored
Protobuf was slated to be updated already, but there is a long list of incompatibilities with the current source tree. Thi CR updates protobuf to v1.1.0, and addresses those incompatibilities. Most of the changes are quite rote and fall into one of three buckets. 1. Code which uses non-keyed field initialization. (ie, initializing a struct like MyStruct{value1, value2, value3}). The newer generated protos produces structs which have additional non-field members. Structs should always be initialized with named fields, regardless of whether they are protos or not. 2. Code which assumes that reflect.DeepEqual between two protos with the same fields will return true. This has never been the case, especially when considering protos with slice or map fields, but with proto v1.1.0 with the addition of caching and other members to the proto structs, it is even less true. The correct call is proto.Equal. 3. Code which assumes that proto fails on bad inputs -- the proto spec has always stated that failure _may_ occur, not that it must. Certain code would attempt to determine proto message type based on failure to unmarshal, which was unsafe in v1.0.0, but is even more likely to cause problems in v1.1.0. 4. On average, half of gossip identity digests aren't valid UTF8 strings, and proto v1.1.0 now enforces UTF8 validity checks for string fields. Therefore, the field was converted to bytes. Change-Id: I74cc037903137705dbe3f4e27e34d1307596db3b Signed-off-by:
Jason Yellick <jyellick@us.ibm.com> Signed-off-by:
yacovm <yacovm@il.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>
-
- 22 May, 2018 3 commits
-
-
Matthew Sykes authored
Change-Id: I6863621e0f6c9eda47e6d37027f059a4ec3028b6 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 2 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>
-
- 25 Apr, 2018 2 commits
-
-
Matthew Sykes authored
Add explicit unit tests for TransactionContext Change-Id: I28323e43483397eff45b5100989750a464744ec0 Signed-off-by:
Matthew Sykes <sykesmat@us.ibm.com>
-
Matthew Sykes authored
Extract and explicitly unit test this object. Change-Id: I2585b2582ab5bfbd6a6f6c5791323e7de05835be Signed-off-by:
Matthew Sykes <sykesmat@us.ibm.com>
-
- 23 Apr, 2018 1 commit
-
-
Matthew Sykes authored
Change-Id: Idbaf47a38825694c64b2d6cdbfa4358ac7acf9af Signed-off-by:
Saad Karim <skarim@us.ibm.com> Signed-off-by:
Matthew Sykes <sykesmat@us.ibm.com>
-
- 21 Feb, 2018 1 commit
-
-
Luis Sanchez authored
final GET_STATE_BY_RANGE response now indicates that there are no more results when the total number of responses are a multiple of maxResultLimit (the maximum number of responses that can be returned in a single GET_STATE_BY_RANGE response). Change-Id: Ifd482f6f0951ac69698a5cd9f2c610ef84654bf7 Signed-off-by:
Luis Sanchez <sanchezl@us.ibm.com>
-