Janus
26fb975d78
ln: save channels in dict, warn on invoice exceeding max_htlc amount
7 years ago
ThomasV
90d5dd2df4
lnworker: separate invoice creation from payment flow
7 years ago
Janus
44ccc39fc4
ln: restore channels correctly after restart
* save funding_locked_received: if a node already sent us
funding_locked, save it to avoid superfluous messages
* use Queues instead of Futures: this ensure that we don't error if we
receive two messages of the same type, and in avoids having to delete
futures in finally blocks. A queue monitor could be added to detect
queue elements that are not popped.
* request initial routing sync: since we don't store the graph yet, it
is better to request the graph from the Peer so that we can route
* channel_state cleanup: now each channel should have a state, which is
initialized to OPENING and only marked OPEN once we have verified that
the funding_tx has been mined
7 years ago
ThomasV
eb4d151324
fix channel_reestablish
7 years ago
ThomasV
951047b3d8
lnbase: fix read_message
7 years ago
Janus
c9ac5d1376
ln: restore functionality
7 years ago
Janus
9466080c25
ln: save remote node_id in channel
7 years ago
SomberNight
5379c36e70
split lnrouter from lnbase
7 years ago
SomberNight
03f9da4f22
remove function H256
7 years ago
ThomasV
a9f87e3466
move on_funding_locked to lnworker
7 years ago
ThomasV
753d6e104b
lightning: add payment methods to lnworker
7 years ago
ThomasV
2ae488df18
lightning: move lnworker code to its own module
7 years ago
ThomasV
1cb4a0e2b1
update lnbase after crypto refactoring
7 years ago
Janus
a9d9ec91e0
lnbase: remove lnbase stub
7 years ago
ThomasV
f82249f47d
lnbase: pass password to mktx
7 years ago
ThomasV
ae66b88a02
qt: fix password passed to open_channel, cleanup
7 years ago
Janus
b889c9fd29
lnbase: mSAT hygiene, multiple multi-hop payments can be received
7 years ago
Janus
d290e62e9c
kivy: port lightning ui to lnbase
7 years ago
Janus
c2956948cd
lightning: remove hub based approach, port qt gui to lnbase
7 years ago
Janus
bba33d46db
lnbase: use small buffer when reading, support new_channel without payment in online test, send channel_reserve_satoshis
7 years ago
Janus
30506ec243
lnbase: use correct cltv_expiry calculation (use invoice)
7 years ago
Janus
d4708980b9
lnbase: fix multi-hop payments
7 years ago
Janus
d17a5a1a3a
lnbase: fix onion-hop payload construction again (cltv currently broken)
7 years ago
Janus
ce2719d48b
lnbase: fix multi-hop fees, initial handling of received update_add_htlc during payment
7 years ago
Janus
51572c3f98
lnbase: calculate cltv_expiry for onion_packet correctly
7 years ago
Janus
1998665a02
lnbase: try multi-hop onion package, type safety
7 years ago
SomberNight
6d0c981783
PathFinder: change path element semantics from "from node, take edge" to "to get to node, use edge"
7 years ago
SomberNight
98af0e7d67
create route from path, that includes extra info needed for routing
7 years ago
SomberNight
9de5ead368
bolt-04: decryption of errors
7 years ago
Janus
9ef9bfa469
lnbase online test: use random node key when making new channel, save node key, multiple actions per invocation
7 years ago
Janus
adc7dd92e3
lnbase: fix pay(), save htlc_id's, generate onion packet correctly
7 years ago
Janus
27dc309d2a
lnbase/online_test: save short_channel_id to wallet and build onion packet with it
7 years ago
SomberNight
cb4f19f8e7
calc short_channel_id after funding locked
7 years ago
Janus
7ad08acc59
lnbase: initial 'payment to remote' attempt
7 years ago
Janus
18ae2915fe
lnbase: formatting, remove imports
7 years ago
Janus
a617cdc71c
lnbase: verify commitment tx'es again
7 years ago
Janus
3d7c107458
lnbase: infinite amount of incoming payments
7 years ago
Janus
7b335d9e45
lnbase: two payments working, temporarily disable sig check
7 years ago
Janus
d98446bbf5
lnbase: store remote revocation store, don't store all remote revocation points, verify ctn numbers in reestablish
7 years ago
Janus
54ad895a2e
lnbase: add RevocationStore test, remove unnecessary lnd helper functions
7 years ago
Janus
3b23feec3c
lnbase: compact commitment secret storage
7 years ago
Janus
b5a3b49b56
lnbase: no negative commitment number nonsense
7 years ago
Janus
64e8317ad6
lnbase: move channel commitment number increment to function
7 years ago
Janus
91d6a5af02
lnbase: receive repeated payments
7 years ago
Janus
e5f73120f6
lnbase: channel reestablishment working
7 years ago
SomberNight
9ce58ddb2e
bolt-04: implement processing of onion packets
7 years ago
SomberNight
2408792a42
minor clean-up of prev. util.xor_bytes
7 years ago
SomberNight
5ee8ab4bb5
implement bolt-04 onion packet construction
7 years ago
Janus
ef477d8a0e
lnbase: save channel details in wallet, enable running online test with reestablishment_mode
7 years ago
Janus
4783eeba68
lnbase: move waiting for funding_locked to new function, make function for signing and sig conversion
7 years ago