2021-02-24 15:29:25 +00:00
|
|
|
package voluntaryexits
|
|
|
|
|
|
|
|
import (
|
|
|
|
"context"
|
|
|
|
|
|
|
|
types "github.com/prysmaticlabs/eth2-types"
|
2021-03-08 22:37:33 +00:00
|
|
|
iface "github.com/prysmaticlabs/prysm/beacon-chain/state/interface"
|
2021-06-02 23:49:52 +00:00
|
|
|
eth "github.com/prysmaticlabs/prysm/proto/eth/v1alpha1"
|
2021-02-24 15:29:25 +00:00
|
|
|
)
|
|
|
|
|
|
|
|
// PoolMock is a fake implementation of PoolManager.
|
|
|
|
type PoolMock struct {
|
|
|
|
Exits []*eth.SignedVoluntaryExit
|
|
|
|
}
|
|
|
|
|
|
|
|
// PendingExits --
|
2021-03-08 22:37:33 +00:00
|
|
|
func (m *PoolMock) PendingExits(_ iface.ReadOnlyBeaconState, _ types.Slot, _ bool) []*eth.SignedVoluntaryExit {
|
2021-02-24 15:29:25 +00:00
|
|
|
return m.Exits
|
|
|
|
}
|
|
|
|
|
|
|
|
// InsertVoluntaryExit --
|
2021-03-08 22:37:33 +00:00
|
|
|
func (m *PoolMock) InsertVoluntaryExit(_ context.Context, _ iface.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")
|
|
|
|
}
|