From 58e29e7b29f89a22bebdbc49075e08487273bfac 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 {