Skip to content

Commit

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

BATM-5013 - LND sendpayment should contain remote transaction id - Fix
  • Loading branch information
Houskov authored Nov 29, 2023
2 parents d4d3f79 + d952ba6 commit c575e2a
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# buildscript - project id
projectGroup=com.generalbytes.batm.public
projectVersion=1.2.3
projectVersion=1.2.4

# buildscript - common dependency versions
bitrafaelVersion=1.0.44
Expand Down
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 c575e2a

Please sign in to comment.