Versions in this module Expand all Collapse all v0 v0.1.0 Feb 15, 2016 Changes in this version + var ErrOutOfBounds = errors.New("ledger: out of bounds") + var ErrResourceNotFound = errors.New("ledger: resource not found") + type Ledger struct + func GetLedger() (*Ledger, error) + func InitTestLedger(t *testing.T) *Ledger + func (ledger *Ledger) ApplyStateDelta(id interface{}, delta *statemgmt.StateDelta) error + func (ledger *Ledger) BeginTxBatch(id interface{}) error + func (ledger *Ledger) CommitStateDelta(id interface{}) error + func (ledger *Ledger) CommitTxBatch(id interface{}, transactions []*protos.Transaction, ...) error + func (ledger *Ledger) DeleteALLStateKeysAndValues() error + func (ledger *Ledger) DeleteState(chaincodeID string, key string) error + func (ledger *Ledger) GetBlockByNumber(blockNumber uint64) (*protos.Block, error) + func (ledger *Ledger) GetBlockchainInfo() (*protos.BlockchainInfo, error) + func (ledger *Ledger) GetBlockchainSize() uint64 + func (ledger *Ledger) GetState(chaincodeID string, key string, committed bool) ([]byte, error) + func (ledger *Ledger) GetStateDelta(blockNumber uint64) (*statemgmt.StateDelta, error) + func (ledger *Ledger) GetStateRangeScanIterator(chaincodeID string, startKey string, endKey string, committed bool) (statemgmt.RangeScanIterator, error) + func (ledger *Ledger) GetStateSnapshot() (*state.StateSnapshot, error) + func (ledger *Ledger) GetTXBatchPreviewBlock(id interface{}, transactions []*protos.Transaction, metadata []byte) (*protos.Block, error) + func (ledger *Ledger) GetTempStateHash() ([]byte, error) + func (ledger *Ledger) GetTempStateHashWithTxDeltaStateHashes() ([]byte, map[string][]byte, error) + func (ledger *Ledger) GetTransactionByUUID(txUUID string) (*protos.Transaction, error) + func (ledger *Ledger) PutRawBlock(block *protos.Block, blockNumber uint64) error + func (ledger *Ledger) RollbackStateDelta(id interface{}) error + func (ledger *Ledger) RollbackTxBatch(id interface{}) error + func (ledger *Ledger) SetState(chaincodeID string, key string, value []byte) error + func (ledger *Ledger) TxBegin(txUUID string) + func (ledger *Ledger) TxFinished(txUUID string, txSuccessful bool) + func (ledger *Ledger) VerifyChain(highBlock, lowBlock uint64) (uint64, error)