1
0
Fork 0
mirror of https://github.com/ACINQ/eclair.git synced 2025-03-06 10:32:08 +01:00
Commit graph

177 commits

Author SHA1 Message Date
sstone
14da69a612 router: consistency fixes
- use the same signature for main and mainWithLogs
- remove useless fields from Router.State
- start in 'uninitialized' mode and wait for State message (either empty or retrieved from db)
2017-02-28 15:14:03 +01:00
pm47
4796ad8bc4 removed ChannelParams 2017-02-27 23:52:08 +01:00
pm47
074f79f83b merged from wip-persist3 2017-02-27 23:24:13 +01:00
pm47
103daf90aa reworked channel events 2017-02-27 23:17:06 +01:00
sstone
eaca287922 move db into nodeParams 2017-02-27 18:26:41 +01:00
sstone
817704f5da Merge branch 'wip-bolts' into wip-persist3 2017-02-27 16:35:01 +01:00
pm47
b8379ed461 replace absolute reserveSatoshi in nodeParams by a ratio 2017-02-27 15:45:21 +01:00
pm47
5b718bffac factored state tests initialization 2017-02-27 15:26:04 +01:00
sstone
f6289795d2 ShaChain: add scodec serializer 2017-02-26 23:26:16 +01:00
sstone
967404a82d persist channels, peers, and router
- channels are pesisted using the transition callback
2017-02-26 19:30:13 +01:00
pm47
24a3801961 removed Globals, nodeParams are now passed in constructors 2017-02-26 17:47:19 +01:00
pm47
89db03fe91 added a NodeParams class 2017-02-26 16:06:41 +01:00
sstone
1826fb6e6a channel: use transition change callback to send outgoing messages 2017-02-25 21:25:21 +01:00
pm47
810aed301d added capacity to ChannelDiscovered event 2017-02-24 16:01:21 +01:00
pm47
550707004d using bits instead of bytes for features 2017-02-24 13:23:43 +01:00
pm47
c9d6a20954 updated api 2017-02-23 18:46:19 +01:00
pm47
107beee854 merged from wip-disconnect 2017-02-23 11:56:27 +01:00
pm47
6ebe5b4ff2 made commitment functions no-op when replaying known messages, improved fuzzy tests 2017-02-23 11:50:58 +01:00
pm47
1ef1a4a6a1 added (manual) test on spending of csv tx 2017-02-22 17:03:09 +01:00
pm47
169add4c02 now handling the case where remote publishes its 'next' commit 2017-02-22 13:57:13 +01:00
sstone
27b41a580f bolt 3: match against latest tx test vectors 2017-02-20 11:39:01 +01:00
sstone
620fdd78d1 Merge branch 'wip-bolts' of https://github.com/ACINQ/eclair into wip-bolts 2017-02-20 10:43:22 +01:00
pm47
1eea11cf44 NORMAL<->OFFLINE now fully supported, added fuzzy tests 2017-02-20 00:31:21 +01:00
pm47
3e1b0fe202 added fuzzy disconnection test (wip) 2017-02-17 20:46:35 +01:00
pm47
7e9d07b9b4 merged from wip-bolts 2017-02-17 19:07:54 +01:00
pm47
559afff522 automatically sign back on revocation when necessary, removed scheduled sig 2017-02-17 18:52:07 +01:00
pm47
a0318d6ade added support for disconnections (wip) 2017-02-16 19:03:02 +01:00
pm47
27572c519e DATA_WAIT_FOR_FUNDING_LOCKED_INTERNAL -> DATA_WAIT_FOR_FUNDING_CONFIRMED 2017-02-16 15:15:03 +01:00
sstone
4bfec41041 bolt 3 test vectors: formatting fixes 2017-02-16 10:28:57 +01:00
pm47
1e58a69918 WAIT_FOR_FUNDING_LOCKED_INTERNAL->WAIT_FOR_FUNDING_CONFIRMED 2017-02-15 19:46:58 +01:00
pm47
a43dc181c6 removed special handling of CMD_CLOSE from WAIT_FOR_FUNDING_LOCKED_INTERNAL->NORMAL 2017-02-15 19:39:18 +01:00
pm47
4e7021d7c8 fixed fee not taken into account when offering htlcs 2017-02-15 18:37:02 +01:00
pm47
7da6df008a merged from wip-bolts 2017-02-15 18:13:22 +01:00
pm47
7d79f65bf2 channels are now multiplexed over single connections between nodes 2017-02-15 18:08:44 +01:00
sstone
fc9ccf8524 bolt 3: improve reference test
format test output to match the reference test vectors
2017-02-15 14:20:51 +01:00
pm47
e2fc3fbecc added support for 'initial_routing_sync' feature bit 2017-02-13 16:15:32 +01:00
pm47
6bd14bb089 added AnnouncementSignatures message, added support for feature bits 2017-02-13 14:45:26 +01:00
pm47
e8a74899f3 now take fees into account when accepting htlcs 2017-02-13 12:04:06 +01:00
Pierre-Marie Padiou
a3b906898b Refactored fee calculation (added trim functions) (#25)
* refactored fee calculation (added trim functions)

* now running BOLT 2 fee tests automatically
2017-02-13 11:11:54 +01:00
pm47
c72a2a5d8d router now checks announcement signatures 2017-02-10 18:05:06 +01:00
pm47
2b479aade6 enforcing sequential zero-based htlc ids 2017-02-10 16:55:43 +01:00
pm47
cb5189b3c7 added support for htlc-minimum-msat parameter 2017-02-10 16:01:34 +01:00
pm47
2d223ea51c added support for max-accepted-htlcs parameter 2017-02-10 15:50:07 +01:00
pm47
2a035bd005 added support for max-htlc-value-in-flight-msat parameter 2017-02-10 15:22:43 +01:00
pm47
1e10074f27 added support for channel-reserve parameters 2017-02-10 14:36:03 +01:00
pm47
2d5d8a00a9 punishment -> penalty 2017-02-09 15:56:58 +01:00
pm47
51fd685595 fixed bug in payment-preimage extraction, handle failures in uniclose tx generation 2017-02-09 14:04:08 +01:00
pm47
f19231e883 make it an error to have an htlc expiry < 3 blocks 2017-02-09 13:58:15 +01:00
sstone
4b6dca7a0a make SignTransactionResponse a static class 2017-02-09 11:44:27 +01:00
pm47
ba515a921a relayer now extracts preimages from the blockchain 2017-02-07 15:12:31 +01:00