mirror of
https://gitlab.com/pulsechaincom/prysm-pulse.git
synced 2025-01-06 01:32:18 +00:00
7f0749c398
* Remove shared interface folder * Rename file names * Gazelle * Move interface to /beacon/p2p/ Co-authored-by: Raul Jordan <raul@prysmaticlabs.com> Co-authored-by: Nishant Das <nishdas93@gmail.com>
21 lines
417 B
Go
21 lines
417 B
Go
package testing
|
|
|
|
import (
|
|
"github.com/prysmaticlabs/prysm/proto/beacon/p2p"
|
|
)
|
|
|
|
// MockMetadataProvider is a fake implementation of the MetadataProvider interface.
|
|
type MockMetadataProvider struct {
|
|
Data p2p.Metadata
|
|
}
|
|
|
|
// Metadata --
|
|
func (m *MockMetadataProvider) Metadata() p2p.Metadata {
|
|
return m.Data
|
|
}
|
|
|
|
// MetadataSeq --
|
|
func (m *MockMetadataProvider) MetadataSeq() uint64 {
|
|
return m.Data.SequenceNumber()
|
|
}
|