Documentation ¶
Index ¶
- type MiningService
- type RemoteBackend
- func (back *RemoteBackend) AddPeer(ctx context.Context, request *remote.AddPeerRequest) (*remote.AddPeerReply, error)
- func (back *RemoteBackend) AllTypes() []snaptype.Type
- func (back *RemoteBackend) BadHeaderNumber(ctx context.Context, tx kv.Getter, hash common.Hash) (blockNum *uint64, err error)
- func (back *RemoteBackend) BlockByHash(ctx context.Context, db kv.Tx, hash common.Hash) (*types.Block, error)
- func (back *RemoteBackend) BlockByNumber(ctx context.Context, db kv.Tx, number uint64) (*types.Block, error)
- func (back *RemoteBackend) BlockWithSenders(ctx context.Context, tx kv.Getter, hash common.Hash, blockNum uint64) (block *types.Block, senders []common.Address, err error)
- func (back *RemoteBackend) Body(ctx context.Context, tx kv.Getter, hash common.Hash, blockNum uint64) (body *types.Body, txCount uint32, err error)
- func (back *RemoteBackend) BodyRlp(ctx context.Context, tx kv.Getter, hash common.Hash, blockNum uint64) (bodyRlp rlp.RawValue, err error)
- func (back *RemoteBackend) BodyWithTransactions(ctx context.Context, tx kv.Getter, hash common.Hash, blockNum uint64) (body *types.Body, err error)
- func (back *RemoteBackend) BorSnapshots() snapshotsync.BlockSnapshots
- func (back *RemoteBackend) BorStartEventId(ctx context.Context, tx kv.Tx, hash common.Hash, blockNum uint64) (uint64, error)
- func (back *RemoteBackend) CanPruneTo(currentBlockInDB uint64) (canPruneBlocksTo uint64)
- func (back *RemoteBackend) CanonicalBodyForStorage(ctx context.Context, tx kv.Getter, blockNum uint64) (body *types.BodyForStorage, err error)
- func (back *RemoteBackend) CanonicalHash(ctx context.Context, tx kv.Getter, blockNum uint64) (common.Hash, bool, error)
- func (r *RemoteBackend) Checkpoint(ctx context.Context, tx kv.Tx, spanId uint64) (*heimdall.Checkpoint, bool, error)
- func (back *RemoteBackend) ClientVersion(ctx context.Context) (string, error)
- func (back *RemoteBackend) CurrentBlock(db kv.Tx) (*types.Block, error)
- func (back *RemoteBackend) EnsureVersionCompatibility() bool
- func (back *RemoteBackend) Etherbase(ctx context.Context) (common.Address, error)
- func (back *RemoteBackend) EventLookup(ctx context.Context, tx kv.Tx, txnHash common.Hash) (uint64, bool, error)
- func (back *RemoteBackend) EventsByBlock(ctx context.Context, tx kv.Tx, hash common.Hash, blockNum uint64) ([]rlp.RawValue, error)
- func (back *RemoteBackend) FirstTxnNumNotInSnapshots() uint64
- func (back *RemoteBackend) FreezingCfg() ethconfig.BlocksFreezing
- func (back *RemoteBackend) FrozenBlocks() uint64
- func (back *RemoteBackend) FrozenBorBlocks() uint64
- func (back *RemoteBackend) FrozenFiles() (list []string)
- func (back *RemoteBackend) HasSenders(ctx context.Context, tx kv.Getter, hash common.Hash, blockNum uint64) (bool, error)
- func (back *RemoteBackend) Header(ctx context.Context, tx kv.Getter, hash common.Hash, blockNum uint64) (*types.Header, error)
- func (back *RemoteBackend) HeaderByHash(ctx context.Context, tx kv.Getter, hash common.Hash) (*types.Header, error)
- func (back *RemoteBackend) HeaderByNumber(ctx context.Context, tx kv.Getter, blockNum uint64) (*types.Header, error)
- func (back *RemoteBackend) HeaderNumber(ctx context.Context, tx kv.Getter, hash common.Hash) (*uint64, error)
- func (back *RemoteBackend) HeadersRange(ctx context.Context, walker func(header *types.Header) error) error
- func (back *RemoteBackend) Integrity(_ context.Context) error
- func (back *RemoteBackend) IsCanonical(ctx context.Context, tx kv.Getter, hash common.Hash, blockNum uint64) (bool, error)
- func (back *RemoteBackend) IterateFrozenBodies(_ func(blockNum uint64, baseTxNum uint64, txCount uint64) error) error
- func (r *RemoteBackend) LastCheckpointId(ctx context.Context, tx kv.Tx) (uint64, bool, error)
- func (back *RemoteBackend) LastEventId(ctx context.Context, tx kv.Tx) (uint64, bool, error)
- func (back *RemoteBackend) LastFrozenEventBlockNum() uint64
- func (back *RemoteBackend) LastFrozenEventId() uint64
- func (back *RemoteBackend) LastFrozenSpanId() uint64
- func (r *RemoteBackend) LastMilestoneId(ctx context.Context, tx kv.Tx) (uint64, bool, error)
- func (back *RemoteBackend) LastSpanId(ctx context.Context, tx kv.Tx) (uint64, bool, error)
- func (r *RemoteBackend) Milestone(ctx context.Context, tx kv.Tx, spanId uint64) (*heimdall.Milestone, bool, error)
- func (back *RemoteBackend) NetPeerCount(ctx context.Context) (uint64, error)
- func (back *RemoteBackend) NetVersion(ctx context.Context) (uint64, error)
- func (back *RemoteBackend) NodeInfo(ctx context.Context, limit uint32) ([]p2p.NodeInfo, error)
- func (back *RemoteBackend) Peers(ctx context.Context) ([]*p2p.PeerInfo, error)
- func (back *RemoteBackend) PendingBlock(ctx context.Context) (*types.Block, error)
- func (back *RemoteBackend) ProtocolVersion(ctx context.Context) (uint64, error)
- func (back *RemoteBackend) RawTransactions(ctx context.Context, tx kv.Getter, fromBlock, toBlock uint64) (txs [][]byte, err error)
- func (back *RemoteBackend) ReadAncestor(db kv.Getter, hash common.Hash, number, ancestor uint64, ...) (common.Hash, uint64)
- func (back *RemoteBackend) Ready(ctx context.Context) <-chan error
- func (back *RemoteBackend) Snapshots() snapshotsync.BlockSnapshots
- func (back *RemoteBackend) Span(ctx context.Context, tx kv.Tx, spanId uint64) (*heimdall.Span, bool, error)
- func (back *RemoteBackend) Subscribe(ctx context.Context, onNewEvent func(*remote.SubscribeReply)) error
- func (back *RemoteBackend) SubscribeLogs(ctx context.Context, onNewLogs func(reply *remote.SubscribeLogsReply), ...) error
- func (back *RemoteBackend) TxnByIdxInBlock(ctx context.Context, tx kv.Getter, blockNum uint64, i int) (types.Transaction, error)
- func (back *RemoteBackend) TxnLookup(ctx context.Context, tx kv.Getter, txnHash common.Hash) (uint64, bool, error)
- func (back *RemoteBackend) TxsV3Enabled() bool
- type TxPoolService
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MiningService ¶
type MiningService struct { txpool.MiningClient // contains filtered or unexported fields }
func NewMiningService ¶
func NewMiningService(client txpool.MiningClient) *MiningService
func (*MiningService) EnsureVersionCompatibility ¶
func (s *MiningService) EnsureVersionCompatibility() bool
type RemoteBackend ¶
type RemoteBackend struct {
// contains filtered or unexported fields
}
func NewRemoteBackend ¶
func NewRemoteBackend(client remote.ETHBACKENDClient, db kv.RoDB, blockReader services.FullBlockReader) *RemoteBackend
func (*RemoteBackend) AddPeer ¶
func (back *RemoteBackend) AddPeer(ctx context.Context, request *remote.AddPeerRequest) (*remote.AddPeerReply, error)
func (*RemoteBackend) AllTypes ¶
func (back *RemoteBackend) AllTypes() []snaptype.Type
func (*RemoteBackend) BadHeaderNumber ¶
func (*RemoteBackend) BlockByHash ¶
func (*RemoteBackend) BlockByNumber ¶
func (*RemoteBackend) BlockWithSenders ¶
func (*RemoteBackend) BodyWithTransactions ¶
func (*RemoteBackend) BorSnapshots ¶
func (back *RemoteBackend) BorSnapshots() snapshotsync.BlockSnapshots
func (*RemoteBackend) BorStartEventId ¶
func (*RemoteBackend) CanPruneTo ¶
func (back *RemoteBackend) CanPruneTo(currentBlockInDB uint64) (canPruneBlocksTo uint64)
func (*RemoteBackend) CanonicalBodyForStorage ¶
func (back *RemoteBackend) CanonicalBodyForStorage(ctx context.Context, tx kv.Getter, blockNum uint64) (body *types.BodyForStorage, err error)
func (*RemoteBackend) CanonicalHash ¶
func (*RemoteBackend) Checkpoint ¶
func (r *RemoteBackend) Checkpoint(ctx context.Context, tx kv.Tx, spanId uint64) (*heimdall.Checkpoint, bool, error)
func (*RemoteBackend) ClientVersion ¶
func (back *RemoteBackend) ClientVersion(ctx context.Context) (string, error)
func (*RemoteBackend) CurrentBlock ¶
func (*RemoteBackend) EnsureVersionCompatibility ¶
func (back *RemoteBackend) EnsureVersionCompatibility() bool
func (*RemoteBackend) EventLookup ¶
func (*RemoteBackend) EventsByBlock ¶
func (*RemoteBackend) FirstTxnNumNotInSnapshots ¶
func (back *RemoteBackend) FirstTxnNumNotInSnapshots() uint64
func (*RemoteBackend) FreezingCfg ¶
func (back *RemoteBackend) FreezingCfg() ethconfig.BlocksFreezing
func (*RemoteBackend) FrozenBlocks ¶
func (back *RemoteBackend) FrozenBlocks() uint64
func (*RemoteBackend) FrozenBorBlocks ¶
func (back *RemoteBackend) FrozenBorBlocks() uint64
func (*RemoteBackend) FrozenFiles ¶
func (back *RemoteBackend) FrozenFiles() (list []string)
func (*RemoteBackend) HasSenders ¶
func (*RemoteBackend) HeaderByHash ¶
func (*RemoteBackend) HeaderByNumber ¶
func (*RemoteBackend) HeaderNumber ¶
func (*RemoteBackend) HeadersRange ¶
func (*RemoteBackend) IsCanonical ¶
func (*RemoteBackend) IterateFrozenBodies ¶
func (*RemoteBackend) LastCheckpointId ¶
func (*RemoteBackend) LastEventId ¶
func (*RemoteBackend) LastFrozenEventBlockNum ¶
func (back *RemoteBackend) LastFrozenEventBlockNum() uint64
func (*RemoteBackend) LastFrozenEventId ¶
func (back *RemoteBackend) LastFrozenEventId() uint64
func (*RemoteBackend) LastFrozenSpanId ¶
func (back *RemoteBackend) LastFrozenSpanId() uint64
func (*RemoteBackend) LastMilestoneId ¶
func (*RemoteBackend) LastSpanId ¶
func (*RemoteBackend) NetPeerCount ¶
func (back *RemoteBackend) NetPeerCount(ctx context.Context) (uint64, error)
func (*RemoteBackend) NetVersion ¶
func (back *RemoteBackend) NetVersion(ctx context.Context) (uint64, error)
func (*RemoteBackend) PendingBlock ¶
func (*RemoteBackend) ProtocolVersion ¶
func (back *RemoteBackend) ProtocolVersion(ctx context.Context) (uint64, error)
func (*RemoteBackend) RawTransactions ¶
func (*RemoteBackend) ReadAncestor ¶
func (*RemoteBackend) Snapshots ¶
func (back *RemoteBackend) Snapshots() snapshotsync.BlockSnapshots
func (*RemoteBackend) Subscribe ¶
func (back *RemoteBackend) Subscribe(ctx context.Context, onNewEvent func(*remote.SubscribeReply)) error
func (*RemoteBackend) SubscribeLogs ¶
func (back *RemoteBackend) SubscribeLogs(ctx context.Context, onNewLogs func(reply *remote.SubscribeLogsReply), requestor *atomic.Value) error
func (*RemoteBackend) TxnByIdxInBlock ¶
func (back *RemoteBackend) TxnByIdxInBlock(ctx context.Context, tx kv.Getter, blockNum uint64, i int) (types.Transaction, error)
func (*RemoteBackend) TxsV3Enabled ¶
func (back *RemoteBackend) TxsV3Enabled() bool
type TxPoolService ¶
type TxPoolService struct { txpooproto.TxpoolClient // contains filtered or unexported fields }
func NewTxPoolService ¶
func NewTxPoolService(client txpooproto.TxpoolClient) *TxPoolService
func (*TxPoolService) EnsureVersionCompatibility ¶
func (s *TxPoolService) EnsureVersionCompatibility() bool
Click to show internal directories.
Click to hide internal directories.