github.com/nspcc-dev/neo-go@v0.105.2-0.20240517133400-6be757af3eba/pkg/network/state_sync.go (about)

     1  package network
     2  
     3  import (
     4  	"github.com/nspcc-dev/neo-go/pkg/core/mpt"
     5  	"github.com/nspcc-dev/neo-go/pkg/network/bqueue"
     6  	"github.com/nspcc-dev/neo-go/pkg/util"
     7  )
     8  
     9  // StateSync represents state sync module.
    10  type StateSync interface {
    11  	AddMPTNodes([][]byte) error
    12  	bqueue.Blockqueuer
    13  	Init(currChainHeight uint32) error
    14  	IsActive() bool
    15  	IsInitialized() bool
    16  	GetUnknownMPTNodesBatch(limit int) []util.Uint256
    17  	NeedHeaders() bool
    18  	NeedMPTNodes() bool
    19  	Traverse(root util.Uint256, process func(node mpt.Node, nodeBytes []byte) bool) error
    20  }