| 225 | } |
| 226 | |
| 227 | void bitcoind_estimate_fees_(struct bitcoind *bitcoind, |
| 228 | size_t num_estimates, |
| 229 | void (*cb)(struct bitcoind *bitcoind, |
| 230 | const u32 satoshi_per_kw[], void *), |
| 231 | void *arg) |
| 232 | { |
| 233 | struct jsonrpc_request *req; |
| 234 | struct estimatefee_call *call = tal(bitcoind, struct estimatefee_call); |
| 235 | |
| 236 | call->bitcoind = bitcoind; |
| 237 | call->cb = cb; |
| 238 | call->arg = arg; |
| 239 | |
| 240 | req = jsonrpc_request_start(bitcoind, "estimatefees", NULL, |
| 241 | bitcoind->log, |
| 242 | NULL, estimatefees_callback, call); |
| 243 | jsonrpc_request_end(req); |
| 244 | plugin_request_send(strmap_get(&bitcoind->pluginsmap, |
| 245 | "estimatefees"), req); |
| 246 | } |
| 247 | |
| 248 | /* `sendrawtransaction` |
| 249 | * |
nothing calls this directly
no test coverage detected