Comparing version 2.2.0 to 2.2.1
const {safeTokens} = require('./../bolt00'); | ||
const asDateString = ms => new Date(ms).toISOString(); | ||
const defaultCltvDelta = 9; | ||
const defaultCltvDelta = 18; | ||
const defaultExpireSeconds = 3600; | ||
@@ -6,0 +6,0 @@ const defaultMtokens = '0'; |
# Versions | ||
## 2.1.1 | ||
- `parsePaymentRequest`: Change default CLTV delta from 9 to 18 | ||
## 2.1.0 | ||
@@ -4,0 +8,0 @@ |
@@ -8,3 +8,3 @@ { | ||
"bolt07": "1.8.2", | ||
"bolt09": "0.2.3", | ||
"bolt09": "0.2.4", | ||
"bech32": "2.0.0", | ||
@@ -39,3 +39,3 @@ "bitcoinjs-lib": "6.0.2", | ||
}, | ||
"version": "2.2.0" | ||
"version": "2.2.1" | ||
} |
@@ -295,3 +295,3 @@ const {sign} = require('tiny-secp256k1'); | ||
strictSame(parsed.chain_addresses, args.chain_addresses, 'Expected fallbacks'); | ||
equal(parsed.cltv_delta, args.cltv_delta || 9, 'Request cltv is expected'); | ||
equal(parsed.cltv_delta, args.cltv_delta || 18, 'Request cltv expected'); | ||
equal(parsed.created_at, args.created_at, 'Request create_at is expected'); | ||
@@ -298,0 +298,0 @@ equal(parsed.description, args.description, 'Req description expected'); |
@@ -45,3 +45,3 @@ const {test} = require('@alexbosworth/tap'); | ||
expected: { | ||
cltv_delta: 9, | ||
cltv_delta: 18, | ||
created_at: new Date(1496314658 * msPerSec).toISOString(), | ||
@@ -63,3 +63,3 @@ description: 'Please consider supporting this project', | ||
expected: { | ||
cltv_delta: 9, | ||
cltv_delta: 18, | ||
created_at: new Date(1496314658 * msPerSec).toISOString(), | ||
@@ -81,3 +81,3 @@ description: '1 cup coffee', | ||
expected: { | ||
cltv_delta: 9, | ||
cltv_delta: 18, | ||
created_at: new Date(1496314658 * msPerSec).toISOString(), | ||
@@ -99,3 +99,3 @@ description: 'ナンセンス 1杯', | ||
expected: { | ||
cltv_delta: 9, | ||
cltv_delta: 18, | ||
created_at: new Date(1496314658 * msPerSec).toISOString(), | ||
@@ -118,3 +118,3 @@ description_hash: '3925b6f67e2c340036ed12093dd44e0368df1b6ea26c53dbe4811f58fd5db8c1', | ||
chain_addresses: ['1RustyRX2oai4EYYDpQGWvEL62BBGqN9T'], | ||
cltv_delta: 9, | ||
cltv_delta: 18, | ||
created_at: new Date(1496314658 * msPerSec).toISOString(), | ||
@@ -158,3 +158,3 @@ description_hash: '3925b6f67e2c340036ed12093dd44e0368df1b6ea26c53dbe4811f58fd5db8c1', | ||
chain_addresses: ['3EktnHQD7RiAE6uzMj2ZifT9YgRrkSgzQX'], | ||
cltv_delta: 9, | ||
cltv_delta: 18, | ||
created_at: new Date(1496314658 * msPerSec).toISOString(), | ||
@@ -177,3 +177,3 @@ description_hash: '3925b6f67e2c340036ed12093dd44e0368df1b6ea26c53dbe4811f58fd5db8c1', | ||
chain_addresses: ['bc1qw508d6qejxtdg4y5r3zarvary0c5xw7kv8f3t4'], | ||
cltv_delta: 9, | ||
cltv_delta: 18, | ||
created_at: new Date(1496314658 * msPerSec).toISOString(), | ||
@@ -196,3 +196,3 @@ description_hash: '3925b6f67e2c340036ed12093dd44e0368df1b6ea26c53dbe4811f58fd5db8c1', | ||
chain_addresses: ['bc1qrp33g0q5c5txsp9arysrx4k6zdkfs4nce4xj0gdcccefvpysxf3qccfmv3'], | ||
cltv_delta: 9, | ||
cltv_delta: 18, | ||
created_at: new Date(1496314658 * msPerSec).toISOString(), | ||
@@ -232,3 +232,3 @@ description_hash: '3925b6f67e2c340036ed12093dd44e0368df1b6ea26c53dbe4811f58fd5db8c1', | ||
chain_addresses: ['tb1qvzxxvnahw6gkj9aqpptktxpt6906cn2svvhayd'], | ||
cltv_delta: 9, | ||
cltv_delta: 18, | ||
created_at: new Date(1533923529 * msPerSec).toISOString(), | ||
@@ -262,3 +262,3 @@ description: '', | ||
expected: { | ||
cltv_delta: 9, | ||
cltv_delta: 18, | ||
created_at: new Date(1496314658 * 1e3).toISOString(), | ||
@@ -304,3 +304,3 @@ description: 'coffee beans', | ||
expected: { | ||
cltv_delta: 9, | ||
cltv_delta: 18, | ||
created_at: '2017-06-01T10:57:38.000Z', | ||
@@ -307,0 +307,0 @@ description: 'payment metadata inside', |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
100725
+ Addedbolt09@0.2.4(transitive)
- Removedbolt09@0.2.3(transitive)
Updatedbolt09@0.2.4