From 9209358cb1f70fa46179d14ed61e87d8923195c3 Mon Sep 17 00:00:00 2001 From: Bryan White Date: Mon, 5 Jun 2023 09:55:54 +0200 Subject: [PATCH] chore: implement `rpcPeerstoreProvider#GetUnstakedPeerstore()` --- p2p/providers/peerstore_provider/rpc/provider.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/p2p/providers/peerstore_provider/rpc/provider.go b/p2p/providers/peerstore_provider/rpc/provider.go index bd6a70d58..18dcabcf2 100644 --- a/p2p/providers/peerstore_provider/rpc/provider.go +++ b/p2p/providers/peerstore_provider/rpc/provider.go @@ -101,6 +101,10 @@ func (rabp *rpcPeerstoreProvider) GetP2PConfig() *configs.P2PConfig { return rabp.p2pCfg } +func (rabp *rpcPeerstoreProvider) GetUnstakedPeerstore() (typesP2P.Peerstore, error) { + return nil, fmt.Errorf("unstaked peerstore not supported by rpc peerstore provider") +} + func (rabp *rpcPeerstoreProvider) initRPCClient() { rpcClient, err := rpc.NewClientWithResponses(rabp.rpcURL) if err != nil {