Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Ledger ¶
type Ledger interface {
GetConfig() config.Blockchain
HeaderHeight() uint32
AddContractStorageItems(kv []storage.KeyValue, syncHeight uint32, expectedRoot util.Uint256) error
GetLastStoredKey() []byte
}
Ledger is the interface for statefetcher.
type Service ¶
type Service struct {
neofs.BasicService
// contains filtered or unexported fields
}
Service fetches contract storage state from NeoFS.
func New ¶
func New(chain Ledger, cfg config.NeoFSStateFetcher, stateSyncInterval int, logger *zap.Logger, shutdownCallback func()) (*Service, error)
New creates a new Service instance.
func (*Service) IsShutdown ¶
IsShutdown checks if the service is fully shut down.
func (*Service) LatestStateObjectHeight ¶
LatestStateObjectHeight returns the height of the most recent state object found in the container.
Click to show internal directories.
Click to hide internal directories.