lightning 5.10.0 → 5.10.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,9 @@
1
1
  # Versions
2
2
 
3
+ ## 5.10.1
4
+
5
+ - Always use TLV when paying along routes
6
+
3
7
  ## 5.10.0
4
8
 
5
9
  - `signTransaction`: Add `spending` attribute for specifying external inputs
@@ -60,6 +60,7 @@ module.exports = args => {
60
60
  fee: millitokensAsTokens(args.fee_mtokens).toString(),
61
61
  fee_msat: args.fee_mtokens,
62
62
  pub_key: args.public_key,
63
+ tlv_payload: true,
63
64
  };
64
65
 
65
66
  // Exit early when there are no messages to encode in this hop
@@ -67,9 +68,6 @@ module.exports = args => {
67
68
  return hop;
68
69
  }
69
70
 
70
- // Set custom TLV payload records for this hop
71
- hop.tlv_payload = true;
72
-
73
71
  hop.custom_records = args.messages.reduce((tlv, n) => {
74
72
  tlv[n.type] = hexAsBuffer(n.value);
75
73
 
package/package.json CHANGED
@@ -59,5 +59,5 @@
59
59
  "directory": "test/typescript"
60
60
  },
61
61
  "types": "index.d.ts",
62
- "version": "5.10.0"
62
+ "version": "5.10.1"
63
63
  }
@@ -39,6 +39,7 @@ const tests = [
39
39
  fee: '1',
40
40
  fee_msat: '1000',
41
41
  pub_key: 'public_key',
42
+ tlv_payload: true,
42
43
  },
43
44
  },
44
45
  {