mirror of
https://github.com/aljazceru/lightning.git
synced 2025-12-24 01:24:26 +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:
@@ -25,6 +25,9 @@ u32 get_tip_mediantime(struct lightningd_state *dstate);
|
||||
/* Get highest block number. */
|
||||
u32 get_block_height(struct lightningd_state *dstate);
|
||||
|
||||
/* Get fee rate. */
|
||||
u64 get_feerate(struct lightningd_state *dstate);
|
||||
|
||||
/* Broadcast a single tx, and rebroadcast as reqd (takes ownership of tx) */
|
||||
void broadcast_tx(struct peer *peer, const struct bitcoin_tx *tx);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user