Documentation ¶
Index ¶
- type InMemoryStatePersistence
- func (sp *InMemoryStatePersistence) Dump() string
- func (sp *InMemoryStatePersistence) Read(contract primitives.ContractName, key string) ([]byte, bool, error)
- func (sp *InMemoryStatePersistence) ReadMetadata() (primitives.BlockHeight, primitives.TimestampNano, primitives.NodeAddress, ...)
- func (sp *InMemoryStatePersistence) Write(height primitives.BlockHeight, ts primitives.TimestampNano, ...) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type InMemoryStatePersistence ¶
type InMemoryStatePersistence struct {
// contains filtered or unexported fields
}
func NewStatePersistence ¶
func NewStatePersistence(metricFactory metric.Factory) *InMemoryStatePersistence
func (*InMemoryStatePersistence) Dump ¶
func (sp *InMemoryStatePersistence) Dump() string
func (*InMemoryStatePersistence) Read ¶
func (sp *InMemoryStatePersistence) Read(contract primitives.ContractName, key string) ([]byte, bool, error)
func (*InMemoryStatePersistence) ReadMetadata ¶
func (sp *InMemoryStatePersistence) ReadMetadata() (primitives.BlockHeight, primitives.TimestampNano, primitives.NodeAddress, primitives.Sha256, error)
func (*InMemoryStatePersistence) Write ¶
func (sp *InMemoryStatePersistence) Write(height primitives.BlockHeight, ts primitives.TimestampNano, proposer primitives.NodeAddress, root primitives.Sha256, diff adapter.ChainState) error
Click to show internal directories.
Click to hide internal directories.