Skip to content

Commit

Permalink
Merge pull request #871 from SMaros/BATM-5013---LND-sendpayment-shoul…
Browse files Browse the repository at this point in the history
…d-contain-remote-transactionid

BATM-5013 - LND sendpayment should contain remote transaction id - Fix
  • Loading branch information
generalbytes authored Nov 28, 2023
2 parents 5cfee99 + fd00b56 commit aa663ce
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ private Payment.FeeLimit getFeeLimit(String fee) {
private static Map<Long, byte[]> getCustomRecords(String description) {
Map<Long, byte[]> customRecords = new HashMap<>();
if (description != null && !description.trim().isEmpty()) {
customRecords.put(1L, description.getBytes());
customRecords.put(70000L, description.getBytes());
}
return customRecords;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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 + '}';
}
Expand Down

0 comments on commit aa663ce

Please sign in to comment.