Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type API ¶
type API struct {
// contains filtered or unexported fields
}
API is the collection of synchronization service APIs for debugging the protocol.
type Syncer ¶
type Syncer struct {
// contains filtered or unexported fields
}
Syncer is an auxiliary service that allows Geth to perform full sync alone without consensus-layer attached. Users must specify a valid block hash as the sync target.
This tool can be applied to different networks, no matter it's pre-merge or post-merge, but only for full-sync.
func Register ¶
func Register(stack *node.Node, backend *eth.Ethereum, target common.Hash, exitWhenSynced bool) (*Syncer, error)
Register registers the synchronization override service into the node stack for launching and stopping the service controlled by node.
func (*Syncer) APIs ¶
APIs return the collection of RPC services the ethereum package offers. NOTE, some of these services probably need to be moved to somewhere else.