mirror of
https://github.com/aljazceru/lightning.git
synced 2025-12-20 15:44:21 +01:00
bitcoind: keep running fee estimate.
This avoids us having to query it when we create anchor transaction, and lets us always use dynamic fee information. The config options for max and min are now percentages, rather than absolute. Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
This commit is contained in:
@@ -191,9 +191,8 @@ static void process_estimatefee_6(struct bitcoin_cli *bcli)
|
||||
|
||||
if (fee < 0) {
|
||||
log_unusual(bcli->dstate->base_log,
|
||||
"Unable to estimate fee, using %"PRIu64,
|
||||
bcli->dstate->config.closing_fee_rate);
|
||||
fee_rate = bcli->dstate->config.closing_fee_rate;
|
||||
"Unable to estimate fee");
|
||||
fee_rate = 0;
|
||||
} else {
|
||||
/* Since we used 6 as an estimate, double it. */
|
||||
fee *= 2;
|
||||
|
||||
Reference in New Issue
Block a user