Commit Graph

117 Commits

Author SHA1 Message Date
Jesse de Wit
fecb4d7fbc add a test for regular forwards 2022-12-22 11:46:24 +01:00
Jesse de Wit
615bdb8bb5 test no onchain balance temp chan failure 2022-12-19 13:26:36 +01:00
Jesse de Wit
434d2431d2 fix amount_msat is a number 2022-12-19 11:39:12 +01:00
Jesse de Wit
3f2cf68a13 return 'pretend' amount from calc func 2022-12-19 10:48:52 +01:00
Jesse de Wit
1730f04110 retry payment after Bob is online again 2022-12-16 21:33:01 +01:00
Jesse de Wit
649086dd0a add test for offline node + fix cln failurecode 2022-12-16 21:03:20 +01:00
Jesse de Wit
f538f75d2c refactor to allow start/stop 2022-12-16 18:22:04 +01:00
Jesse de Wit
89a68fed4f update readme for itest 2022-12-16 11:36:51 +01:00
Jesse de Wit
08f2f73b5d make LND tests work 2022-12-16 11:36:51 +01:00
Jesse de Wit
4b6eaf3773 use time.After instead of sleep 2022-12-16 09:41:55 +01:00
Jesse de Wit
336297da7b shared testparams 2022-12-16 09:41:43 +01:00
Jesse de Wit
18af318798 use ecies for registerpayment in itest 2022-12-15 15:25:45 +01:00
Jesse de Wit
5cee5f3ec9 also encrypt using ecies 2022-12-15 15:15:10 +01:00
Jesse de Wit
8048dae0c5 attempt ecies for decryption 2022-12-15 15:04:41 +01:00
Jesse de Wit
ec3b4d2f0c update docs with cln and integration tests 2022-12-12 10:05:11 +01:00
Jesse de Wit
7c803d12bf add a test for zero reserve 2022-12-10 11:41:52 +01:00
Jesse de Wit
9040351c8c use zero reserve for all channel opens with cln 2022-12-08 15:00:16 +01:00
Jesse de Wit
0e98769d89 pass forward_to to htlc accepted response 2022-12-08 13:38:22 +01:00
Jesse de Wit
e31a4c43f3 reusable open channel logic and share macaroon 2022-12-03 10:47:47 +01:00
Jesse de Wit
b3c5b94531 run combined tests for LND and CLN 2022-12-03 10:43:12 +01:00
Jesse de Wit
d186e06323 add itests 2022-11-24 09:15:20 +01:00
Jesse de Wit
4cc9fcbc1c return 0 shortchannelid by default 2022-11-21 14:24:53 +01:00
Jesse de Wit
ceb3ddb1ee lock on payment hash 2022-11-21 14:24:29 +01:00
Jesse de Wit
daa70c5f0e hex encode instead of channelpoint string 2022-11-21 14:24:07 +01:00
Jesse de Wit
68d7741d3a create client in interceptor startup 2022-11-21 14:23:33 +01:00
Jesse de Wit
c57795643b add cln to main 2022-11-18 16:51:36 +01:00
Jesse de Wit
5b864f9cce implement cln client and interceptor 2022-11-18 16:51:36 +01:00
Jesse de Wit
2de54bf2dd properly implement stop and client lnd intercept 2022-11-18 16:50:17 +01:00
Jesse de Wit
6ad2f71edc add intercept with code 2022-11-18 16:50:17 +01:00
Jesse de Wit
9531c713c1 cancel on all code paths 2022-11-18 09:55:38 +01:00
Jesse de Wit
c1a17bc296 A little prettier start and stop 2022-11-17 17:13:09 +01:00
Jesse de Wit
5cfcd41f32 bytes.Equal instead of compare 2022-11-17 17:13:09 +01:00
Jesse de Wit
3d6d5bfb9d Pull out generic interception logic 2022-11-17 17:13:09 +01:00
Jesse de Wit
c738f817ac Move main method to seperate file 2022-11-17 15:38:33 +01:00
Jesse de Wit
d6b30f1397 Move getChannel to LightningClient 2022-11-17 15:36:18 +01:00
Jesse de Wit
ecfb878860 Move isConnected to LightningClient 2022-11-17 15:36:17 +01:00
Jesse de Wit
8b5f5f80b7 Make openChannel use LightningClient 2022-11-17 15:36:17 +01:00
Jesse de Wit
126754281e Start and stop methods for the server 2022-11-17 15:36:17 +01:00
Jesse de Wit
465faf8f2c use LndClient 2022-11-17 15:36:17 +01:00
Jesse de Wit
b254f4d985 add LndClient implementation 2022-11-17 15:36:17 +01:00
Jesse de Wit
6f292003f9 add LightningClient interface 2022-11-17 15:36:07 +01:00
Yaacov Akiba Slama
02ceb92286 Fix insertChannel in the ON CONFLICT arm 2022-10-03 11:10:38 +03:00
Yaacov Akiba Slama
80032bed08 Fix logging in insertChannel 2022-10-03 11:09:49 +03:00
Yaacov Akiba Slama
4e7c6d9aff Use Anchors commitment transaction when opening a channel 2022-10-03 11:08:57 +03:00
Yaacov Akiba Slama
ce08436d24 Use new zeroconf mechanism from lnd 15.1 2022-09-22 21:17:06 +03:00
Yaacov Akiba Slama
7ceb5bf988 Add some logging in insertChannel 2022-09-21 12:18:37 +03:00
Yaacov Akiba Slama
3a4892ce8a Add data migrations 2022-09-19 22:32:19 +03:00
Yaacov Akiba Slama
6594e3de27 Convert between int64 (in postgresql) and uint64 (short channel id) 2022-09-19 20:47:21 +03:00
Yaacov Akiba Slama
e16541c77d Use initial_chanid and confirmed_chanid to handle zerconf channels 2022-09-19 17:39:09 +03:00
Yaacov Akiba Slama
1d6e5ca99f Update lnd to 15.1 2022-09-18 21:34:59 +03:00