Commit Graph

20 Commits

Author SHA1 Message Date
Roei Erez
b83019e5c6 Remove invalid fake channels check.
We no longer need to check for confirmed channels
so now we return empty map instead to satisfy the client.
This is untill we will release a new client that doesn't use this endpoint at all.
2023-01-18 10:31:49 +02:00
Jesse de Wit
94ee938893 support multiple nodes simultaneously 2023-01-06 12:30:54 +01:00
Jesse de Wit
a7631dcddf make prepared statement understand bigint 2023-01-03 19:58:02 +01:00
Jesse de Wit
0e98769d89 pass forward_to to htlc accepted response 2022-12-08 13:38:22 +01:00
Jesse de Wit
8b5f5f80b7 Make openChannel use LightningClient 2022-11-17 15:36:17 +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
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
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
ad31aa8921 Synchronize channels to DB after each block and check channels from DB 2021-05-25 12:52:00 +03:00
Yaacov Akiba Slama
133c87ec27 Don't fail when adding twice the same payment_hash 2021-05-09 21:07:23 +03:00
Yaacov Akiba Slama
ee75d838a1 Add field last_update to channels 2021-04-05 18:31:02 +03:00
Yaacov Akiba Slama
8ca6ca87fd Synchronize private channels from lnd to the channels table every hour 2021-03-19 13:47:36 +02:00
Yaacov Akiba Slama
f3a66cc6fb Fix typo in the field name 2021-02-05 10:10:10 +02:00
Yaacov Akiba Slama
aca8c4f2c0 Add forwarding history sync from lnd to db 2021-02-05 07:11:53 +02:00
Yaacov Akiba Slama
f407ec9e9c Handle interception probing payments
probing payments uses a probing payment hash which is:
sha256("probing-01:" || payment_hash).

When the interceptor detects such a hash for a payment which is supposed
to trigger a channel creation , it checks if the destination is online,
and if online, fails with INCORRECT_OR_UNKNOWN_PAYMENT_DETAILS error in
order to let the payer knows that the payment would be successful.
2020-11-08 17:46:26 +02:00
Yaacov Akiba Slama
987e6a1ff5 Wait for the new channel to be active before resuming the htlc 2020-08-11 17:16:04 +03:00
Yaacov Akiba Slama
26cd383aa9 Add intercept functionality to lspd to create channels on the fly. 2020-08-06 16:24:29 +03:00