summaryrefslogtreecommitdiff
path: root/rpcs/blockService_test.go
diff options
context:
space:
mode:
Diffstat (limited to 'rpcs/blockService_test.go')
-rw-r--r--rpcs/blockService_test.go5
1 files changed, 5 insertions, 0 deletions
diff --git a/rpcs/blockService_test.go b/rpcs/blockService_test.go
index a48217b13..542e8783e 100644
--- a/rpcs/blockService_test.go
+++ b/rpcs/blockService_test.go
@@ -50,6 +50,11 @@ func (mup *mockUnicastPeer) Unicast(ctx context.Context, data []byte, tag protoc
func (mup *mockUnicastPeer) Version() string {
return "2.1"
}
+
+// GetConnectionLatency returns the connection latency between the local node and this peer.
+func (mup *mockUnicastPeer) GetConnectionLatency() time.Duration {
+ return time.Duration(0)
+}
func (mup *mockUnicastPeer) Request(ctx context.Context, tag network.Tag, topics network.Topics) (resp *network.Response, e error) {
return nil, nil
}