mirror of
https://github.com/nspcc-dev/neo-go.git
synced 2024-11-22 09:29:38 +00:00
20 lines
538 B
Go
20 lines
538 B
Go
package network
|
|
|
|
import (
|
|
"github.com/nspcc-dev/neo-go/pkg/core/mpt"
|
|
"github.com/nspcc-dev/neo-go/pkg/network/bqueue"
|
|
"github.com/nspcc-dev/neo-go/pkg/util"
|
|
)
|
|
|
|
// StateSync represents state sync module.
|
|
type StateSync interface {
|
|
AddMPTNodes([][]byte) error
|
|
bqueue.Blockqueuer
|
|
Init(currChainHeight uint32) error
|
|
IsActive() bool
|
|
IsInitialized() bool
|
|
GetUnknownMPTNodesBatch(limit int) []util.Uint256
|
|
NeedHeaders() bool
|
|
NeedMPTNodes() bool
|
|
Traverse(root util.Uint256, process func(node mpt.Node, nodeBytes []byte) bool) error
|
|
}
|