Documentation ¶
Index ¶
- type PoolMock
- func (m *PoolMock) InsertAttesterSlashing(_ context.Context, _ state.ReadOnlyBeaconState, ...) error
- func (m *PoolMock) InsertProposerSlashing(_ context.Context, _ state.ReadOnlyBeaconState, ...) error
- func (*PoolMock) MarkIncludedAttesterSlashing(_ *zondpb.AttesterSlashing)
- func (*PoolMock) MarkIncludedProposerSlashing(_ *zondpb.ProposerSlashing)
- func (m *PoolMock) PendingAttesterSlashings(_ context.Context, _ state.ReadOnlyBeaconState, _ bool) []*zondpb.AttesterSlashing
- func (m *PoolMock) PendingProposerSlashings(_ context.Context, _ state.ReadOnlyBeaconState, _ bool) []*zondpb.ProposerSlashing
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type PoolMock ¶
type PoolMock struct { PendingAttSlashings []*zondpb.AttesterSlashing PendingPropSlashings []*zondpb.ProposerSlashing }
PoolMock is a fake implementation of PoolManager.
func (*PoolMock) InsertAttesterSlashing ¶
func (m *PoolMock) InsertAttesterSlashing(_ context.Context, _ state.ReadOnlyBeaconState, slashing *zondpb.AttesterSlashing) error
InsertAttesterSlashing --
func (*PoolMock) InsertProposerSlashing ¶
func (m *PoolMock) InsertProposerSlashing(_ context.Context, _ state.ReadOnlyBeaconState, slashing *zondpb.ProposerSlashing) error
InsertProposerSlashing --
func (*PoolMock) MarkIncludedAttesterSlashing ¶
func (*PoolMock) MarkIncludedAttesterSlashing(_ *zondpb.AttesterSlashing)
MarkIncludedAttesterSlashing --
func (*PoolMock) MarkIncludedProposerSlashing ¶
func (*PoolMock) MarkIncludedProposerSlashing(_ *zondpb.ProposerSlashing)
MarkIncludedProposerSlashing --
func (*PoolMock) PendingAttesterSlashings ¶
func (m *PoolMock) PendingAttesterSlashings(_ context.Context, _ state.ReadOnlyBeaconState, _ bool) []*zondpb.AttesterSlashing
PendingAttesterSlashings --
func (*PoolMock) PendingProposerSlashings ¶
func (m *PoolMock) PendingProposerSlashings(_ context.Context, _ state.ReadOnlyBeaconState, _ bool) []*zondpb.ProposerSlashing
PendingProposerSlashings --
Click to show internal directories.
Click to hide internal directories.