Documentation ¶
Index ¶
- func AddBlockRootToParentRootsIndex(tx kv.RwTx, parentRoot, blockRoot libcommon.Hash) error
- func MarkRootCanonical(ctx context.Context, tx kv.RwTx, slot uint64, blockRoot libcommon.Hash) error
- func PruneBlockRoots(ctx context.Context, tx kv.RwTx, fromSlot, toSlot uint64) error
- func PruneBlocks(ctx context.Context, tx kv.RwTx, to uint64) error
- func PruneSignedHeaders(tx kv.RwTx, from uint64) error
- func RangeBlockRoots(ctx context.Context, tx kv.Tx, fromSlot, toSlot uint64, ...) error
- func ReadBeaconBlockRootsInSlotRange(ctx context.Context, tx kv.Tx, fromSlot, count uint64) ([]libcommon.Hash, []uint64, error)
- func ReadBlockRootByStateRoot(tx kv.Tx, stateRoot libcommon.Hash) (libcommon.Hash, error)
- func ReadBlockRootsByParentRoot(tx kv.Tx, parentRoot libcommon.Hash) ([]libcommon.Hash, error)
- func ReadBlockSlotByBlockRoot(tx kv.Tx, blockRoot libcommon.Hash) (*uint64, error)
- func ReadCanonicalBlockRoot(tx kv.Tx, slot uint64) (libcommon.Hash, error)
- func ReadExecutionBlockHash(tx kv.Tx, blockRoot libcommon.Hash) (libcommon.Hash, error)
- func ReadExecutionBlockNumber(tx kv.Tx, blockRoot libcommon.Hash) (*uint64, error)
- func ReadHighestFinalized(tx kv.Tx) (uint64, error)
- func ReadLastBeaconSnapshot(tx kv.Tx) (uint64, error)
- func ReadParentBlockRoot(ctx context.Context, tx kv.Tx, blockRoot libcommon.Hash) (libcommon.Hash, error)
- func ReadSignedHeaderByBlockRoot(ctx context.Context, tx kv.Tx, blockRoot libcommon.Hash) (*cltypes.SignedBeaconBlockHeader, bool, error)
- func ReadStateRootByBlockRoot(ctx context.Context, tx kv.Tx, blockRoot libcommon.Hash) (libcommon.Hash, error)
- func TruncateCanonicalChain(ctx context.Context, tx kv.RwTx, slot uint64) error
- func WriteBeaconBlock(ctx context.Context, tx kv.RwTx, block *cltypes.SignedBeaconBlock) error
- func WriteBeaconBlockAndIndicies(ctx context.Context, tx kv.RwTx, block *cltypes.SignedBeaconBlock, ...) error
- func WriteBeaconBlockHeader(ctx context.Context, tx kv.RwTx, signedHeader *cltypes.SignedBeaconBlockHeader) error
- func WriteBeaconBlockHeaderAndIndicies(ctx context.Context, tx kv.RwTx, signedHeader *cltypes.SignedBeaconBlockHeader, ...) error
- func WriteExecutionBlockHash(tx kv.RwTx, blockRoot, blockHash libcommon.Hash) error
- func WriteExecutionBlockNumber(tx kv.RwTx, blockRoot libcommon.Hash, blockNumber uint64) error
- func WriteHeaderSlot(tx kv.RwTx, blockRoot libcommon.Hash, slot uint64) error
- func WriteHighestFinalized(tx kv.RwTx, slot uint64) error
- func WriteLastBeaconSnapshot(tx kv.RwTx, slot uint64) error
- func WriteParentBlockRoot(ctx context.Context, tx kv.RwTx, blockRoot, parentRoot libcommon.Hash) error
- func WriteStateRoot(tx kv.RwTx, blockRoot libcommon.Hash, stateRoot libcommon.Hash) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func MarkRootCanonical ¶
func PruneBlockRoots ¶
func RangeBlockRoots ¶
func ReadCanonicalBlockRoot ¶
func ReadExecutionBlockHash ¶
func ReadParentBlockRoot ¶
func TruncateCanonicalChain ¶
func WriteBeaconBlock ¶
func WriteBeaconBlockHeader ¶
func WriteExecutionBlockHash ¶
func WriteHeaderSlot ¶
WriteHeaderSlot writes the slot associated with a block root.
func WriteParentBlockRoot ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.