Documentation ¶
Overview ¶
Package memstore provides a Store implementation that keeps all blockchain state in memory.
It is used in tests to avoid needing a database.
Index ¶
- type MemStore
- func (m *MemStore) FinalizeBlock(context.Context, uint64) error
- func (m *MemStore) GetBlock(ctx context.Context, height uint64) (*bc.Block, error)
- func (m *MemStore) Height(context.Context) (uint64, error)
- func (m *MemStore) LatestSnapshot(context.Context) (*state.Snapshot, uint64, error)
- func (m *MemStore) SaveBlock(ctx context.Context, b *bc.Block) error
- func (m *MemStore) SaveSnapshot(ctx context.Context, height uint64, snapshot *state.Snapshot) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
Click to show internal directories.
Click to hide internal directories.