diff --git a/p2p/providers/peerstore_provider/persistence/provider.go b/p2p/providers/peerstore_provider/persistence/provider.go index c4ce0381f1..899c3999c2 100644 --- a/p2p/providers/peerstore_provider/persistence/provider.go +++ b/p2p/providers/peerstore_provider/persistence/provider.go @@ -48,7 +48,7 @@ func (persistencePSP *persistencePeerstoreProvider) GetStakedPeerstoreAtHeight(h } defer readCtx.Release() - validators, err := readCtx.GetAllValidators(int64(height)) + validators, err := readCtx.GetAllStakedActors(int64(height)) if err != nil { return nil, err }