Skip to content

Commit af81f3b

Browse files
committed
swapserverrpc: sync with server types
1 parent 8447f58 commit af81f3b

8 files changed

+1061
-403
lines changed

swapserverrpc/instantout.pb.go

+3-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

swapserverrpc/instantout.proto

+5-2
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,8 @@ service InstantSwapServer {
3030
rpc PushPreimage (PushPreimageRequest) returns (PushPreimageResponse);
3131

3232
// CancelInstantSwap tries to cancel the instant swap. This can only be
33-
// called if the swap has not been accepted yet.
33+
// called if the swap has not been accepted yet. This allows the server to
34+
// release the reservation inputs.
3435
rpc CancelInstantSwap (CancelInstantSwapRequest)
3536
returns (CancelInstantSwapResponse);
3637

@@ -48,7 +49,9 @@ message InstantLoopOutRequest {
4849
// The hash of the preimage that will be used to settle the htlc.
4950
bytes swap_hash = 2;
5051

51-
// The requested absolute block height of the on-chain htlc.
52+
// The requested absolute block height of the on-chain htlc. This is
53+
// subjected to min and max constraints as reported in the LoopOutTerms
54+
// response.
5255
int32 expiry = 3;
5356

5457
// The fee rate in sat/kw that should be used for the htlc.

swapserverrpc/instantout_grpc.pb.go

+4-2
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

swapserverrpc/reservation.pb.go

+29-13
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

swapserverrpc/reservation.proto

+3-1
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,8 @@ service ReservationService {
2222
// ReservationNotificationRequest is an empty request sent from the client to
2323
// the server to open a stream to receive reservation notifications.
2424
message ReservationNotificationRequest {
25+
// protocol_version is the maximum version the client supports.
26+
ReservationProtocolVersion protocol_version = 1;
2527
}
2628

2729
// ServerReservationNotification is a notification sent from the server to the
@@ -64,7 +66,7 @@ enum ReservationProtocolVersion {
6466
// protocol version is not set.
6567
RESERVATION_NONE = 0;
6668

67-
// RESERVATION_SERVER_REQUEST is the first version of the reservation
69+
// RESERVATION_SERVER_NOTIFY is the first version of the reservation
6870
// protocol where the server notifies the client about a reservation.
6971
RESERVATION_SERVER_NOTIFY = 1;
7072
};

0 commit comments

Comments
 (0)