mirror of
https://github.com/lightningnetwork/lnd.git
synced 2025-08-02 17:52:28 +02:00
lnrpc: expose PINNED_SYNC for listpeers
This commit is contained in:
@@ -2744,6 +2744,8 @@ func (r *rpcServer) ListPeers(ctx context.Context,
|
||||
lnrpcSyncType = lnrpc.Peer_ACTIVE_SYNC
|
||||
case discovery.PassiveSync:
|
||||
lnrpcSyncType = lnrpc.Peer_PASSIVE_SYNC
|
||||
case discovery.PinnedSync:
|
||||
lnrpcSyncType = lnrpc.Peer_PINNED_SYNC
|
||||
default:
|
||||
return nil, fmt.Errorf("unhandled sync type %v",
|
||||
syncType)
|
||||
|
Reference in New Issue
Block a user