routing: fix incorrect expiry values in spec_example.json

In this commit, we fix the incorrect expiry values in the
spec_example.json test file. Many of the time locks were incorrect which
allowed bugs within the path finding logic related to CLTV deltas to go
un-detected.
This commit is contained in:
Olaoluwa Osuntokun committed 2018-06-26 17:29:42 -07:00
1 parent 6c986864ff
commit 6a6c29cd00
1 file changed
+7 -7
+7 -7
View File
@@ -30,7 +30,7 @@
"channel_id": 12345,
"channel_point": "89dc56859c6a082d15ba1a7f6cb6be3fea62e1746e2cb8497b1189155c21a233:0",
"flags": 1,
"expiry": 20,
"expiry": 10,
"min_htlc": 1,
"fee_base_msat": 100,
"fee_rate": 1000,
@@ -43,7 +43,7 @@
"channel_id": 12345,
"channel_point": "89dc56859c6a082d15ba1a7f6cb6be3fea62e1746e2cb8497b1189155c21a233:0",
"flags": 0,
"expiry": 10,
"expiry": 20,
"min_htlc": 1,
"fee_base_msat": 200,
"fee_rate": 2000,
@@ -56,7 +56,7 @@
"channel_id": 12345839,
"channel_point": "89dc56859c6a082d15ba1a7f6cb6be3fea62e1746e2cb8497b1189155c21a233:0",
"flags": 1,
"expiry": 40,
"expiry": 10,
"min_htlc": 1,
"fee_base_msat": 100,
"fee_rate": 1000,
@@ -69,7 +69,7 @@
"channel_id": 12345839,
"channel_point": "89dc56859c6a082d15ba1a7f6cb6be3fea62e1746e2cb8497b1189155c21a233:0",
"flags": 0,
"expiry": 10,
"expiry": 40,
"min_htlc": 1,
"fee_base_msat": 400,
"fee_rate": 4000,
@@ -95,7 +95,7 @@
"channel_id": 1234583,
"channel_point": "89dc56859c6a082d15ba1a7f6cb6be3fea62e1746e2cb8497b1189155c21a233:0",
"flags": 1,
"expiry": 40,
"expiry": 30,
"min_htlc": 1,
"fee_base_msat": 300,
"fee_rate": 3000,
@@ -108,7 +108,7 @@
"channel_id": 1234589,
"channel_point": "89dc56859c6a082d15ba1a7f6cb6be3fea62e1746e2cb8497b1189155c21a233:0",
"flags": 1,
"expiry": 20,
"expiry": 30,
"min_htlc": 1,
"fee_base_msat": 300,
"fee_rate": 3000,
@@ -121,7 +121,7 @@
"channel_id": 1234589,
"channel_point": "89dc56859c6a082d15ba1a7f6cb6be3fea62e1746e2cb8497b1189155c21a233:0",
"flags": 0,
"expiry": 30,
"expiry": 20,
"min_htlc": 1,
"fee_base_msat": 200,
"fee_rate": 2000,