- 17 Jan, 2017 15 commits
-
-
manish authored
https://jira.hyperledger.org/browse/FAB-1664 This changeset: - Renames package ledger/util/db to ledger/util/leveldbhelper - Implements a leveldb provider (that enables using same leveldb instance as a multiple logical dbs) in util package for being able to reuse across statedb, index, and later for historydb - Implements a provider as a single point of invocation for managing multiple block storage - Uses a single leveldb instance for block storage index - Makes the structures other than providers as private to their respective packages Change-Id: I5f0b3b9aa8ef3ac1ccdce4f3c6fa6d842b5318c1 Signed-off-by:
manish <manish.sethi@gmail.com>
-
Christopher Ferris authored
-
Christopher Ferris authored
-
Christopher Ferris authored
-
Christopher Ferris authored
-
Yacov Manevich authored
-
Srinivasan Muralidharan authored
-
Jonathan Levi authored
-
Yacov Manevich authored
-
Yacov Manevich authored
-
Yacov Manevich authored
-
Alessandro Sorniotti authored
This code drop integrates cauthdsl into the VSCC. The flow is the following: the validator code extracts from LCCC the policy specified by the deployer. The policy is an additional argument to VSCC. VSCC deserializes the policy and uses cauthdsl to validate the endorsements against it. Currently the chaincode deployer doesn't specify a policy when it deploys a chaincode and so for now the validator uses a policy that says "signed by any member of the specified MSP". This is to be removed as soon as chaincode deploy transactions specify policies when a new chaincode is deployed. Change-Id: I9e5ff1effa75934cdfef231a37e66f2941a45d10 Signed-off-by:
Alessandro Sorniotti <ale.linux@sopit.net>
-
Volodymyr Paprotski authored
Noticed this while working on PKCS11 BCCSP Change-Id: I6ad86d3699fd4c724bf9681ecfd33294b3ee2ac5 Signed-off-by:
Volodymyr Paprotski <vpaprots@ca.ibm.com>
-
Binh Nguyen authored
-
Xi Xue Jia authored
https://jira.hyperledger.org/browse/FAB-1390 A few things changed according to FAB-1390 description and the latest NCAP 1. renamed RawLedger interface to OrdererLedger 2. added PeerLedger interface which keeps a bitmask to indicate invalid transactions as described in NCAP 3. changed ledger API description in Next-Ledger-Architecture-Proposal 4. refactored rawledger package to ordererledger in orderer directory Please notice that with this change set, there'll be cases of inconsistent package names with import path. This is a tradeoff to avoid stuttering path names These cases are listed as below. Package name, import path (ordererledger, github.com/hyperledger/fabric/orderer/ledger) (ramledger, github.com/hyperledger/fabric/orderer/ledger/ram) (fileledger, github.com/hyperledger/fabric/orderer/ledger/file) Change-Id: Ie9580678ee9012ff865d1dc507066f46e106f250 Signed-off-by:
Xi Xue Jia <xixuejia@gmail.com>
-
- 16 Jan, 2017 19 commits
-
-
denyeart authored
When chaincode is deployed, it fills the peer debug log with many megabytes of binary dumps, making it difficult to troubleshoot through the noise. Change-Id: I7be1814632f0fda272b10793e7e6413b7d1de0e4 Signed-off-by:
denyeart <enyeart@us.ibm.com>
-
Jonathan Levi authored
-
Jason Yellick authored
-
YACOVM authored
Items() was not setting the type of the chain header properly as was configured in the inner fields of the template. Since this code works only for configuration items, I just set it to HeaderType_CONFIGURATION_ITEM. Also changed the template_test to accomodate the change. Signed-off-by:
Yacov Manevich <yacovm@il.ibm.com> Change-Id: I24ea3ada0e3df34fd2fbe0250cafd37f068f23e8
-
Luis Sanchez authored
Byte sizes can be specified with the following case insensitive suffixes: - 'k', 'kb', 'm', 'mb', 'g', 'gb' Change-Id: I36c3fd424ed52794562a6b50e7a3d400f053c52a Signed-off-by:
Luis Sanchez <sanchezl@us.ibm.com>
-
Alessandro Sorniotti authored
This change set introduces an implementation of the configtx.Handler that handles the configuration of MSP managers. Change-Id: I921132f89dd216ddcca32b13cee1862b634ba7ce Signed-off-by:
Alessandro Sorniotti <ale.linux@sopit.net>
-
Binh Nguyen authored
-
senthil authored
With continuation of FAB-1233 [https://gerrit.hyperledger.org/r/#/c/2833/ ] we add recovery support for history database. We are handling the following three cases: (i) only state DB needs to be recovered. (ii) only history DB needs to be recovered. (iii) Both state DB and history DB need to be recovered. Change-Id: Id8597c084421dc323520fd8072262743111c8104 Signed-off-by:
senthil <cendhu@gmail.com>
-
Luis Sanchez authored
- Added BatchSize.PreferredMaxBytes config property - Changed Ordered to limit batch byte size to PreferredMaxBytes. Change-Id: I2f631b15dcb598fc995cc50120e40ae053f76914 Signed-off-by:
Luis Sanchez <sanchezl@us.ibm.com>
-
Jonathan Levi authored
-
Jason Yellick authored
-
Angelo De Caro authored
This change-set enables the chaincode to obtain access to the proposal's transient and creator fields. This change-set comes in the context of https://jira.hyperledger.org/browse/FAB-1323 Change-Id: Ia72de7c95b32cf6a69627d590647f224cdc36329 Signed-off-by:
Angelo De Caro <adc@zurich.ibm.com>
-
Alessandro Sorniotti authored
This change-set has removed calls to the txvalidator that were issued right after the peer (the leader) receives blocks from the orderers. The validator is now called to validate messages received from the gossip layer. In order to fix an import cycle, we have introduced the ChaincodeProvider interface in core/common/ccprovider/ccprovider.go, an implementation and a factory. This way, code that needs to use functions from the chaincode package without importing it can simply use (and possibly extend) the ChaincodeProvider interface and implementation. Furthermore, this drop has introduced protocol-level message validation for config transactions that was lacking before. Change-Id: I5906a6fe3da8410b05b5079dd7f0b9d28d20bb85 Signed-off-by:
Alessandro Sorniotti <ale.linux@sopit.net>
-
Gari Singh authored
-
Srinivasan Muralidharan authored
https://jira.hyperledger.org/browse/FAB-1665 All parameters are passed to chaincode via environment variables or as parameters. Default properties are not picked up from core.yaml. In 1.0 architecture, the peer no longer builds the chaincode package but only passes it to docker to deploy (the package is built by CLI or SDK). In this mode the core.yaml in the Dockerfile will typically not be available in the peer environment. Change-Id: Ifffece4edb4fda103c379b644327972429034a2b Signed-off-by:
Srinivasan Muralidharan <muralisr@us.ibm.com>
-
Binh Q. Nguyen authored
Rework some text and invoke transaction sample Change-Id: Ie6927316494cace186fdac4f14e7443e1779c692 Signed-off-by:
Binh Q. Nguyen <binhn@us.ibm.com>
-
Binh Nguyen authored
-
Volodymyr Paprotski authored
This is simply a copy of the SW CSP: - sw directory -> pkcs11 directory - swfactory.go -> pkcs11factory.go Not much changed: pkcs11factory.go uses PKCS11 instead of "Software" or "SW". And new package name. The code is currently un-reachable (except by copied tests). Next set of changes will add - configuration: probably integrate what Keith did for https://gerrit.hyperledger.org/r/#/c/3735/2 - replace (operation at a time) SW operations with PKCS11 operations Change-Id: I46f35b92be9303e52d66fdbc0962990efb47104e Signed-off-by:
Volodymyr Paprotski <vpaprots@ca.ibm.com>
-
Srinivasan Muralidharan authored
orderer.template has to be regenerated to include BatchSize Change-Id: I401cb88247f481e649394fa44ae572dc280432e9 Signed-off-by:
Srinivasan Muralidharan <muralisr@us.ibm.com>
-
- 15 Jan, 2017 6 commits
-
-
jeffgarratt authored
Adds the channel create and join process to the bootstrap process. Changed from RSA 2048 to ECDSA curve=NIST384p for signing keys. Fixed typo in orderer base docker compose file for genesismethod. Fixed issues with genisis block created for BDD. Regenerated several proto files. Removed reference to membersvc from docker compose files. Added absMaxBytes to Batchsize for genesis block creation. Change-Id: If077d3725e6edc0ba3dfe2dd6d2cf66ed255592b Signed-off-by:
jeffgarratt <garratt.jeff@gmail.com>
-
Binh Nguyen authored
-
Binh Nguyen authored
-
Binh Nguyen authored
-
Binh Nguyen authored
-
Binh Nguyen authored
-