mirror of
https://gitlab.com/pulsechaincom/prysm-pulse.git
synced 2025-01-09 11:11:20 +00:00
77d3ccb9ad
* Clean up state types * rename package
30 lines
774 B
Go
30 lines
774 B
Go
package mock
|
|
|
|
import (
|
|
"context"
|
|
|
|
"github.com/prysmaticlabs/prysm/v3/beacon-chain/state"
|
|
"github.com/prysmaticlabs/prysm/v3/consensus-types/primitives"
|
|
eth "github.com/prysmaticlabs/prysm/v3/proto/prysm/v1alpha1"
|
|
)
|
|
|
|
// PoolMock is a fake implementation of PoolManager.
|
|
type PoolMock struct {
|
|
Exits []*eth.SignedVoluntaryExit
|
|
}
|
|
|
|
// PendingExits --
|
|
func (m *PoolMock) PendingExits(_ state.ReadOnlyBeaconState, _ primitives.Slot, _ bool) []*eth.SignedVoluntaryExit {
|
|
return m.Exits
|
|
}
|
|
|
|
// InsertVoluntaryExit --
|
|
func (m *PoolMock) InsertVoluntaryExit(_ context.Context, _ state.ReadOnlyBeaconState, exit *eth.SignedVoluntaryExit) {
|
|
m.Exits = append(m.Exits, exit)
|
|
}
|
|
|
|
// MarkIncluded --
|
|
func (*PoolMock) MarkIncluded(_ *eth.SignedVoluntaryExit) {
|
|
panic("implement me")
|
|
}
|