Documentation ¶
Index ¶
- func ReadBlockFromSnapshot(r io.Reader, executionReader ExecutionBlockReaderByNumber, ...) (*cltypes.SignedBeaconBlock, error)
- func ReadBlockHeaderFromSnapshotWithExecutionData(r io.Reader) (*cltypes.SignedBeaconBlockHeader, uint64, libcommon.Hash, error)
- func ReadRawBlockFromSnapshot(r io.Reader, out io.Writer, executionReader ExecutionBlockReaderByNumber, ...) (clparams.StateVersion, error)
- func WriteBlockForSnapshot(w io.Writer, block *cltypes.SignedBeaconBlock, reusable []byte) ([]byte, error)
- type ExecutionBlockReaderByNumber
- type MockBlockReader
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ReadBlockFromSnapshot ¶
func ReadBlockFromSnapshot(r io.Reader, executionReader ExecutionBlockReaderByNumber, cfg *clparams.BeaconChainConfig) (*cltypes.SignedBeaconBlock, error)
func ReadBlockHeaderFromSnapshotWithExecutionData ¶
func ReadBlockHeaderFromSnapshotWithExecutionData(r io.Reader) (*cltypes.SignedBeaconBlockHeader, uint64, libcommon.Hash, error)
ReadBlockHeaderFromSnapshotWithExecutionData reads the beacon block header and the EL block number and block hash.
func ReadRawBlockFromSnapshot ¶
func ReadRawBlockFromSnapshot(r io.Reader, out io.Writer, executionReader ExecutionBlockReaderByNumber, cfg *clparams.BeaconChainConfig) (clparams.StateVersion, error)
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) TransactionsSSZ ¶
func (*MockBlockReader) WithdrawalsSZZ ¶
Click to show internal directories.
Click to hide internal directories.