Skip to content

Commit

Permalink
add support for lnd 0.18.4
Browse files Browse the repository at this point in the history
  • Loading branch information
alexbosworth committed Dec 21, 2024
1 parent 4d440ab commit 0bdd2a7
Show file tree
Hide file tree
Showing 7 changed files with 150 additions and 85 deletions.
2 changes: 1 addition & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Versions

## 10.22.2
## 10.22.3

- `createFundedPsbt`: Add support for `change_format` for change address type

Expand Down
50 changes: 50 additions & 0 deletions grpc/protos/lightning.proto
Original file line number Diff line number Diff line change
Expand Up @@ -643,6 +643,8 @@ message SendCustomMessageRequest {
}

message SendCustomMessageResponse {
// The status of the send operation.
string status = 1;
}

message Utxo {
Expand Down Expand Up @@ -755,11 +757,35 @@ message GetTransactionsRequest {

// An optional filter to only include transactions relevant to an account.
string account = 3;

/*
The index of a transaction that will be used in a query to determine which
transaction should be returned in the response.
*/
uint32 index_offset = 4;

/*
The maximal number of transactions returned in the response to this query.
This value should be set to 0 to return all transactions.
*/
uint32 max_transactions = 5;
}

message TransactionDetails {
// The list of transactions relevant to the wallet.
repeated Transaction transactions = 1;

/*
The index of the last item in the set of returned transactions. This can be
used to seek further, pagination style.
*/
uint64 last_index = 2;

/*
The index of the last item in the set of returned transactions. This can be
used to seek backwards, pagination style.
*/
uint64 first_index = 3;
}

message FeeLimit {
Expand Down Expand Up @@ -1317,13 +1343,17 @@ message ConnectPeerRequest {
uint64 timeout = 3;
}
message ConnectPeerResponse {
// The status of the connect operation.
string status = 1;
}

message DisconnectPeerRequest {
// The pubkey of the node to disconnect from
string pub_key = 1;
}
message DisconnectPeerResponse {
// The status of the disconnect operation.
string status = 1;
}

message HTLC {
Expand Down Expand Up @@ -3542,6 +3572,8 @@ message NetworkInfo {
message StopRequest {
}
message StopResponse {
// The status of the stop operation.
string status = 1;
}

message GraphTopologySubscription {
Expand Down Expand Up @@ -4366,9 +4398,13 @@ message DeleteAllPaymentsRequest {
}

message DeletePaymentResponse {
// The status of the delete operation.
string status = 1;
}

message DeleteAllPaymentsResponse {
// The status of the delete operation.
string status = 1;
}

message AbandonChannelRequest {
Expand All @@ -4385,6 +4421,8 @@ message AbandonChannelRequest {
}

message AbandonChannelResponse {
// The status of the abandon operation.
string status = 1;
}

message DebugLevelRequest {
Expand Down Expand Up @@ -4544,6 +4582,15 @@ message PolicyUpdateRequest {
// Optional inbound fee. If unset, the previously set value will be
// retained [EXPERIMENTAL].
InboundFee inbound_fee = 10;

// Under unknown circumstances a channel can exist with a missing edge in
// the graph database. This can cause an 'edge not found' error when calling
// `getchaninfo` and/or cause the default channel policy to be used during
// forwards. Setting this flag will recreate the edge if not found, allowing
// updating this channel policy and fixing the missing edge problem for this
// channel permanently. For fields not set in this command, the default
// policy will be created.
bool create_missing_edge = 11;
}

enum UpdateFailure {
Expand Down Expand Up @@ -4724,12 +4771,15 @@ message RestoreChanBackupRequest {
}
}
message RestoreBackupResponse {
// The number of channels successfully restored.
uint32 num_restored = 1;
}

message ChannelBackupSubscription {
}

message VerifyChanBackupResponse {
repeated string chan_points = 1;
}

message MacaroonPermission {
Expand Down
10 changes: 3 additions & 7 deletions grpc/protos/router.proto
Original file line number Diff line number Diff line change
Expand Up @@ -1064,13 +1064,9 @@ message ForwardHtlcInterceptResponse {
// the resumed HTLC. This field is ignored if the action is not
// RESUME_MODIFIED.
//
// If this map is populated, it will overwrite any of the wire custom
// records set by LND. It is the caller's responsibility to copy any desired
// records across. If the map is empty, no action will be taken and existing
// custom records will be propagated.
//
// The API does not currently support deleting custom records, unless they
// are overwritten by a new set.
// This map will merge with the existing set of custom records (if any),
// replacing any conflicting types. Note that there currently is no support
// for deleting existing custom records (they can only be replaced).
map<uint64, bytes> out_wire_custom_records = 8;
}

Expand Down
15 changes: 15 additions & 0 deletions grpc/protos/walletkit.proto
Original file line number Diff line number Diff line change
Expand Up @@ -414,6 +414,8 @@ message ReleaseOutputRequest {
}

message ReleaseOutputResponse {
// The status of the release operation.
string status = 1;
}

message KeyReq {
Expand Down Expand Up @@ -699,6 +701,8 @@ message ImportPublicKeyRequest {
AddressType address_type = 2;
}
message ImportPublicKeyResponse {
// The status of the import operation.
string status = 1;
}

message ImportTapscriptRequest {
Expand Down Expand Up @@ -1318,6 +1322,8 @@ message LabelTransactionRequest {
}

message LabelTransactionResponse {
// The status of the label operation.
string status = 1;
}

// The possible change address types for default accounts and single imported
Expand Down Expand Up @@ -1388,6 +1394,12 @@ message FundPsbtRequest {
input with.
*/
uint64 sat_per_vbyte = 4;

/*
The fee rate, expressed in sat/kWU, that should be used to spend the
input with.
*/
uint64 sat_per_kw = 11;
}

/*
Expand All @@ -1411,6 +1423,9 @@ message FundPsbtRequest {

// The strategy to use for selecting coins during funding the PSBT.
lnrpc.CoinSelectionStrategy coin_selection_strategy = 10;

// The max fee to total output amount ratio that this psbt should adhere to.
double max_fee_ratio = 12;
}
message FundPsbtResponse {
/*
Expand Down
1 change: 1 addition & 0 deletions lnd_methods/info/constants.json
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@
"b4e7131bdb47531ad2f00ce345ddcdb58935bba5": "0.15.3-beta",
"bd0c46b4fcb027af1915bd67a3da70e8ca5c6efe": "0.14.3-beta",
"c0a09209782b1c62c3393fcea0844e095c25046b": "0.15.5-beta",
"ddeb8351684a611f6c27f16f09be75d5c039f08c": "0.18.4-beta",
"d176d2d65fc06e6631c4dc9478592be8545a21de": "0.12.0-beta",
"d22b3937eae91d33cd8c035e8fa894e3793e1636": "0.18.2-beta",
"d233f61383f2f950aa06f5b09da5b0e78e784fae": "0.12.1-beta",
Expand Down
Loading

0 comments on commit 0bdd2a7

Please sign in to comment.