core-lightning/wallet
Rusty Russell 83e654a106 close: change to a unilateraltimeout argument.
`close` takes two optional arguments: `force` and `timeout`.
`timeout` doesn't timeout the close (there's no way to do that), just
the JSON call.  `force` (default `false`) if set, means we unilaterally
close at the timeout, instead of just failing.

Timing out JSON calls is generally deprecated: that's the job of the
client.  And the semantics of this are confusing, even to me!  A
better API is a timeout which, if non-zero, is the time at which we
give up and unilaterally close.

The transition code is awkward, but we'll manage for the three
releases until we can remove it.

The new defaults are to unilaterally close after 48 hours.

Fixes: #2791
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
2019-08-09 05:47:16 +00:00
..
test close: change to a unilateraltimeout argument. 2019-08-09 05:47:16 +00:00
.gitignore
db.c lightningd: simplify --daemon. 2019-08-04 21:29:03 +02:00
db.h lightningd: simplify --daemon. 2019-08-04 21:29:03 +02:00
invoices.c ccan: import ccan/json_out and ccan/json_escape. 2019-06-12 02:00:15 +00:00
invoices.h ccan: import ccan/json_out and ccan/json_escape. 2019-06-12 02:00:15 +00:00
Makefile wallet: fix Makefile to include correct dependencies. 2018-09-14 22:11:48 +02:00
txfilter.c wallet/txfilter: free outpoint filter and scriptpubkeyset on exit. 2019-06-30 16:41:30 +09:30
txfilter.h pubkey: rename PUBKEY_DER_LEN to PUBKEY_CMPR_LEN. 2019-04-09 12:37:16 -07:00
wallet.c lightningd: fix up typesafe-cb bitcoind_getfilteredblock 2019-08-09 02:31:51 +00:00
wallet.h lightningd: fix up typesafe-cb bitcoind_getfilteredblock 2019-08-09 02:31:51 +00:00
walletrpc.c wallet/walletrpc.c: fix uninitialized warning. 2019-08-02 15:56:15 +02:00
walletrpc.h