mirror of
https://github.com/bitcoin-s/bitcoin-s.git
synced 2025-03-03 10:46:42 +01:00
Upgrade lnd to 0.16.4
(#5194)
* Upgrade lnd to 0.16.4 * fix the rest of the hashes * Fix version * Fix queryroutes cltv delta param from 40 -> 80 * update doc versions
This commit is contained in:
parent
e423de01e1
commit
008dd42a08
4 changed files with 10 additions and 10 deletions
|
@ -5,7 +5,7 @@ title: LND
|
|||
|
||||
This is an RPC client for [LND](https://github.com/LightningNetwork/lnd). It assumes that a bitcoind instance is running.
|
||||
|
||||
Currently, this RPC client is written for [v0.14.0](https://github.com/lightningnetwork/lnd/releases/tag/v0.14.0-beta) version of LND.
|
||||
Currently, this RPC client is written for [v0.16.4](https://github.com/lightningnetwork/lnd/releases/tag/v0.14.0-beta) version of LND.
|
||||
|
||||
## Configuration of LND
|
||||
|
||||
|
@ -17,7 +17,7 @@ You can find the configuration we use for our testing infrastructure for lnd [he
|
|||
|
||||
You need to download the binaries from the [LND's github](https://github.com/lightningnetwork/lnd/releases/tag/v0.14.0-beta).
|
||||
|
||||
To run lnd by unzipping the `lnd-linux-amd64-v0.14.0-beta.tar.gz` (or whichever platform you are on) and then running
|
||||
To run lnd by unzipping the `lnd-linux-amd64-v0.16.4-beta.tar.gz` (or whichever platform you are on) and then running
|
||||
|
||||
```bash
|
||||
$ ./lnd-linux-amd64-v0.14.0-beta/lnd
|
||||
|
@ -42,7 +42,7 @@ implicit val system = ActorSystem(s"lnd-rpc-${System.currentTimeMillis}")
|
|||
implicit val ec = system.dispatcher
|
||||
|
||||
val datadirPath = Paths.get("path", "to", "datadir")
|
||||
val binaryPath = Paths.get("path", "to", "lnd-linux-amd64-v0.14.0-beta", "lnd")
|
||||
val binaryPath = Paths.get("path", "to", "lnd-linux-amd64-v0.16.4-beta", "lnd")
|
||||
val instance = LndInstanceLocal.fromDataDir(datadirPath.toFile)
|
||||
val client = new LndRpcClient(instance, Some(binaryPath.toFile))
|
||||
|
||||
|
|
|
@ -39,7 +39,7 @@ TaskKeys.downloadLnd := {
|
|||
Files.createDirectories(binaryDir)
|
||||
}
|
||||
|
||||
val version = "0.16.0-beta"
|
||||
val version = "0.16.4-beta"
|
||||
|
||||
val (platform, suffix) =
|
||||
if (Properties.isLinux) ("linux-amd64", "tar.gz")
|
||||
|
@ -74,13 +74,13 @@ TaskKeys.downloadLnd := {
|
|||
|
||||
val expectedHash =
|
||||
if (Properties.isLinux)
|
||||
"21755079f73e206308277646b9c91a05648c01c9c12484be855826136e1a177f"
|
||||
"4d1bcd7a06aa09786a80f63f0793231d1aeb6b08e6678930d1c0d8110ca554da"
|
||||
else if (Properties.isMac && System.getProperty("os.arch") == "aarch64")
|
||||
"e6e3c97e6e999de8e1f440d908933a5bf7d34eba3d17cfec88709334b6b652ae"
|
||||
"1cc2a795221b938bcb42adac8e493581d3a0941f4a47acf3b1d6e620e230af70"
|
||||
else if (Properties.isMac)
|
||||
"bf7455b36c183d3a562ebf96b7f32c9a4c069b0b5d2126ea5b03e8b83935dd33"
|
||||
"10f0000e17b3f035d07ca1f03a7f0c0e984a814f77ff42fb8bacce2eacdfd648"
|
||||
else if (Properties.isWin)
|
||||
"3115f99899608a91ff28dc356ea83ebf6c4965bddcbf67e2db61bdedb8184e38"
|
||||
"c931c669169e3201ad1aa93e7efc87e053de3f97806bcb1714b88193d7e9d076"
|
||||
else sys.error(s"Unsupported OS: ${Properties.osName}")
|
||||
|
||||
val success = hash.equalsIgnoreCase(expectedHash)
|
||||
|
|
|
@ -1133,7 +1133,7 @@ object LndRpcClient {
|
|||
hex"8c45ee0b90e3afd0fb4d6f39afa3c5d551ee5f2c7ac2d06820ed3d16582186d2"
|
||||
|
||||
/** The current version we support of Lnd */
|
||||
private[bitcoins] val version = "v0.16.0-beta"
|
||||
private[bitcoins] val version = "v0.16.4-beta"
|
||||
|
||||
/** Key used for adding the macaroon to the gRPC header */
|
||||
private[lnd] val macaroonKey = "macaroon"
|
||||
|
|
|
@ -38,7 +38,7 @@ trait LndRouterClient { self: LndRpcClient =>
|
|||
val request =
|
||||
QueryRoutesRequest(pubKey = node.pubKey.hex,
|
||||
amt = amount.satoshis.toLong,
|
||||
finalCltvDelta = 40,
|
||||
finalCltvDelta = 80,
|
||||
useMissionControl = true,
|
||||
routeHints = Vector(RouteHint(hopHints)))
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue