Skip to content

Commit

Permalink
chore: implement p2pModule#GetUnstakedPeerstore()
Browse files Browse the repository at this point in the history
  • Loading branch information
bryanchriswhite committed Jul 7, 2023
1 parent d1e811e commit 58e29e7
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions p2p/module.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 58e29e7

Please sign in to comment.