Rusty Russell
|
31459d6cd2
|
protocol: rename update_complete_htlc to update_fulfill_htlc.
Complete was an overloaded word.
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
|
9 years ago |
Rusty Russell
|
ca68c5c47f
|
state: remove non-HTLC updates.
They're still in the base protocol (good for testing), just not here.
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
|
9 years ago |
Rusty Russell
|
fbe6e9e0cf
|
state: allow multiple SPENDTHEM.
Malleability, there could be many of these.
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
|
9 years ago |
Rusty Russell
|
42bf766d64
|
state: hand tx explicitly to bitcoin_watch / bitcoin_watch_delayed
Neater than assuming it's effect->broadcast.
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
|
9 years ago |
Rusty Russell
|
29f22c165d
|
state: handle simultaneous close.
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
|
9 years ago |
Rusty Russell
|
1556315f2e
|
test_state_coverage: simple exhaustive coverage test for state machine.
Makes sure that we visit every state.
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
|
9 years ago |
Rusty Russell
|
847ef21c07
|
state: Core state machine for lightning.
It's written in a repetitive and stylized form, for easier testing.
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
|
9 years ago |