From f70f7a89ac6bfdaf5bb09bbf0f8c4945da0c0867 Mon Sep 17 00:00:00 2001 From: Maros Silady Date: Tue, 28 Nov 2023 16:37:04 +0100 Subject: [PATCH 1/2] BATM-5013 - LND sendpayment should contain remote transaction id - Fix --- .../extra/lightningbitcoin/wallets/lnd/dto/Payment.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/server_extensions_extra/src/main/java/com/generalbytes/batm/server/extensions/extra/lightningbitcoin/wallets/lnd/dto/Payment.java b/server_extensions_extra/src/main/java/com/generalbytes/batm/server/extensions/extra/lightningbitcoin/wallets/lnd/dto/Payment.java index f14ef05fe..d8f788596 100644 --- a/server_extensions_extra/src/main/java/com/generalbytes/batm/server/extensions/extra/lightningbitcoin/wallets/lnd/dto/Payment.java +++ b/server_extensions_extra/src/main/java/com/generalbytes/batm/server/extensions/extra/lightningbitcoin/wallets/lnd/dto/Payment.java @@ -64,8 +64,8 @@ public String toString() { @Override public String toString() { String rid = ""; - if (dest_custom_records != null && !dest_custom_records.containsKey(1L)) { - rid = new String(dest_custom_records.get(1L), StandardCharsets.UTF_8); + if (dest_custom_records != null && !dest_custom_records.containsKey(70000L)) { + rid = new String(dest_custom_records.get(70000L), StandardCharsets.UTF_8); } return "Payment{" + amt + " sat, fee limit: " + fee_limit + " to " + payment_request + ", rid: " + rid + '}'; } From fd00b56b85c801e007c7fb9a5b61755242a92e68 Mon Sep 17 00:00:00 2001 From: Maros Silady Date: Tue, 28 Nov 2023 22:44:34 +0100 Subject: [PATCH 2/2] BATM-5013 - LND sendpayment should contain remote transaction id - Fix getCustomRecords --- .../extra/lightningbitcoin/wallets/lnd/LndWallet.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server_extensions_extra/src/main/java/com/generalbytes/batm/server/extensions/extra/lightningbitcoin/wallets/lnd/LndWallet.java b/server_extensions_extra/src/main/java/com/generalbytes/batm/server/extensions/extra/lightningbitcoin/wallets/lnd/LndWallet.java index 0471730ec..e99966b48 100644 --- a/server_extensions_extra/src/main/java/com/generalbytes/batm/server/extensions/extra/lightningbitcoin/wallets/lnd/LndWallet.java +++ b/server_extensions_extra/src/main/java/com/generalbytes/batm/server/extensions/extra/lightningbitcoin/wallets/lnd/LndWallet.java @@ -116,7 +116,7 @@ private Payment.FeeLimit getFeeLimit(String fee) { private static Map getCustomRecords(String description) { Map customRecords = new HashMap<>(); if (description != null && !description.trim().isEmpty()) { - customRecords.put(1L, description.getBytes()); + customRecords.put(70000L, description.getBytes()); } return customRecords; }