| 734 | } |
| 735 | |
| 736 | static struct command_result *estimatefees_done(struct bitcoin_cli *bcli) |
| 737 | { |
| 738 | struct command_result *err; |
| 739 | struct estimatefees_stash *stash = bcli->stash; |
| 740 | |
| 741 | /* If we cannot estimate fees, no need to continue bothering bitcoind. */ |
| 742 | if (*bcli->exitstatus != 0) |
| 743 | return estimatefees_null_response(bcli); |
| 744 | |
| 745 | err = estimatefees_parse_feerate(bcli, &stash->perkb[stash->cursor]); |
| 746 | if (err) |
| 747 | return err; |
| 748 | |
| 749 | stash->cursor++; |
| 750 | return estimatefees_next(bcli->cmd, stash); |
| 751 | } |
| 752 | |
| 753 | /* Send a transaction to the Bitcoin network. |
| 754 | * Calls `sendrawtransaction` using the first parameter as the raw tx. |
nothing calls this directly
no test coverage detected