core-lightning/lightningd
Rusty Russell 175db926c2 chaintopology: expose when we don't actually know feerate.
We use feerate in several places, and each one really should react
differently when it's not available (such as when bitcoind is still
catching up):

1. For general fee-enforcement, we use the broadest possible limits.
2. For closingd, we use it as our opening negotiation point: just use half
   the last tx feerate.
3. For onchaind, we can use the last tx feerate as a guide for our own txs;
   it might be too high, but at least we know it was sufficient to be mined.
4. For withdraw and fund_channel, we can simply refuse.

Fixes: #1836
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
2018-08-24 02:17:51 +00:00
..
test param: remove old callback code 2018-08-20 01:02:25 +00:00
.gitignore
bitcoind.c bitcoind: don't use double in extracting feerate. 2018-08-22 12:13:23 +02:00
bitcoind.h bitcoind: fix spurious memleak reports. 2018-06-15 11:53:47 +02:00
chaintopology.c chaintopology: expose when we don't actually know feerate. 2018-08-24 02:17:51 +00:00
chaintopology.h chaintopology: expose when we don't actually know feerate. 2018-08-24 02:17:51 +00:00
channel_control.c chaintopology: expose when we don't actually know feerate. 2018-08-24 02:17:51 +00:00
channel_control.h lightningd: peer_start_channeld always returns true; make it void. 2018-08-10 12:46:45 +02:00
channel_state.h lightningd: new state AWAITING_UNILATERAL. 2018-08-23 14:46:22 +02:00
channel.c lightningd: new state AWAITING_UNILATERAL. 2018-08-23 14:46:22 +02:00
channel.h db: store claimed per_commitment_point from option_data_loss_protect. 2018-08-23 14:46:22 +02:00
closing_control.c chaintopology: expose when we don't actually know feerate. 2018-08-24 02:17:51 +00:00
closing_control.h gossipd: drain fd instead of passing around gossip index. 2018-04-26 05:47:57 +00:00
connect_control.c param: remove old callback code 2018-08-20 01:02:25 +00:00
connect_control.h connectd: remove separate address hint message. 2018-08-09 19:44:27 +02:00
gossip_control.c param: remove old callback code 2018-08-20 01:02:25 +00:00
gossip_control.h connectd: wean off gossip_wire message types, use our own. 2018-07-25 02:13:52 +00:00
gossip_msg.c lightningd: display all addresses in listnodes. 2018-08-06 19:33:46 +02:00
gossip_msg.h gossipd: add flag for locally disabling channel. 2018-07-27 14:12:00 +02:00
hsm_control.c lightningd: get basepoints from hsmd, don't ever get seed. 2018-07-24 00:40:01 +02:00
hsm_control.h hsmd: fix missing status messages. 2018-07-17 12:32:00 +02:00
htlc_end.c Remove unused parameter ptr in corrupt(const void *ptr, ...) 2018-02-22 10:46:30 +01:00
htlc_end.h htlc: keep channel pointer, not peer pointer. 2018-02-14 11:31:58 +01:00
invoice.c param: remove old callback code 2018-08-20 01:02:25 +00:00
invoice.h invoices: Extensive reorganization of invoice system. 2018-01-16 13:03:54 +01:00
json.c param: upgraded json_tok_short_channel_id 2018-08-20 01:02:25 +00:00
json.h param: upgraded json_tok_short_channel_id 2018-08-20 01:02:25 +00:00
jsonrpc_errors.h renamed error code 2018-07-29 16:27:38 +02:00
jsonrpc.c param: remove old callback code 2018-08-20 01:02:25 +00:00
jsonrpc.h param: upgraded json_tok_newaddr 2018-08-20 01:02:25 +00:00
lightningd.c openingd: take peer before we're opening, wait for explicit funding msg. 2018-08-09 19:44:27 +02:00
lightningd.h openingd: take peer before we're opening, wait for explicit funding msg. 2018-08-09 19:44:27 +02:00
log_status.c Remove tal_len, use tal_count() or tal_bytelen(). 2018-07-30 11:31:17 +02:00
log_status.h status: add multiple levels of logging. 2018-02-07 00:46:49 +00:00
log.c log: Append the current time to the crash log filename 2018-08-23 12:51:08 +02:00
log.h param: upgraded json_tok_loglevel 2018-08-20 01:02:25 +00:00
Makefile ping: no longer a dev_ command. 2018-08-10 12:46:45 +02:00
memdump.c Use snprintf(...) instead of sprintf(...) 2018-08-02 16:14:21 +09:30
onchain_control.c chaintopology: expose when we don't actually know feerate. 2018-08-24 02:17:51 +00:00
onchain_control.h onchaind: Replay stored channeltxs to restore onchaind state 2018-04-25 14:33:38 +02:00
opening_control.c chaintopology: expose when we don't actually know feerate. 2018-08-24 02:17:51 +00:00
opening_control.h connectd: rely on the master to tell us to reconnect. 2018-08-09 19:44:27 +02:00
options.c pytest: remove use dev-override-feerates. 2018-08-24 02:17:51 +00:00
options.h hsmd: drop newdir logic. 2018-05-05 17:55:10 +02:00
param.c param: remove old callback code 2018-08-20 01:02:25 +00:00
param.h param: remove old callback code 2018-08-20 01:02:25 +00:00
pay.c param: remove old callback code 2018-08-20 01:02:25 +00:00
pay.h pay: Pass description to send_payment 2018-07-30 03:04:45 +00:00
payalgo.c param: remove old callback code 2018-08-20 01:02:25 +00:00
payalgo.h payalgo: New file for pay command. 2018-02-16 13:08:29 +01:00
peer_control.c chaintopology: expose when we don't actually know feerate. 2018-08-24 02:17:51 +00:00
peer_control.h chaintopology: expose when we don't actually know feerate. 2018-08-24 02:17:51 +00:00
peer_htlcs.c moveonly: move feerate routines from peer_htlcs.c to channel_control.c 2018-08-24 02:17:51 +00:00
peer_htlcs.h moveonly: move feerate routines from peer_htlcs.c to channel_control.c 2018-08-24 02:17:51 +00:00
ping.c param: remove old callback code 2018-08-20 01:02:25 +00:00
subd.c lightningd: don't dump core on subdaemon failure. 2018-08-05 02:03:58 +00:00
subd.h hsmd: fix missing status messages. 2018-07-17 12:32:00 +02:00
watch.c txwatch: hand ld to callback, don't assume channel is non-NULL. 2018-08-21 00:48:02 +02:00
watch.h txwatch: hand ld to callback, don't assume channel is non-NULL. 2018-08-21 00:48:02 +02:00