mirror of
https://github.com/bitcoin-s/bitcoin-s.git
synced 2025-02-22 14:33:06 +01:00
Update lnd to v0.14.2 (#4040)
This commit is contained in:
parent
2066447cdc
commit
afc6a32c62
4 changed files with 46 additions and 7 deletions
|
@ -26,7 +26,7 @@ TaskKeys.downloadLnd := {
|
||||||
Files.createDirectories(binaryDir)
|
Files.createDirectories(binaryDir)
|
||||||
}
|
}
|
||||||
|
|
||||||
val version = "0.14.1-beta"
|
val version = "0.14.2-beta"
|
||||||
|
|
||||||
val (platform, suffix) =
|
val (platform, suffix) =
|
||||||
if (Properties.isLinux) ("linux-amd64", "tar.gz")
|
if (Properties.isLinux) ("linux-amd64", "tar.gz")
|
||||||
|
@ -59,11 +59,11 @@ TaskKeys.downloadLnd := {
|
||||||
|
|
||||||
val expectedHash =
|
val expectedHash =
|
||||||
if (Properties.isLinux)
|
if (Properties.isLinux)
|
||||||
"7034e4aea3f404a9bbb1d157653741eb0e020c3d3272f854d3e2cefa0070f24a"
|
"7e0f290716e3c246305e176310a9a49aaafc9c243adc829631094a409cfd0ef1"
|
||||||
else if (Properties.isMac)
|
else if (Properties.isMac)
|
||||||
"046409faf7e5049d6ddfdbe2a556fa0b5e6cc651bccce039c6f736b72390ad1d"
|
"c9f9bab9209a329407c4ba42b7b177b5e9edcab936e0a6c84593b09369ef43c5"
|
||||||
else if (Properties.isWin)
|
else if (Properties.isWin)
|
||||||
"661d0538ca04c4f890d3d9a72717916f41350e810ae06f884e7ed97b38bf783f"
|
"c0060c000b11f440c5cc1675ec23820a67eae2cca7a881d430b78109d707b543"
|
||||||
else sys.error(s"Unsupported OS: ${Properties.osName}")
|
else sys.error(s"Unsupported OS: ${Properties.osName}")
|
||||||
|
|
||||||
if (hash.equalsIgnoreCase(expectedHash)) {
|
if (hash.equalsIgnoreCase(expectedHash)) {
|
||||||
|
|
|
@ -753,7 +753,8 @@ message SendRequest {
|
||||||
The maximum number of satoshis that will be paid as a fee of the payment.
|
The maximum number of satoshis that will be paid as a fee of the payment.
|
||||||
This value can be represented either as a percentage of the amount being
|
This value can be represented either as a percentage of the amount being
|
||||||
sent, or as a fixed amount of the maximum fee the user is willing the pay to
|
sent, or as a fixed amount of the maximum fee the user is willing the pay to
|
||||||
send the payment.
|
send the payment. If not specified, lnd will use a default value of 100%
|
||||||
|
fees for small amounts (<=1k sat) or 5% fees for larger amounts.
|
||||||
*/
|
*/
|
||||||
FeeLimit fee_limit = 8;
|
FeeLimit fee_limit = 8;
|
||||||
|
|
||||||
|
@ -2312,6 +2313,9 @@ message PendingChannelsResponse {
|
||||||
|
|
||||||
// Total number of forwarding packages created in this channel.
|
// Total number of forwarding packages created in this channel.
|
||||||
int64 num_forwarding_packages = 10;
|
int64 num_forwarding_packages = 10;
|
||||||
|
|
||||||
|
// A set of flags showing the current state of the channel.
|
||||||
|
string chan_status_flags = 11;
|
||||||
}
|
}
|
||||||
|
|
||||||
message PendingOpenChannel {
|
message PendingOpenChannel {
|
||||||
|
@ -2353,6 +2357,9 @@ message PendingChannelsResponse {
|
||||||
this point.
|
this point.
|
||||||
*/
|
*/
|
||||||
Commitments commitments = 3;
|
Commitments commitments = 3;
|
||||||
|
|
||||||
|
// The transaction id of the closing transaction
|
||||||
|
string closing_txid = 4;
|
||||||
}
|
}
|
||||||
|
|
||||||
message Commitments {
|
message Commitments {
|
||||||
|
@ -2565,7 +2572,8 @@ message QueryRoutesRequest {
|
||||||
The maximum number of satoshis that will be paid as a fee of the payment.
|
The maximum number of satoshis that will be paid as a fee of the payment.
|
||||||
This value can be represented either as a percentage of the amount being
|
This value can be represented either as a percentage of the amount being
|
||||||
sent, or as a fixed amount of the maximum fee the user is willing the pay to
|
sent, or as a fixed amount of the maximum fee the user is willing the pay to
|
||||||
send the payment.
|
send the payment. If not specified, lnd will use a default value of 100%
|
||||||
|
fees for small amounts (<=1k sat) or 5% fees for larger amounts.
|
||||||
*/
|
*/
|
||||||
FeeLimit fee_limit = 5;
|
FeeLimit fee_limit = 5;
|
||||||
|
|
||||||
|
@ -3742,6 +3750,9 @@ message PolicyUpdateRequest {
|
||||||
// goes up to 6 decimal places, so 1e-6.
|
// goes up to 6 decimal places, so 1e-6.
|
||||||
double fee_rate = 4;
|
double fee_rate = 4;
|
||||||
|
|
||||||
|
// The effective fee rate in micro-satoshis (parts per million).
|
||||||
|
uint32 fee_rate_ppm = 9;
|
||||||
|
|
||||||
// The required timelock delta for HTLCs forwarded over the channel.
|
// The required timelock delta for HTLCs forwarded over the channel.
|
||||||
uint32 time_lock_delta = 5;
|
uint32 time_lock_delta = 5;
|
||||||
|
|
||||||
|
|
|
@ -200,6 +200,21 @@ service WalletKit {
|
||||||
*/
|
*/
|
||||||
rpc FundPsbt (FundPsbtRequest) returns (FundPsbtResponse);
|
rpc FundPsbt (FundPsbtRequest) returns (FundPsbtResponse);
|
||||||
|
|
||||||
|
/*
|
||||||
|
SignPsbt expects a partial transaction with all inputs and outputs fully
|
||||||
|
declared and tries to sign all unsigned inputs that have all required fields
|
||||||
|
(UTXO information, BIP32 derivation information, witness or sig scripts)
|
||||||
|
set.
|
||||||
|
If no error is returned, the PSBT is ready to be given to the next signer or
|
||||||
|
to be finalized if lnd was the last signer.
|
||||||
|
|
||||||
|
NOTE: This RPC only signs inputs (and only those it can sign), it does not
|
||||||
|
perform any other tasks (such as coin selection, UTXO locking or
|
||||||
|
input/output/fee value validation, PSBT finalization). Any input that is
|
||||||
|
incomplete will be skipped.
|
||||||
|
*/
|
||||||
|
rpc SignPsbt (SignPsbtRequest) returns (SignPsbtResponse);
|
||||||
|
|
||||||
/*
|
/*
|
||||||
FinalizePsbt expects a partial transaction with all inputs and outputs fully
|
FinalizePsbt expects a partial transaction with all inputs and outputs fully
|
||||||
declared and tries to sign all inputs that belong to the wallet. Lnd must be
|
declared and tries to sign all inputs that belong to the wallet. Lnd must be
|
||||||
|
@ -820,6 +835,19 @@ message UtxoLease {
|
||||||
uint64 expiration = 3;
|
uint64 expiration = 3;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
message SignPsbtRequest {
|
||||||
|
/*
|
||||||
|
The PSBT that should be signed. The PSBT must contain all required inputs,
|
||||||
|
outputs, UTXO data and custom fields required to identify the signing key.
|
||||||
|
*/
|
||||||
|
bytes funded_psbt = 1;
|
||||||
|
}
|
||||||
|
|
||||||
|
message SignPsbtResponse {
|
||||||
|
// The signed transaction in PSBT format.
|
||||||
|
bytes signed_psbt = 1;
|
||||||
|
}
|
||||||
|
|
||||||
message FinalizePsbtRequest {
|
message FinalizePsbtRequest {
|
||||||
/*
|
/*
|
||||||
A PSBT that should be signed and finalized. The PSBT must contain all
|
A PSBT that should be signed and finalized. The PSBT must contain all
|
||||||
|
|
|
@ -856,7 +856,7 @@ object LndRpcClient {
|
||||||
hex"8c45ee0b90e3afd0fb4d6f39afa3c5d551ee5f2c7ac2d06820ed3d16582186d2"
|
hex"8c45ee0b90e3afd0fb4d6f39afa3c5d551ee5f2c7ac2d06820ed3d16582186d2"
|
||||||
|
|
||||||
/** The current version we support of Lnd */
|
/** The current version we support of Lnd */
|
||||||
private[bitcoins] val version = "v0.14.1-beta"
|
private[bitcoins] val version = "v0.14.2-beta"
|
||||||
|
|
||||||
/** Key used for adding the macaroon to the gRPC header */
|
/** Key used for adding the macaroon to the gRPC header */
|
||||||
private[lnd] val macaroonKey = "macaroon"
|
private[lnd] val macaroonKey = "macaroon"
|
||||||
|
|
Loading…
Add table
Reference in a new issue