Get the current feerates. We use an urgent feerate for unilateral_close and max, * a slightly less urgent feerate for htlc_resolution and penalty transactions, * a slow feerate for min, and a normal one for all others. */
| 721 | * a slow feerate for min, and a normal one for all others. |
| 722 | */ |
| 723 | static struct command_result *estimatefees(struct command *cmd, |
| 724 | const char *buf UNUSED, |
| 725 | const jsmntok_t *toks UNUSED) |
| 726 | { |
| 727 | struct estimatefees_stash *stash = tal(cmd, struct estimatefees_stash); |
| 728 | |
| 729 | if (!param(cmd, buf, toks, NULL)) |
| 730 | return command_param_failed(); |
| 731 | |
| 732 | stash->cursor = 0; |
| 733 | return estimatefees_next(cmd, stash); |
| 734 | } |
| 735 | |
| 736 | static struct command_result *estimatefees_done(struct bitcoin_cli *bcli) |
| 737 | { |
nothing calls this directly
no test coverage detected