mirror of
https://gitlab.com/pulsechaincom/prysm-pulse.git
synced 2024-12-25 04:47:18 +00:00
d17996f8b0
* Update V3 from V4 * Fix build v3 -> v4 * Update ssz * Update beacon_chain.pb.go * Fix formatter import * Update update-mockgen.sh comment to v4 * Fix conflicts. Pass build and tests * Fix test
33 lines
845 B
Go
33 lines
845 B
Go
package mock
|
|
|
|
import (
|
|
"github.com/prysmaticlabs/prysm/v4/beacon-chain/state"
|
|
"github.com/prysmaticlabs/prysm/v4/consensus-types/primitives"
|
|
eth "github.com/prysmaticlabs/prysm/v4/proto/prysm/v1alpha1"
|
|
)
|
|
|
|
// PoolMock is a fake implementation of PoolManager.
|
|
type PoolMock struct {
|
|
Exits []*eth.SignedVoluntaryExit
|
|
}
|
|
|
|
// PendingExits --
|
|
func (m *PoolMock) PendingExits() ([]*eth.SignedVoluntaryExit, error) {
|
|
return m.Exits, nil
|
|
}
|
|
|
|
// ExitsForInclusion --
|
|
func (m *PoolMock) ExitsForInclusion(_ state.ReadOnlyBeaconState, _ primitives.Slot) ([]*eth.SignedVoluntaryExit, error) {
|
|
return m.Exits, nil
|
|
}
|
|
|
|
// InsertVoluntaryExit --
|
|
func (m *PoolMock) InsertVoluntaryExit(exit *eth.SignedVoluntaryExit) {
|
|
m.Exits = append(m.Exits, exit)
|
|
}
|
|
|
|
// MarkIncluded --
|
|
func (*PoolMock) MarkIncluded(_ *eth.SignedVoluntaryExit) {
|
|
panic("implement me")
|
|
}
|