Versions in this module Expand all Collapse all v0 v0.2.1 Nov 2, 2021 v0.2.0 Oct 31, 2021 Changes in this version + const Version + type Accumulator struct + func NewAccumulator(db State, address crypto.Address, chain Chain, logger log.Logger) (*Accumulator, error) + func (app *Accumulator) ApplySnapshotChunk(req abci.RequestApplySnapshotChunk) abci.ResponseApplySnapshotChunk + func (app *Accumulator) BeginBlock(req abci.RequestBeginBlock) abci.ResponseBeginBlock + func (app *Accumulator) CheckTx(req abci.RequestCheckTx) (rct abci.ResponseCheckTx) + func (app *Accumulator) Commit() (resp abci.ResponseCommit) + func (app *Accumulator) DeliverTx(req abci.RequestDeliverTx) (rdt abci.ResponseDeliverTx) + func (app *Accumulator) EndBlock(req abci.RequestEndBlock) (resp abci.ResponseEndBlock) + func (app *Accumulator) Info(req abci.RequestInfo) abci.ResponseInfo + func (app *Accumulator) InitChain(req abci.RequestInitChain) abci.ResponseInitChain + func (app *Accumulator) ListSnapshots(req abci.RequestListSnapshots) abci.ResponseListSnapshots + func (app *Accumulator) LoadSnapshotChunk(req abci.RequestLoadSnapshotChunk) abci.ResponseLoadSnapshotChunk + func (app *Accumulator) OfferSnapshot(req abci.RequestOfferSnapshot) abci.ResponseOfferSnapshot + func (app *Accumulator) Query(reqQuery abci.RequestQuery) (resQuery abci.ResponseQuery) + type BeginBlockRequest struct + Height int64 + IsLeader bool + Time time.Time + type Chain interface + BeginBlock func(BeginBlockRequest) + CheckTx func(*transactions.GenTransaction) error + Commit func() ([]byte, error) + DeliverTx func(*transactions.GenTransaction) (*protocol.TxResult, error) + EndBlock func(EndBlockRequest) + Query func(*apiQuery.Query) ([]byte, error) + type EndBlockRequest struct + type State interface + AddStateEntry func(chainId *types.Bytes32, txHash *types.Bytes32, object *state.Object) + BlockIndex func() int64 + EnsureRootHash func() []byte + RootHash func() []byte