lnrpc: expose PINNED_SYNC for listpeers

This commit is contained in:
Conner Fromknecht
2021-01-29 00:14:07 -08:00
parent 340414356d
commit 2371fc5a8e
4 changed files with 790 additions and 777 deletions

View File

@@ -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)