From 0a33ea9e749f051a8456870fd4a16de823bd13b5 Mon Sep 17 00:00:00 2001 From: Bryan White Date: Mon, 5 Jun 2023 10:00:42 +0200 Subject: [PATCH] chore: implement `p2pModule#GetUnstakedPeerstore()` --- p2p/module.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/p2p/module.go b/p2p/module.go index d488afbc0a..7aec6fdaee 100644 --- a/p2p/module.go +++ b/p2p/module.go @@ -279,6 +279,10 @@ func (m *p2pModule) GetAddress() (cryptoPocket.Address, error) { return m.address, nil } +func (m *p2pModule) GetUnstakedPeerstore() (typesP2P.Peerstore, error) { + return m.unstakedActorRouter.GetPeerstore(), nil +} + // setupDependencies sets up the module's current height and peerstore providers. func (m *p2pModule) setupDependencies() error { if err := m.setupCurrentHeightProvider(); err != nil {