pm47
144bfe7760
CMD_CLOSE in OFFLINE now results in an unilateral close
2017-03-09 15:03:38 +01:00
pm47
fe0df3d97d
shutdown message is now acknowledged by closing_signed
2017-03-09 14:52:17 +01:00
pm47
3454fb784a
Register now uses 'forward' instead of '!'
2017-03-09 14:06:46 +01:00
pm47
0283631fdd
refactored CMD_CLOSE handling
2017-03-09 12:03:54 +01:00
pm47
4ea6fdcea7
fixed bug when channel disappears
2017-03-09 11:51:44 +01:00
sstone
4d3a344a69
bolt 3: update test vectors
2017-03-08 10:48:24 +01:00
sstone
c1cf96e4f8
BOLT 3: check that we can directly spend htlc outputs
2017-03-07 23:06:26 +01:00
sstone
08bf37c1dc
make htlc output directly spendable with the revocation key
...
see https://github.com/lightningnetwork/lightning-rfc/pull/105
and https://github.com/lightningnetwork/lightning-rfc/pull/123
test vectors pending
2017-03-07 17:44:40 +01:00
sstone
076011bd35
channel: fix init -> offline transition
...
don't persist and don't send anything when transitioning from INIT to OFFLINE
2017-03-07 14:52:49 +01:00
Pierre-Marie Padiou
a24bebf666
Implemented long channel-id + delayed announcements ( #27 )
...
* implemented long channel-id + delayed announcements
* added a ShortChannelIdAssigned event
2017-03-06 17:19:55 +01:00
sstone
e18a12c565
forward payments through register
...
we ask register, which maintains of active channels, to forward payments instead
of relying on actor selection/actor path.
2017-03-06 15:25:01 +01:00
pm47
f3db1ea15c
moved extractOutgoingMessages to Helpers
2017-03-02 17:03:50 +01:00
pm47
c017a9a217
routing announcements are now stored individually
2017-03-01 20:09:22 +01:00
pm47
b05444fa77
peersDb is now a simple cache containing valid ip addresses
2017-03-01 19:01:09 +01:00
pm47
453dc699ed
removed ChannelState and moved dbs declarations to Dbs
2017-03-01 18:27:20 +01:00
pm47
be73ba7900
reworked Forwarder and made it manage OFFLINE->X transitions
2017-03-01 16:21:05 +01:00
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