mirror of
https://github.com/libp2p/go-libp2p-core.git
synced 2025-02-14 07:20:07 +08:00
fix doc comment
This commit is contained in:
parent
b8de7fa7f3
commit
37987396db
@ -21,7 +21,8 @@ func RoutingStateFromHost(h Host) *routing.RoutingState {
|
||||
return routing.RoutingStateFromAddrInfo(InfoFromHost(h))
|
||||
}
|
||||
|
||||
// SignedRoutingStateFromHost
|
||||
// SignedRoutingStateFromHost wraps a routing.RoutingState record in a
|
||||
// SignedEnvelope, signed with the Host's private key.
|
||||
func SignedRoutingStateFromHost(h Host) (*crypto.SignedEnvelope, error) {
|
||||
privKey := h.Peerstore().PrivKey(h.ID())
|
||||
if privKey == nil {
|
||||
|
Loading…
Reference in New Issue
Block a user