- 26 Oct, 2016 1 commit
-
-
Srinivasan Muralidharan authored
FAB-853 Ledger is removed from . core/peer/peer.go . core/rest/api.go Ledger package itself is removed. "ledgernext" is replaced with "ledger". Change-Id: Ie7dfbd9bf94afa0031aef759fc46929e4fb3b400 Signed-off-by:
Srinivasan Muralidharan <muralisr@us.ibm.com>
-
- 24 Oct, 2016 1 commit
-
-
Srinivasan Muralidharan authored
Following skeletal end to end flow work, this submit takes the next steps for Endorser/Committer . converts chaincode and endorser to ledgernext . removes consensus package . chaincode unit tests use ledgernext . panics if ledger.GetLedger is called so we can catch codepaths that still use that. These are mainly core/api and core/peer . removes unit tests from core/api and core/ledger (to avoid GetLedger calls there) . created a minimal core/peernext. core/peer is still there for comparison but is not used Change-Id: I2627e0000e960e1aa66d27ff5ec60a38c4bb7eea Signed-off-by:
Srinivasan Muralidharan <muralisr@us.ibm.com>
-
- 21 Oct, 2016 1 commit
-
-
Gregory Haskins authored
This reverts commit 5d9a3eab . chaincode_example04 calls chaincode_example02 via a hard-coded ID. This is intentional to catch change to the ID when NOTHING in chaincode_example02 or in its folder changes. ie, a test for the constancy of the hash generation algorithm. The patch attempt pass the ID as a parameter to prevent accidental changes to chaincode_example02 from causing test failures. While well-intented, this subverts the above reasoning behind the hard-coding. Also note that chaincode_example05 does take the argument as a parameter (so that usage is already covered). Change-Id: I8e305efb6fd577bc7d7e3d720d293cfb0e3c191f Signed-off-by:
Greg Haskins <gregory.haskins@gmail.com>
-
- 14 Oct, 2016 1 commit
-
-
Gong Su authored
If chaincode_example02 directory has other files, its deployment hashcode will be different from the hashcode ee5b... hardcoded in chaincode_example04. Change-Id: I4d435123a58d07b3a434f32a3d08e9cf98fdb9c6 Signed-off-by:
Gong Su <gongsugongsu@gmail.com>
-
- 03 Oct, 2016 1 commit
-
-
Gregory Haskins authored
This reverts commit 562a35fd, reversing changes made to 4a78b412. This was done because we inadvertently merged a good chunk of master when patch a96b9edc was submitted to the v0.6 branch. We will cherry-pick a96b9edc in a later patch to restore the fix in the proper way. Change-Id: Ib16c0220e65697a68a5140960b82780c175d9fa2 Signed-off-by:
Greg Haskins <gregory.haskins@gmail.com>
-
- 16 Sep, 2016 1 commit
-
-
Angelo De Caro authored
This PR addresses chaincode to chaincode invocation for confidential contracts (https://jira.hyperledger.org/browse/FAB-67 ). In order to achieve the goal the chaincode handler has been modified to contruct proper ephemeral transactions and security contexts. Let us consider the following scenario to describe the modification apported by this PR. Let us say that we have two chaincodes: A and B where A invokes B at some point of its computation. When a user invoke a chaincode A, using transaction tx, the certificate that the user has put in tx is passed to B when A invokes it. In this way, for example, chaincode B can perfom attribute-based access control. In addition, each chaincode can access it is own encrypted state and modify it in a proper way without affecting other chaincodes' state. This PR has been tested by adding a unit test in exectransaction_test.go. The unit tests, verify that C2C invocation can be perfomed when security is enabled. What will come next: 1. Chaincode to chaincode query. 2. Additional fields transfered to the invoked chaincode to support access control based on signature. Change-Id: I649d1953ac76e8af32d917a089a454fc0bba9fc1 Signed-off-by:
Angelo De Caro <adc@zurich.ibm.com>
-
- 08 Sep, 2016 1 commit
-
-
jiangyaoguo authored
Change-Id: Ifcda6ce5f3ec4714fea17519bd041343e4461751 Signed-off-by:
jiangyaoguo <jiangyaoguo@gmail.com>
-
- 07 Sep, 2016 1 commit
-
-
Keith Smith authored
Signed-off-by:
Keith Smith <bksmith@us.ibm.com> Change-Id: I2d8883fbc19d99bb80815ec764d115af06e1be96
-
- 04 Sep, 2016 1 commit
-
-
mastersingh24 authored
TestHTTPExecuteDeployTransaction is failing on master because it is trying to go get http://github.com/hyperledger/fabric-test-resources/examples/chaincode/go/chaincode_example01 which implements new interfaces from the convergence branch. This patch points the test at a different repo for now and demonstrates usage of gopkg.in to attempt to overcome limitations of go versioning Fixes FAB-305 Change-Id: I55113b36a7cd6c505e7dc2503a31d91fa11b8c5b Signed-off-by:
Gari Singh <gari.r.singh@gmail.com>
-
- 01 Sep, 2016 1 commit
-
-
Gabor Hosszu authored
Change-Id: I0a8b72fee55a5b203e3550e2c580f07ec10650e8 Signed-off-by:
Gabor Hosszu <gabor@digitalasset.com>
-
- 31 Aug, 2016 2 commits
-
-
Gabor Hosszu authored
Change-Id: I397f11320be2dc1225b9be6ef089a080e94986f1 Signed-off-by:
Gabor Hosszu <gabor@digitalasset.com>
-
Brad Gorman authored
As part of https://gerrit.hyperledger.org/r/#/c/365/ I forked the example code hosted on GitHub to pass the tests. Undoing that now so that the original GitHub repo can be used. The pull request to mirror this is at https://github.com/hyperledger/fabric-test-resources/pull/1 Change-Id: Ia0b504a35e9cba2318b0b80e8a75833b126ec726 Signed-off-by:
Bradley Gorman <bgorman@au1.ibm.com>
-
- 23 Aug, 2016 1 commit
-
-
Gabor Hosszu authored
Change-Id: Iff28dc9f8b828a47978846741054599c02d3a39c Signed-off-by:
Gabor Hosszu <gabor@digitalasset.com>
-
- 16 Aug, 2016 1 commit
-
-
Brad Gorman authored
Replaced ChaincodeStub with ChaincodeStubInterface to allow unit testing of chaincode. MockStub added to emulate a real chaincode without the storage or network requirements. Unit test examples for chaincode_example02 to 05. I have another changeset to address tables and certificates. Change-Id: I37d6115781436e080a70d5c48c1128ee01fef3ba Signed-off-by:
Bradley Gorman <bgorman@au1.ibm.com>
-
- 10 Aug, 2016 1 commit
-
-
Gabor Hosszu authored
This allows applications to easily pass arbitrary blobs without having to serialize them to strings. At the same time, we also consolidate the function argument to be part of the repeated bytes args. For convenience and to simplify porting of existing chaincode to the new argument format, we introduce helper functions in the shim which cast between ([][]byte) and (string, []string). Change-Id: I67562523a208727157c4767e86e1ef437e997f13 Signed-off-by:
Gabor Hosszu <gabor@digitalasset.com>
-
- 01 Aug, 2016 1 commit
-
-
grapebaba authored
Currently db will open when GetDBHandle method is invoked first time, so GetDBHandle method needs to use mutex. This patch makes db open and close in its lifecycle methods Start and Stop, invokes Start only when peer starts and invokes Stop when peer stops. After that, methods in db do not need to support concurrency. Change-Id: Id8612f2a846c5d626bd42c5cd4ae482076f6a975 Signed-off-by:
grapebaba <281165273@qq.com>
-
- 31 Jul, 2016 1 commit
-
-
Christopher Ferris authored
Moved logging modules from core to its own package so it could be shared, renamed flogging. Fixes #897 https://github.com/hyperledger/fabric/issues/897 patch set from https://github.com/hyperledger/fabric/pull/2300 address review comment rebased Change-Id: I1124bf8f771dbf4d34cc836437caa1d5526f4f43 Signed-off-by:
Christopher Ferris <chrisfer@us.ibm.com>
-
- 26 Jul, 2016 1 commit
-
-
Christopher Ferris authored
Copied from commit sha 346f9fb448140e931fed73b46f528de6dacbc0d0 to Gerrit. Verified that all DCO signoff received or IBM contribution. Change-Id: I812a2f48382a3cd37e153cd056d0ea94b7f416a0 Signed-off-by:
Christopher Ferris <chrisfer@us.ibm.com>
-