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 66a8d35 commit 0a33ea9
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 0a33ea9

Please sign in to comment.