prysm-pulse/beacon-chain/p2p/testing/mock_metadataprovider.go
Raul Jordan 2d10bcf179
Move State Protos Into V2 Namespace (#9257)
* move state protos

* regen ssz

* edit v1 code

* fix imports

* building

* beacon chain builds

* validator and shared builds

* fuzz builds

* changes

* spectest builds

* tools build

* remove import cycle

* generate ssz

* pcli

* gaz

* kafka

* gaz
2021-07-23 08:07:40 -05:00

21 lines
431 B
Go

package testing
import (
"github.com/prysmaticlabs/prysm/proto/interfaces"
)
// MockMetadataProvider is a fake implementation of the MetadataProvider interface.
type MockMetadataProvider struct {
Data interfaces.Metadata
}
// Metadata --
func (m *MockMetadataProvider) Metadata() interfaces.Metadata {
return m.Data
}
// MetadataSeq --
func (m *MockMetadataProvider) MetadataSeq() uint64 {
return m.Data.SequenceNumber()
}