| 292 | } |
| 293 | |
| 294 | void bitcoind_estimate_fees_(const tal_t *ctx, |
| 295 | struct bitcoind *bitcoind, |
| 296 | void (*cb)(struct lightningd *ld, |
| 297 | u32 feerate_floor, |
| 298 | const struct feerate_est *feerates, |
| 299 | void *arg), |
| 300 | void *cb_arg) |
| 301 | { |
| 302 | struct jsonrpc_request *req; |
| 303 | struct estimatefee_call *call = tal(ctx, struct estimatefee_call); |
| 304 | |
| 305 | call->bitcoind = bitcoind; |
| 306 | call->cb = cb; |
| 307 | call->cb_arg = cb_arg; |
| 308 | |
| 309 | req = jsonrpc_request_start(call, "estimatefees", NULL, |
| 310 | bitcoind->log, |
| 311 | NULL, estimatefees_callback, call); |
| 312 | jsonrpc_request_end(req); |
| 313 | plugin_request_send(strmap_get(&bitcoind->pluginsmap, |
| 314 | "estimatefees"), req); |
| 315 | } |
| 316 | |
| 317 | /* `sendrawtransaction` |
| 318 | * |
nothing calls this directly
no test coverage detected