2022-01-26 14:48:20 +00:00
|
|
|
package mock
|
2021-02-24 15:29:25 +00:00
|
|
|
|
|
|
|
import (
|
|
|
|
"context"
|
|
|
|
|
|
|
|
types "github.com/prysmaticlabs/eth2-types"
|
2021-07-23 16:11:21 +00:00
|
|
|
"github.com/prysmaticlabs/prysm/beacon-chain/state"
|
2021-07-21 21:34:07 +00:00
|
|
|
eth "github.com/prysmaticlabs/prysm/proto/prysm/v1alpha1"
|
2021-02-24 15:29:25 +00:00
|
|
|
)
|
|
|
|
|
|
|
|
// PoolMock is a fake implementation of PoolManager.
|
|
|
|
type PoolMock struct {
|
|
|
|
Exits []*eth.SignedVoluntaryExit
|
|
|
|
}
|
|
|
|
|
|
|
|
// PendingExits --
|
2021-07-23 16:11:21 +00:00
|
|
|
func (m *PoolMock) PendingExits(_ state.ReadOnlyBeaconState, _ types.Slot, _ bool) []*eth.SignedVoluntaryExit {
|
2021-02-24 15:29:25 +00:00
|
|
|
return m.Exits
|
|
|
|
}
|
|
|
|
|
|
|
|
// InsertVoluntaryExit --
|
2021-07-23 16:11:21 +00:00
|
|
|
func (m *PoolMock) InsertVoluntaryExit(_ context.Context, _ state.ReadOnlyBeaconState, exit *eth.SignedVoluntaryExit) {
|
2021-03-01 16:08:39 +00:00
|
|
|
m.Exits = append(m.Exits, exit)
|
2021-02-24 15:29:25 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
// MarkIncluded --
|
|
|
|
func (*PoolMock) MarkIncluded(_ *eth.SignedVoluntaryExit) {
|
|
|
|
panic("implement me")
|
|
|
|
}
|