From 449ce373ccd35fccd29e090b3d251f984b6c503b Mon Sep 17 00:00:00 2001 From: Roy Crihfield Date: Fri, 29 Sep 2023 03:22:41 +0800 Subject: [PATCH] rm service interface --- pkg/service.go | 23 ----------------------- 1 file changed, 23 deletions(-) diff --git a/pkg/service.go b/pkg/service.go index 46e5173..6785079 100644 --- a/pkg/service.go +++ b/pkg/service.go @@ -38,29 +38,6 @@ import ( const defaultQueueSize = 1024 -// StateDiffService is the state-diffing service interface -type StateDiffService interface { - // Lifecycle Start() and Stop() - node.Lifecycle - // APIs and Protocols() interface for node service registration - APIs() []rpc.API - Protocols() []p2p.Protocol - // Loop is the main event loop for processing state diffs - Loop(wg *sync.WaitGroup) error - // Run is a one-off command to run on a predefined set of ranges - Run(ranges []RangeRequest, parallel bool) error - // StateDiffAt method to get state diff object at specific block - StateDiffAt(blockNumber uint64, params sd.Params) (*sd.Payload, error) - // StateDiffFor method to get state diff object at specific block - StateDiffFor(blockHash common.Hash, params sd.Params) (*sd.Payload, error) - // WriteStateDiffAt method to write state diff object directly to DB - WriteStateDiffAt(blockNumber uint64, params sd.Params) error - // WriteStateDiffFor method to get state trie object at specific block - WriteStateDiffFor(blockHash common.Hash, params sd.Params) error - // WriteStateDiffsInRange method to wrtie state diff objects within the range directly to the DB - WriteStateDiffsInRange(start, stop uint64, params sd.Params) error -} - // Service is the underlying struct for the state diffing service type Service struct { // Used to build the state diff objects