From fc687f9fc0efe66fd96cf6f9858e8d4c95bd0690 Mon Sep 17 00:00:00 2001 From: Wouter Samaey Date: Wed, 5 Jan 2022 12:23:21 +0100 Subject: [PATCH] Fixed LND admin macaroon hexdump command (#3252) Argument `-plain` didn't work for me in the LND container, but `-p` did. The error I got was `xxd: invalid number 'ain'` Added the `-c 256` for better readability. This param maxes out at 256. --- BTCPayServer/Views/Stores/SetupLightningNode.cshtml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/BTCPayServer/Views/Stores/SetupLightningNode.cshtml b/BTCPayServer/Views/Stores/SetupLightningNode.cshtml index cf0188a7b..0f5e5980b 100644 --- a/BTCPayServer/Views/Stores/SetupLightningNode.cshtml +++ b/BTCPayServer/Views/Stores/SetupLightningNode.cshtml @@ -174,7 +174,7 @@ The path to the LND data directory may vary, the following examples assume /root/.lnd.

The macaroon parameter expects the HEX value, it can be obtained using this command:

-
xxd -plain /root/.lnd/data/chain/bitcoin/mainnet/admin.macaroon | tr -d '\n'
+
xxd -p -c 256 /root/.lnd/data/chain/bitcoin/mainnet/admin.macaroon | tr -d '\n'

You can omit certthumbprint if the certificate is trusted by your machine.
The certthumbprint can be obtained using this command: