Documentation ¶
Index ¶
- func ReadBlindedBlockFromSnapshot(r io.Reader, cfg *clparams.BeaconChainConfig) (*cltypes.SignedBlindedBeaconBlock, error)
- func ReadBlockFromSnapshot(r io.Reader, executionReader ExecutionBlockReaderByNumber, ...) (*cltypes.SignedBeaconBlock, error)
- func ReadBlockHeaderFromSnapshotWithExecutionData(r io.Reader, cfg *clparams.BeaconChainConfig) (*cltypes.SignedBeaconBlockHeader, uint64, libcommon.Hash, error)
- func WriteBlockForSnapshot(w io.Writer, block *cltypes.SignedBeaconBlock, reusable []byte) ([]byte, error)
- type ExecutionBlockReaderByNumber
- type MockBlockReader
- func (t *MockBlockReader) SetBeaconChainConfig(*clparams.BeaconChainConfig)
- func (t *MockBlockReader) Transactions(number uint64, hash libcommon.Hash) (*solid.TransactionsSSZ, error)
- func (t *MockBlockReader) Withdrawals(number uint64, hash libcommon.Hash) (*solid.ListSSZ[*cltypes.Withdrawal], error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ReadBlindedBlockFromSnapshot ¶
func ReadBlindedBlockFromSnapshot(r io.Reader, cfg *clparams.BeaconChainConfig) (*cltypes.SignedBlindedBeaconBlock, error)
func ReadBlockFromSnapshot ¶
func ReadBlockFromSnapshot(r io.Reader, executionReader ExecutionBlockReaderByNumber, cfg *clparams.BeaconChainConfig) (*cltypes.SignedBeaconBlock, error)
func ReadBlockHeaderFromSnapshotWithExecutionData ¶
func ReadBlockHeaderFromSnapshotWithExecutionData(r io.Reader, cfg *clparams.BeaconChainConfig) (*cltypes.SignedBeaconBlockHeader, uint64, libcommon.Hash, error)
ReadBlockHeaderFromSnapshotWithExecutionData reads the beacon block header and the EL block number and block hash.
func WriteBlockForSnapshot ¶
func WriteBlockForSnapshot(w io.Writer, block *cltypes.SignedBeaconBlock, reusable []byte) ([]byte, error)
WriteBlockForSnapshot writes a block to the given writer in the format expected by the snapshot. buf is just a reusable buffer. if it had to grow it will be returned back as grown.
Types ¶
type MockBlockReader ¶
func (*MockBlockReader) SetBeaconChainConfig ¶
func (t *MockBlockReader) SetBeaconChainConfig(*clparams.BeaconChainConfig)
func (*MockBlockReader) Transactions ¶
func (t *MockBlockReader) Transactions(number uint64, hash libcommon.Hash) (*solid.TransactionsSSZ, error)
func (*MockBlockReader) Withdrawals ¶
func (t *MockBlockReader) Withdrawals(number uint64, hash libcommon.Hash) (*solid.ListSSZ[*cltypes.Withdrawal], error)
Click to show internal directories.
Click to hide internal directories.