1. 15 Sep, 2016 1 commit
    • Jason Yellick's avatar
      Add generic blackbox rawledger tests · be768c7c
      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: default avatarJason Yellick <jyellick@us.ibm.com>
  2. 14 Sep, 2016 1 commit
    • Jason Yellick's avatar
      Add a fileledger implementation in rawledger. · fe54d048
      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.
      Change-Id: Ic75bee7cd27b311b512b2c3e0e9741b40baffbf1
      Signed-off-by: default avatarJason Yellick <jyellick@us.ibm.com>