Documentation ¶
Index ¶
- type MemDB
- func (db *MemDB) AwaitAttestation(ctx context.Context, slot int64, commIdx int64) (*eth2p0.AttestationData, error)
- func (db *MemDB) AwaitBeaconBlock(ctx context.Context, slot int64) (*spec.VersionedBeaconBlock, error)
- func (db *MemDB) PubKeyByAttestation(_ context.Context, slot, commIdx, valCommIdx int64) (core.PubKey, error)
- func (db *MemDB) Shutdown()
- func (db *MemDB) Store(_ context.Context, duty core.Duty, unsignedSet core.UnsignedDataSet) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MemDB ¶
type MemDB struct {
// contains filtered or unexported fields
}
MemDB is a in-memory dutyDB implementation. It is a placeholder for the badgerDB implementation.
func (*MemDB) AwaitAttestation ¶
func (db *MemDB) AwaitAttestation(ctx context.Context, slot int64, commIdx int64) (*eth2p0.AttestationData, error)
AwaitAttestation implements core.DutyDB, see its godoc.
func (*MemDB) AwaitBeaconBlock ¶ added in v0.3.0
func (db *MemDB) AwaitBeaconBlock(ctx context.Context, slot int64) (*spec.VersionedBeaconBlock, error)
AwaitBeaconBlock implements core.DutyDB, see its godoc.
func (*MemDB) PubKeyByAttestation ¶
func (db *MemDB) PubKeyByAttestation(_ context.Context, slot, commIdx, valCommIdx int64) (core.PubKey, error)
PubKeyByAttestation implements core.DutyDB, see its godoc.
Click to show internal directories.
Click to hide internal directories.