- 30 Sep, 2016 1 commit
-
-
tuand27613 authored
For now, these scc are no-ops, are used to check the interfaces between endorsers and committers for the end-to-end skeleton. Over time, we will add signature and actual validation of blocks Handles JIRA issue https://jira.hyperledger.org/browse/FAB-514 (patch 3 redid goimports for importsysccs) Change-Id: I7a35ed87f83c82f14b1675b955ed5521e7fbda70 Signed-off-by:
tuand27613 <tdang@us.ibm.com>
-
- 29 Sep, 2016 1 commit
-
-
Gari Singh authored
-
- 28 Sep, 2016 1 commit
-
-
Srinivasan Muralidharan authored
The ledgernext and kvledger packages provide APIs to simulate transactions by collecting read-write sets from invokes of chaincodes. This change set integrates this for the Endorser flows. The main purpose of this code is to enable read write sets to be propagated so end to end flow ending in a commit to the ledger can be tested. The chaincode unit tests continue to use the old ledger. This allows us to (1) incrementally integrate ledger and (2) show that the two packages can coexist from a build and runtime point of view. It is worth noting that the file kv_ledgers.go hosts a temporary container for ledgers. This simple approach is expected to be revised when (sub)ledgers are implemented. Change-Id: I6e0bf4b9795b83d2ae869244b212c02ef9b5214a Signed-off-by:
Srinivasan Muralidharan <muralisr@us.ibm.com>
-
- 27 Sep, 2016 3 commits
-
-
denyeart authored
Change-Id: I34edfd399ebfe05045477f7a46e0b741c18dc64c Signed-off-by:
denyeart <enyeart@us.ibm.com>
-
YACOVM authored
This is an urgent logging fix to a bug that might break gossip tests. in op/go-logging/backend.go, the log invokes IsEnabledFor which goes to a global field defaultBackend that IsEnabledFor method for that global field invokes GetLevel which reads from a map. If a logger is initalized at the same time another goroutine reads from the map, a concurrent read-write would occur and will result in panic. Change-Id: Ief788f3da722aa38b7c743179d6dd1a1dc60936a Signed-off-by:
Yacov Manevich <yacovm@il.ibm.com>
-
Gabor Hosszu authored
-
- 26 Sep, 2016 2 commits
-
-
jeffgarratt authored
Godog is the official Cucumber BDD framework for Golang, which is the standard that our current behave (python) tests are implemented. In this manner, we reuse our existing feature files and can implement BDD tests in both python and golang. The Jira issue is in https://jira.hyperledger.org/browse/FAB-448 Change-Id: If95051670a0f4357f56b12216cd42f31b1402148 Signed-off-by:
jeffgarratt <garratt.jeff@gmail.com>
-
manish authored
This commit allows a block stream consumer read across multiple files. Change-Id: I1bd053e8d022bf1daf01f61f9e3e1ae1629e334b Signed-off-by:
manish <manish.sethi@gmail.com>
-
- 25 Sep, 2016 1 commit
-
-
YACOVM authored
Change-Id: I6e596752871efa4c6ff372ba629e44815fa97ac6 Signed-off-by:
Yacov Manevich <yacovm@il.ibm.com>
-
- 24 Sep, 2016 1 commit
-
-
YACOVM authored
This is a commit that contains only APIs and protobuff The API between the ledger and the gossip component is in gossip/api/api.go Change-Id: I9f6aef85f3b03e2d3a6b9850148e9cf4d1a93ce3 Signed-off-by:
Yacov Manevich <yacovm@il.ibm.com>
-
- 23 Sep, 2016 2 commits
-
-
Gregory Haskins authored
This reverts commit d6d9d28d . Change-Id: I530aa3c3ddcecf36a70b34ef13abb608470c515f Signed-off-by:
Greg Haskins <gregory.haskins@gmail.com>
-
Gari Singh authored
-
- 22 Sep, 2016 1 commit
-
-
Srinivasan Muralidharan authored
This patch is for https://jira.hyperledger.org/browse/FAB-181 , FAB-182. The patch is around endorser.go which implements the basic Endorser service. The "peer deploy ..." and "peer invoke .." CLI driver commands have been modified to redirected to use endorser.ProcessProposal instead of the original "devops" calls. The deploy, invoke (and query) CLI calls are unchanged in non-dev mode from user point of view - but for one difference. The response is a ProposalResponse. In dev mode (ie, when peer is started with --peer-chaincodedev) the deploy command would need to set "CORE_CHAINCODE_MODE=dev" in the "peer chaincode deploy ..." command. This is because, the command now computes the chaincode code just like the SDK as opposed to leaving it to be done by devops in the peer. Example CORE_CHAINCODE_MODE=dev CORE_LOGGING_LEVEL=debug ./peer chaincode deploy -n mycc -c '{"Args":["init","a","100","b","200"]}' Change-Id: Ie6e44cef880bfcbeb7619f135566a7dce9dcdbc2 Signed-off-by:
Srinivasan Muralidharan <muralisr@us.ibm.com>
-
- 20 Sep, 2016 1 commit
-
-
manish authored
(Rocks) DB WAL adds overheads while using the DB for saving checkpoints for block storage. Avoiding writing to WAL translates the write workload (appending blocks to the blockfile) into a sequential disk writes. This commit changes the way checkpoints are saved - checkpoints are written to DB as before, however since WAL is disabled, the checkpoint stays in-memory only. The in-memory checkpoint is flushed explicitly to disk (via DB flush) at the time of new block file creation. The in-memory checkpoint would implicitly also be flushed to memory at the time of DB shutdown. However, if a crash takes place, the checkpoint available in the DB would be behind the actual block file status. In order to handle this crash scenario, this commit also adds code to perform a scan of the block file beyond the last saved checkpoint and update the checkpoint. Change-Id: Ie88646b225abaa50b595833f5e7ed8d4facae920 Signed-off-by:
manish <manish.sethi@gmail.com>
-
- 18 Sep, 2016 1 commit
-
-
Christopher Ferris authored
-
- 17 Sep, 2016 4 commits
-
-
Christopher Ferris authored
-
Gari Singh authored
* changes: Allow ledger selection to be done at runtime for solo. Add a fileledger implementation in rawledger.
-
Gari Singh authored
-
Srinivasan Muralidharan authored
The life-cycle system chaincode (lccc) manages chaincodes for a chain in an endorser. The life-cycle is basically the "deploy", "upgrade", "stop" and "start" actions. This changeset provides the basic chaincode for creating the table of chaincodes and implements just the "deploy" command. This work will be developed till the basic endorser functions are fully implemented. This driver for this chaincode will be checked in the next changeset. NOTE - this change also fixes the limitation where only one system chaincode can be running at a time. This is part of the feature development of FAB-181, FAB-182, FAB-183. Change-Id: Iff36fee7c5b9a9ce4658910db73304a6bcd7e3d4 Signed-off-by:
Srinivasan Muralidharan <muralisr@us.ibm.com>
-
- 15 Sep, 2016 2 commits
-
-
manish authored
This includes structure of the new code conforming to new architecture and a basic working implementation. Change-Id: I885e122c0001ff82301cd1448a7ddad80db931b0 Signed-off-by:
manish <manish.sethi@gmail.com>
-
Jason Yellick authored
This changeset adds tests which are generally applicable to rawledger implementations. It enables these tests for both ramledger and for fileledger. You may notice that these tests are substantially similar to the tests in file ledger and were derived from there, substituting black box equivalents for the implementation details of fileledger. This new suite of tests also caught a bug in the ramledger implementation which could result in a crash when the specified block was exactly the block number of the oldest block in storage. A fix is included. Change-Id: I76813c8ba7853d47fa6ffa89b16ffc66b8ddfd5f Signed-off-by:
Jason Yellick <jyellick@us.ibm.com>
-
- 14 Sep, 2016 4 commits
-
-
Jason Yellick authored
This also adds a README.md file which has a basic explanation of the pieces currently in the orderer dir. It also contains brief instructions regarding how to use the existing code, as well as some future plans. https://jira.hyperledger.org/browse/FAB-327 Change-Id: I6ffa3ef6569b422263115fa95f3479b1516ed0af Signed-off-by:
Jason Yellick <jyellick@us.ibm.com>
-
Jason Yellick authored
This addition supplements the existing ramledger rawledger implementation. Neither this, nor the ramledger is intended to be performant, but they are both intended to be extremely simple. In the case of this added fileledger, it is intended to allow data persistence between stopping and starting of an orderer. Ultimately, the expectation would be that for the performant case, a high performance database of some sort, such as RocksDB or other would likely be used for persisting data. https://jira.hyperledger.org/browse/FAB-326 Change-Id: Ic75bee7cd27b311b512b2c3e0e9741b40baffbf1 Signed-off-by:
Jason Yellick <jyellick@us.ibm.com>
-
Jason Yellick authored
This also removes the ramledger implementation from solo, and turns it into its own package, utilizing the new rawledger interface. https://jira.hyperledger.org/browse/FAB-325 Change-Id: I1993349e096fe1664089a919f955da1ab57e58a0 Signed-off-by:
Jason Yellick <jyellick@us.ibm.com>
-
Srinivasan Muralidharan authored
Mock chaincode implements (function string, args []string) interfaces for backward compatibility. We need to move away from this so we can implement []byte arguments using new API. Change-Id: I5751b6a16d1a668bcc6156b47e221e43554e27f9 Signed-off-by:
Srinivasan Muralidharan <muralisr@us.ibm.com>
-
- 12 Sep, 2016 1 commit
-
-
Srinivasan Muralidharan authored
The "mock" framework provides a base starting set of support APIs such as Get/Put/Delete state and Range for unit testing chaincodes. As tables are used extensively, this change enhances the framework with table support. This addresses https://jira.hyperledger.org/browse/FAB-345 Change-Id: I3bb01e131b370d2e5140d73e022a5a519a4677f2 Signed-off-by:
Srinivasan Muralidharan <muralisr@us.ibm.com>
-
- 08 Sep, 2016 1 commit
-
-
jeffgarratt authored
Change-Id: Id811b29aa319e242d505ab80bb330934cf07f352 Signed-off-by:
jeffgarratt <garratt.jeff@gmail.com>
-
- 03 Sep, 2016 1 commit
-
-
Christopher Ferris authored
-
- 02 Sep, 2016 1 commit
-
-
Gabor Hosszu authored
Change-Id: Ibfcbd0a3543f9e20fa05677b0bb32e6d353cb3bd Signed-off-by:
Gabor Hosszu <gabor@digitalasset.com>
-
- 01 Sep, 2016 1 commit
-
-
Gabor Hosszu authored
Change-Id: I0a8b72fee55a5b203e3550e2c580f07ec10650e8 Signed-off-by:
Gabor Hosszu <gabor@digitalasset.com>
-
- 31 Aug, 2016 4 commits
-
-
Binh Nguyen authored
-
Binh Nguyen authored
-
Srinivasan Muralidharan authored
-
Gabor Hosszu authored
Change-Id: I397f11320be2dc1225b9be6ef089a080e94986f1 Signed-off-by:
Gabor Hosszu <gabor@digitalasset.com>
-
- 30 Aug, 2016 4 commits
-
-
jyellick authored
Change-Id: Ia99432c76f75f4f6dde953209631af9a5f459bd2 Signed-off-by:
jyellick <jyellick@us.ibm.com>
-
jyellick authored
Change-Id: I1bf2c44e5dc77a13b4749ea82c1df7fed618fd2f Signed-off-by:
jyellick <jyellick@us.ibm.com>
-
jyellick authored
Change-Id: Ie4efc31a2f1b61a59353ebcaec7382a5b13d3862 Signed-off-by:
jyellick <jyellick@us.ibm.com>
-
jeffgarratt authored
Updated to latest ab.proto Change-Id: I53ff31f22052cff6ca75892bbaf61e3983ac2079 Signed-off-by:
jeffgarratt <garratt.jeff@gmail.com>
-
- 26 Aug, 2016 2 commits
-
-
Binh Nguyen authored
-
Binh Nguyen authored
-