Versions in this module Expand all Collapse all v0 v0.4.0 Jun 30, 2026 v0.2.0 Apr 28, 2026 Changes in this version + const TxGossipHandlerID + const VMBootstrapping + const VMDegraded + const VMNormalOp + const VMStarting + const VMStateSyncing + const VMStopped + const VMStopping + const VMUnknown + var GitCommit string + var ID = ids.ID + var IDStr = "evm" + var Version string = "v0.8.12" + type Admin struct + func NewAdminService(vm *VM, performanceDir string) *Admin + func (p *Admin) GetVMConfig(_ *http.Request, _ *struct{}, reply *client.ConfigReply) error + func (p *Admin) LockProfile(_ *http.Request, _ *struct{}, _ *api.EmptyReply) error + func (p *Admin) MemoryProfile(_ *http.Request, _ *struct{}, _ *api.EmptyReply) error + func (p *Admin) SetLogLevel(_ *http.Request, args *client.SetLogLevelArgs, reply *api.EmptyReply) error + func (p *Admin) StartCPUProfiler(_ *http.Request, _ *struct{}, _ *api.EmptyReply) error + func (p *Admin) StopCPUProfiler(r *http.Request, _ *struct{}, _ *api.EmptyReply) error + type AdminAPI struct + func NewAdminAPI(vm *VM, performanceDir string) *AdminAPI + func (api *AdminAPI) ExportChain(ctx context.Context, file string, first, last uint64) (bool, error) + func (api *AdminAPI) GetVMConfig(ctx context.Context) (interface{}, error) + func (api *AdminAPI) ImportChain(ctx context.Context, file string) (*ImportChainResult, error) + func (api *AdminAPI) LockProfile(ctx context.Context) error + func (api *AdminAPI) MemoryProfile(ctx context.Context) error + func (api *AdminAPI) SetLogLevel(ctx context.Context, level string) error + func (api *AdminAPI) StartCPUProfiler(ctx context.Context) error + func (api *AdminAPI) StopCPUProfiler(ctx context.Context) error + type AutominingConfig struct + BuildBlock func(ctx context.Context) (interface{ ... }, error) + Interval time.Duration + type Block struct + func (b *Block) Accept(context.Context) error + func (b *Block) Bytes() []byte + func (b *Block) Height() uint64 + func (b *Block) ID() ids.ID + func (b *Block) Parent() ids.ID + func (b *Block) ParentID() ids.ID + func (b *Block) Reject(context.Context) error + func (b *Block) SetStatus(status choices.Status) + func (b *Block) ShouldVerifyWithContext(context.Context) (bool, error) + func (b *Block) Status() uint8 + func (b *Block) String() string + func (b *Block) Timestamp() time.Time + func (b *Block) Verify(context.Context) error + func (b *Block) VerifyWithContext(ctx context.Context, proposerVMBlockCtx *block.Context) error + type BlockValidator interface + SyntacticVerify func(b *Block, rules params.Rules) error + func NewBlockValidator() BlockValidator + type DatabaseConfig struct + Config []byte + Name string + Path string + ReadOnly bool + type EthPushGossiper struct + func (e *EthPushGossiper) Add(tx *types.Transaction) + type Factory struct + func (*Factory) New(log.Logger) (interface{}, error) + type GossipEthTx struct + Tx *types.Transaction + func (tx *GossipEthTx) GossipID() ids.ID + type GossipEthTxMarshaller struct + func (GossipEthTxMarshaller) MarshalGossip(tx *GossipEthTx) ([]byte, error) + func (GossipEthTxMarshaller) UnmarshalGossip(bytes []byte) (*GossipEthTx, error) + type GossipEthTxPool struct + func NewGossipEthTxPool(mempool *txpool.TxPool, registerer metric.Registerer) (*GossipEthTxPool, error) + func (g *GossipEthTxPool) Add(tx *GossipEthTx) error + func (g *GossipEthTxPool) GetFilter() ([]byte, []byte) + func (g *GossipEthTxPool) Has(txID ids.ID) bool + func (g *GossipEthTxPool) IsSubscribed() bool + func (g *GossipEthTxPool) Iterate(f func(tx *GossipEthTx) bool) + func (g *GossipEthTxPool) Subscribe(ctx context.Context) + type ImportChainResult struct + BlocksImported int + HeightAfter uint64 + HeightBefore uint64 + Message string + Success bool + type StateSyncClient interface + ClearOngoingSummary func() error + Error func() error + GetOngoingSyncStateSummary func(context.Context) (block.StateSummary, error) + ParseStateSummary func(ctx context.Context, summaryBytes []byte) (block.StateSummary, error) + Shutdown func() error + StateSyncEnabled func(context.Context) (bool, error) + func NewStateSyncClient(config *stateSyncClientConfig) StateSyncClient + type StateSyncServer interface + GetLastStateSummary func(context.Context) (block.StateSummary, error) + GetStateSummary func(context.Context, uint64) (block.StateSummary, error) + func NewStateSyncServer(config *stateSyncServerConfig) StateSyncServer + type Status uint32 + const Accepted + const Dropped + const Processing + const Unknown + func (s *Status) UnmarshalJSON(b []byte) error + func (s Status) MarshalJSON() ([]byte, error) + func (s Status) String() string + func (s Status) Valid() error + type Syncer interface + Start func(ctx context.Context) error + Wait func(ctx context.Context) error + type TestSender struct + CantSendError bool + CantSendGossip bool + CantSendGossipSpecific bool + CantSendRequest bool + CantSendResponse bool + SendCrossChainErrorF func(context.Context, ids.ID, uint32, int32, string) error + SendCrossChainRequestF func(context.Context, ids.ID, uint32, []byte) error + SendCrossChainResponseF func(context.Context, ids.ID, uint32, []byte) error + SendErrorF func(context.Context, ids.NodeID, uint32, int32, string) error + SendGossipF func(context.Context, p2p.SendConfig, []byte) error + SendGossipSpecificF func(context.Context, set.Set[ids.NodeID], []byte) error + SendRequestF func(context.Context, set.Set[ids.NodeID], uint32, []byte) error + SendResponseF func(context.Context, ids.NodeID, uint32, []byte) error + SentGossip chan []byte + T *testing.T + func (s *TestSender) SendCrossChainError(ctx context.Context, chainID ids.ID, requestID uint32, errorCode int32, ...) error + func (s *TestSender) SendCrossChainRequest(ctx context.Context, chainID ids.ID, requestID uint32, requestBytes []byte) error + func (s *TestSender) SendCrossChainResponse(ctx context.Context, chainID ids.ID, requestID uint32, responseBytes []byte) error + func (s *TestSender) SendError(ctx context.Context, nodeID ids.NodeID, requestID uint32, errorCode int32, ...) error + func (s *TestSender) SendGossip(ctx context.Context, config p2p.SendConfig, msg []byte) error + func (s *TestSender) SendGossipSpecific(ctx context.Context, nodeIDs set.Set[ids.NodeID], msg []byte) error + func (s *TestSender) SendRequest(ctx context.Context, nodeIDs set.Set[ids.NodeID], requestID uint32, ...) error + func (s *TestSender) SendResponse(ctx context.Context, nodeID ids.NodeID, requestID uint32, response []byte) error + type VM struct + Network *network.Network + func (vm *VM) AppRequestFailed(ctx context.Context, nodeID ids.NodeID, requestID uint32, ...) error + func (vm *VM) BuildBlock(ctx context.Context) (nodeblock.Block, error) + func (vm *VM) BuildBlockWithContext(ctx context.Context, proposerVMBlockCtx *nodeblock.Context) (nodeblock.Block, error) + func (vm *VM) Connected(ctx context.Context, nodeID ids.NodeID, ver *nodeblock.VersionInfo) error + func (vm *VM) CreateHTTP2Handler(context.Context) (http.Handler, error) + func (vm *VM) CreateHandlers(context.Context) (map[string]http.Handler, error) + func (vm *VM) CrossChainAppRequestFailed(ctx context.Context, chainID ids.ID, requestID uint32, appErr *warp.AppError) error + func (vm *VM) Disconnected(ctx context.Context, nodeID ids.NodeID) error + func (vm *VM) GetAcceptedBlock(ctx context.Context, blkID ids.ID) (nodeblock.Block, error) + func (vm *VM) GetBlock(ctx context.Context, id ids.ID) (nodeblock.Block, error) + func (vm *VM) GetBlockIDAtHeight(_ context.Context, height uint64) (ids.ID, error) + func (vm *VM) GetCurrentNonce(address common.Address) (uint64, error) + func (vm *VM) GetLastStateSummary(ctx context.Context) (nodeblock.StateSummary, error) + func (vm *VM) GetOngoingSyncStateSummary(ctx context.Context) (nodeblock.StateSummary, error) + func (vm *VM) GetStateSummary(ctx context.Context, height uint64) (nodeblock.StateSummary, error) + func (vm *VM) HealthCheck(context.Context) (chain.HealthResult, error) + func (vm *VM) Initialize(ctx context.Context, init block.Init) error + func (vm *VM) NewBlockBuilder() *blockBuilder + func (vm *VM) NewHTTPHandler(ctx context.Context) (http.Handler, error) + func (vm *VM) ParseBlock(ctx context.Context, b []byte) (nodeblock.Block, error) + func (vm *VM) ParseEthBlock(b []byte) (*types.Block, error) + func (vm *VM) ParseStateSummary(ctx context.Context, summaryBytes []byte) (nodeblock.StateSummary, error) + func (vm *VM) SetPreference(ctx context.Context, blkID ids.ID) error + func (vm *VM) SetState(_ context.Context, state uint32) error + func (vm *VM) Shutdown(context.Context) error + func (vm *VM) StateSyncEnabled(ctx context.Context) (bool, error) + func (vm *VM) Version(context.Context) (string, error) + func (vm *VM) WaitForEvent(ctx context.Context) (block.Message, error) + type VMState = vm.State + type ValidatorsAPI struct + func (api *ValidatorsAPI) GetCurrentValidators(_ *http.Request, req *client.GetCurrentValidatorsRequest, ...) error