Versions in this module Expand all Collapse all v0 v0.5.3 Dec 13, 2023 Changes in this version + var GitCommit string + var ID = ids.ID + var IDStr = "subnetevm" + var Version string = "v0.5.10" + func NewSharedMemoryWriter() *sharedMemoryWriter + func SubnetEVMJSONFormat(alias string) log.Format + func SubnetEVMTermFormat(alias string) log.Format + type Admin struct + func NewAdminService(vm *VM, performanceDir string) *Admin + func (p *Admin) GetVMConfig(_ *http.Request, _ *struct{}, reply *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 *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 Batch struct + func (batch Batch) Replay(w ethdb.KeyValueWriter) error + func (batch Batch) ValueSize() int + 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) Reject(context.Context) error + func (b *Block) SetStatus(status choices.Status) + func (b *Block) ShouldVerifyWithContext(context.Context) (bool, error) + func (b *Block) Status() choices.Status + 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 BuildGenesisArgs struct + Encoding formatting.Encoding + GenesisData *core.Genesis + type BuildGenesisReply struct + Encoding formatting.Encoding + GenesisBytes string + type Client interface + GetVMConfig func(ctx context.Context, options ...rpc.Option) (*Config, error) + LockProfile func(ctx context.Context, options ...rpc.Option) error + MemoryProfile func(ctx context.Context, options ...rpc.Option) error + SetLogLevel func(ctx context.Context, level log.Lvl, options ...rpc.Option) error + StartCPUProfiler func(ctx context.Context, options ...rpc.Option) error + StopCPUProfiler func(ctx context.Context, options ...rpc.Option) error + func NewCChainClient(uri string) Client + func NewClient(uri, chain string) Client + type Config struct + APIMaxDuration Duration + AcceptedCacheSize int + AcceptorQueueLimit int + AdminAPIDir string + AdminAPIEnabled bool + AirdropFile string + AllowMissingTries bool + AllowUnfinalizedQueries bool + AllowUnprotectedTxHashes []common.Hash + AllowUnprotectedTxs bool + CommitInterval uint64 + ContinuousProfilerDir string + ContinuousProfilerFrequency Duration + ContinuousProfilerMaxFiles int + EnabledEthAPIs []string + FeeRecipient string + InspectDatabase bool + KeystoreDirectory string + KeystoreExternalSigner string + KeystoreInsecureUnlockAllowed bool + LocalTxsEnabled bool + LogJSONFormat bool + LogLevel string + MaxBlocksPerRequest int64 + MaxOutboundActiveCrossChainRequests int64 + MaxOutboundActiveRequests int64 + MetricsExpensiveEnabled bool + OfflinePruning bool + OfflinePruningBloomFilterSize uint64 + OfflinePruningDataDirectory string + PopulateMissingTries *uint64 + PopulateMissingTriesParallelism int + Preimages bool + PriorityRegossipAddresses []common.Address + PriorityRegossipFrequency Duration + PriorityRegossipMaxTxs int + PriorityRegossipTxsPerAddress int + PruneWarpDB bool + Pruning bool + RPCGasCap uint64 + RPCTxFeeCap float64 + RegossipFrequency Duration + RegossipMaxTxs int + RegossipTxsPerAddress int + RemoteGossipOnlyEnabled bool + SkipUpgradeCheck bool + SnapshotCache int + SnapshotVerify bool + SnapshotWait bool + SnowmanAPIEnabled bool + StateSyncCommitInterval uint64 + StateSyncEnabled bool + StateSyncIDs string + StateSyncMinBlocks uint64 + StateSyncRequestSize uint16 + StateSyncServerTrieCache int + StateSyncSkipResume bool + TrieCleanCache int + TrieCleanJournal string + TrieCleanRejournal Duration + TrieDirtyCache int + TrieDirtyCommitTarget int + TxLookupLimit uint64 + TxPoolAccountQueue uint64 + TxPoolAccountSlots uint64 + TxPoolGlobalQueue uint64 + TxPoolGlobalSlots uint64 + TxPoolJournal string + TxPoolPriceBump uint64 + TxPoolPriceLimit uint64 + TxPoolRejournal Duration + WSCPUMaxStored Duration + WSCPURefillRate Duration + WarpAPIEnabled bool + func (c *Config) SetDefaults() + func (c *Config) Validate() error + func (c Config) EthAPIs() []string + func (c Config) EthBackendSettings() eth.Settings + type ConfigReply struct + Config *Config + type Database struct + func (db Database) NewBatch() ethdb.Batch + func (db Database) NewBatchWithSize(size int) ethdb.Batch + func (db Database) NewIterator(prefix []byte, start []byte) ethdb.Iterator + func (db Database) NewIteratorWithStart(start []byte) ethdb.Iterator + func (db Database) Stat(string) (string, error) + type DecodeGenesisArgs struct + Encoding formatting.Encoding + GenesisBytes string + type DecodeGenesisReply struct + Encoding formatting.Encoding + Genesis *core.Genesis + type Duration struct + func (d *Duration) UnmarshalJSON(data []byte) (err error) + func (d Duration) MarshalJSON() ([]byte, error) + func (d Duration) String() string + type Factory struct + func (*Factory) New(logging.Logger) (interface{}, error) + type GetAcceptedFrontReply struct + Hash common.Hash + Number *big.Int + type GossipHandler struct + func NewGossipHandler(vm *VM, stats GossipReceivedStats) *GossipHandler + func (h *GossipHandler) HandleTxs(nodeID ids.NodeID, msg message.TxsGossip) error + type GossipReceivedStats interface + IncEthTxsGossipReceived func() + IncEthTxsGossipReceivedKnown func() + IncEthTxsGossipReceivedNew func() + type GossipSentStats interface + IncEthTxsGossipSent func() + IncEthTxsRegossipQueued func() + IncEthTxsRegossipQueuedLocal func(count int) + IncEthTxsRegossipQueuedRemote func(count int) + type GossipStats interface + func NewGossipStats() GossipStats + type GossipTx struct + Tx *types.Transaction + func (tx *GossipTx) GetID() ids.ID + func (tx *GossipTx) Marshal() ([]byte, error) + func (tx *GossipTx) Unmarshal(bytes []byte) error + type GossipTxPool struct + func NewGossipTxPool(mempool *txpool.TxPool) (*GossipTxPool, error) + func (g *GossipTxPool) Add(tx *GossipTx) error + func (g *GossipTxPool) GetFilter() ([]byte, []byte, error) + func (g *GossipTxPool) Iterate(f func(tx *GossipTx) bool) + func (g *GossipTxPool) Subscribe(ctx context.Context) + type Gossiper interface + GossipTxs func(txs []*types.Transaction) error + type SetLogLevelArgs struct + Level string + type SnowmanAPI struct + func (api *SnowmanAPI) GetAcceptedFront(ctx context.Context) (*GetAcceptedFrontReply, error) + func (api *SnowmanAPI) IssueBlock(ctx context.Context) error + type StateSyncClient interface + Error func() error + GetOngoingSyncStateSummary func(context.Context) (block.StateSummary, error) + ParseStateSummary func(ctx context.Context, summaryBytes []byte) (block.StateSummary, error) + Shutdown func() error + StateSyncClearOngoingSummary 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 StaticService struct + func CreateStaticService() *StaticService + func (ss *StaticService) BuildGenesis(_ *http.Request, args *BuildGenesisArgs, reply *BuildGenesisReply) error + func (ss *StaticService) DecodeGenesis(_ *http.Request, args *DecodeGenesisArgs, reply *DecodeGenesisReply) error + 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 SubnetEVMLogger struct + func InitLogger(alias string, level string, jsonFormat bool, writer io.Writer) (SubnetEVMLogger, error) + func (c *SubnetEVMLogger) SetLogLevel(level string) error + type Syncer interface + Done func() <-chan error + Start func(ctx context.Context) error + type VM struct + func (vm *VM) CreateHandlers(context.Context) (map[string]http.Handler, error) + func (vm *VM) CreateStaticHandlers(context.Context) (map[string]http.Handler, error) + func (vm *VM) GetBlockIDAtHeight(_ context.Context, blkHeight uint64) (ids.ID, error) + func (vm *VM) GetCurrentNonce(address common.Address) (uint64, error) + func (vm *VM) HealthCheck(context.Context) (interface{}, error) + func (vm *VM) Initialize(_ context.Context, chainCtx *snow.Context, db database.Database, ...) error + func (vm *VM) NewBlockBuilder(notifyBuildBlockChan chan<- commonEng.Message) *blockBuilder + func (vm *VM) ParseEthBlock(b []byte) (*types.Block, error) + func (vm *VM) SetPreference(ctx context.Context, blkID ids.ID) error + func (vm *VM) SetState(_ context.Context, state snow.State) error + func (vm *VM) Shutdown(context.Context) error + func (vm *VM) VerifyHeightIndex(context.Context) error + func (vm *VM) Version(context.Context) (string, error)