Versions in this module Expand all Collapse all v0 v0.34.24 Sep 22, 2023 Changes in this version + type Application struct + func NewApplication(cfg *Config) (*Application, error) + func (app *Application) ApplySnapshotChunk(req abci.RequestApplySnapshotChunk) abci.ResponseApplySnapshotChunk + func (app *Application) CheckTx(req abci.RequestCheckTx) abci.ResponseCheckTx + func (app *Application) Commit() abci.ResponseCommit + func (app *Application) DeliverTx(req abci.RequestDeliverTx) abci.ResponseDeliverTx + func (app *Application) EndBlock(req abci.RequestEndBlock) abci.ResponseEndBlock + func (app *Application) Info(req abci.RequestInfo) abci.ResponseInfo + func (app *Application) InitChain(req abci.RequestInitChain) abci.ResponseInitChain + func (app *Application) ListSnapshots(req abci.RequestListSnapshots) abci.ResponseListSnapshots + func (app *Application) LoadSnapshotChunk(req abci.RequestLoadSnapshotChunk) abci.ResponseLoadSnapshotChunk + func (app *Application) OfferSnapshot(req abci.RequestOfferSnapshot) abci.ResponseOfferSnapshot + func (app *Application) Query(req abci.RequestQuery) abci.ResponseQuery + func (app *Application) Rollback() error + type Config struct + Dir string + KeyType string + PersistInterval uint64 + RetainBlocks uint64 + SnapshotInterval uint64 + ValidatorUpdates map[string]map[string]uint8 + func DefaultConfig(dir string) *Config + type SnapshotStore struct + func NewSnapshotStore(dir string) (*SnapshotStore, error) + func (s *SnapshotStore) Create(state *State) (abci.Snapshot, error) + func (s *SnapshotStore) List() ([]*abci.Snapshot, error) + func (s *SnapshotStore) LoadChunk(height uint64, format uint32, chunk uint32) ([]byte, error) + type State struct + Hash []byte + Height uint64 + Values map[string]string + func NewState(dir string, persistInterval uint64) (*State, error) + func (s *State) Commit() (uint64, []byte, error) + func (s *State) Export() ([]byte, error) + func (s *State) Get(key string) string + func (s *State) Import(height uint64, jsonBytes []byte) error + func (s *State) Rollback() error + func (s *State) Set(key, value string)