1
0
Fork 0
mirror of https://github.com/ACINQ/eclair.git synced 2025-02-23 14:40:34 +01:00
Commit graph

349 commits

Author SHA1 Message Date
sstone
adda1a4a58 channel: stay in CLOSING mode when disconnected
there is no need to switch to OFFLINE
2017-03-01 10:11:21 +01:00
sstone
7bf5331802 router: start with an empty state if nothing was saved
if there is no persisted router record, start with an empty state
2017-03-01 10:11:21 +01:00
dpad85
074b8f7263 (gui) enable reconnect button if offline and funder 2017-02-28 19:18:56 +01:00
sstone
1172281248 Merge branch 'wip-bolts' of https://github.com/ACINQ/eclair into wip-bolts 2017-02-28 18:06:26 +01:00
sstone
254eb80b95 channel: switch to CLOSING state when restoring a CLOSING channel 2017-02-28 18:03:53 +01:00
dpad85
eb8d3022b4 (gui) host regex accepts 2017-02-28 17:25:46 +01:00
dpad85
5dc01d6922 (gui) use futures to handle new connection params
* InetAddress creation can take some time (network traffic) and should not
  be handled in the JavaFX thread (UI freeze)
2017-02-28 17:22:53 +01:00
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
b4af63b728 Merge branch 'wip-persist3-pm' into wip-bolts 2017-02-28 14:19:53 +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
df6633eed0 peer watcher: confirmed already spent txs rihgt away
When processing WatchConfirmed messages, check if the tx has already been confirmed and
trigger the watch immediately if possible. This will let us detect if a channel has been
confirmed while the node was offline or turned off
2017-02-27 19:23:57 +01:00
dpad85
698808b90f (gui) channel pane context always built in JavaFX thread 2017-02-27 19:20:25 +01:00
sstone
f5ea399f71 channel: use a "forwarder" to store and send messages on transition 2017-02-27 19:19:32 +01:00
sstone
eaca287922 move db into nodeParams 2017-02-27 18:26:41 +01:00
sstone
6a94a62a69 testnet chain is called "test", not "testnet"
the chain returned by getblockchaininfo is "test" in testnet mode
2017-02-27 18:09:39 +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
sstone
6c834289ec minor fixes
- call setup.bootsrap in headless mode
- don't save router transient fields
2017-02-27 15:38:46 +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
2a3d96b745 restore watches on re-connection 2017-02-26 20:29:34 +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
27b2c4f42c make codec output serializable 2017-02-26 13:17:31 +01:00
sstone
071f705df4 channel: use chanel id in outgoing error messages 2017-02-25 21:31:17 +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
dpad85
4d99e39184 (gui) Notifications use a PopupWindow instead of a Stage 2017-02-24 14:46:49 +01:00
dpad85
4e2bf2b047 (gui) reconnect is enabled if state=offline and node is funder 2017-02-24 14:46:49 +01:00
dpad85
ed70d0299c (gui) Improved channelpane structure and responsive behaviour 2017-02-24 14:46:48 +01:00
dpad85
41f17471d4 (gui) fixed context menu of channel panel 2017-02-24 14:46:48 +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
3d08c7e391 improved watcher logs 2017-02-23 15:27:41 +01:00
pm47
71a38e5e95 made function names consistent 2017-02-23 15:12:08 +01:00
pm47
a33d5ef1a0 mitigated race condition between FundingLocked and AnnouncementSignatures 2017-02-23 14:52:10 +01:00
pm47
a8c25e8cf9 reformatting 2017-02-23 14:51:31 +01:00
pm47
4d180003e9 improved uniclose logs 2017-02-23 14:07:33 +01:00
pm47
c2b3f727ba added HasChannelId trait to Error message 2017-02-23 13:47:56 +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
dpad85
9835bd6b52 (gui) Inline stage transparency (loading css can take some time) 2017-02-22 12:12:15 +01:00
pm47
b8fac57ac0 fixed issue with state data in ChannelChangedState (stateData->nextStateData) 2017-02-21 11:39:33 +01:00
dpad85
5255d68f13 (gui) typos 2017-02-20 18:02:15 +01:00
dpad85
6c97d82e95 (gui) Handle non fatal exception when creating connection
* pubkey conversion to binary from string is prone to failure
2017-02-20 17:09:55 +01:00