Documentation ¶
Index ¶
- type BeaconChainDatabase
- type BeaconChainWriter
- type BeaconRpcSource
- func (*BeaconRpcSource) GetBlock(ctx context.Context, tx kv.Tx, slot uint64) (*peers.PeeredObject[*cltypes.SignedBeaconBlock], error)
- func (b *BeaconRpcSource) GetRange(ctx context.Context, _ kv.Tx, from uint64, count uint64) (*peers.PeeredObject[[]*cltypes.SignedBeaconBlock], error)
- func (b *BeaconRpcSource) PurgeRange(ctx context.Context, _ kv.Tx, from uint64, count uint64) error
- func (b *BeaconRpcSource) SaveBlocks(ctx context.Context, blocks *peers.PeeredObject[*cltypes.SignedBeaconBlock]) error
- type BlockSource
- type GossipSource
- func (*GossipSource) GetBlock(ctx context.Context, tx kv.Tx, slot uint64) (*peers.PeeredObject[*cltypes.SignedBeaconBlock], error)
- func (b *GossipSource) GetRange(ctx context.Context, _ kv.Tx, from uint64, count uint64) (*peers.PeeredObject[[]*cltypes.SignedBeaconBlock], error)
- func (b *GossipSource) PurgeRange(ctx context.Context, tx kv.Tx, from uint64, count uint64) error
- type RawBeaconBlockChain
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BeaconChainDatabase ¶
type BeaconChainDatabase interface { BlockSource BeaconChainWriter }
func NewBeaconChainDatabaseFilesystem ¶
func NewBeaconChainDatabaseFilesystem(rawDB RawBeaconBlockChain, executionEngine execution_client.ExecutionEngine, cfg *clparams.BeaconChainConfig) BeaconChainDatabase
type BeaconChainWriter ¶
type BeaconRpcSource ¶
type BeaconRpcSource struct {
// contains filtered or unexported fields
}
func NewBeaconRpcSource ¶
func NewBeaconRpcSource(rpc *rpc.BeaconRpcP2P) *BeaconRpcSource
func (*BeaconRpcSource) GetBlock ¶
func (*BeaconRpcSource) GetBlock(ctx context.Context, tx kv.Tx, slot uint64) (*peers.PeeredObject[*cltypes.SignedBeaconBlock], error)
func (*BeaconRpcSource) GetRange ¶
func (b *BeaconRpcSource) GetRange(ctx context.Context, _ kv.Tx, from uint64, count uint64) (*peers.PeeredObject[[]*cltypes.SignedBeaconBlock], error)
func (*BeaconRpcSource) PurgeRange ¶
a noop for rpc source since we always return new data
func (*BeaconRpcSource) SaveBlocks ¶
func (b *BeaconRpcSource) SaveBlocks(ctx context.Context, blocks *peers.PeeredObject[*cltypes.SignedBeaconBlock]) error
type BlockSource ¶
type BlockSource interface { GetRange(ctx context.Context, tx kv.Tx, from uint64, count uint64) (*peers.PeeredObject[[]*cltypes.SignedBeaconBlock], error) PurgeRange(ctx context.Context, tx kv.Tx, from uint64, count uint64) error GetBlock(ctx context.Context, tx kv.Tx, slot uint64) (*peers.PeeredObject[*cltypes.SignedBeaconBlock], error) }
type GossipSource ¶
type GossipSource struct {
// contains filtered or unexported fields
}
func NewGossipSource ¶
func NewGossipSource(ctx context.Context, gossip *network.GossipManager) *GossipSource
func (*GossipSource) GetBlock ¶
func (*GossipSource) GetBlock(ctx context.Context, tx kv.Tx, slot uint64) (*peers.PeeredObject[*cltypes.SignedBeaconBlock], error)
func (*GossipSource) GetRange ¶
func (b *GossipSource) GetRange(ctx context.Context, _ kv.Tx, from uint64, count uint64) (*peers.PeeredObject[[]*cltypes.SignedBeaconBlock], error)
func (*GossipSource) PurgeRange ¶
type RawBeaconBlockChain ¶
type RawBeaconBlockChain interface { BlockWriter(ctx context.Context, slot uint64, blockRoot libcommon.Hash) (io.WriteCloser, error) BlockReader(ctx context.Context, slot uint64, blockRoot libcommon.Hash) (io.ReadCloser, error) DeleteBlock(ctx context.Context, slot uint64, blockRoot libcommon.Hash) error }
func AferoRawBeaconBlockChainFromOsPath ¶
func AferoRawBeaconBlockChainFromOsPath(cfg *clparams.BeaconChainConfig, path string) (RawBeaconBlockChain, afero.Fs)
func NewAferoRawBlockSaver ¶
func NewAferoRawBlockSaver(fs afero.Fs, cfg *clparams.BeaconChainConfig) RawBeaconBlockChain
Click to show internal directories.
Click to hide internal directories.