core-lightning/contrib/pylightning/lightning
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
..
__init__.py pylightning: allow version querying from within modules. 2019-03-05 11:43:22 +01:00
lightning.py close: change to a unilateraltimeout argument. 2019-08-09 05:47:16 +00:00
plugin.py pylightning: Warn users of plugins that may break due to extra args 2019-08-05 00:19:48 +00:00