From 24b4326b30ba96b7441289cd541ab97f3f1ac6fb Mon Sep 17 00:00:00 2001 From: Rusty Russell Date: Tue, 21 Nov 2017 14:05:55 +1030 Subject: [PATCH] onchaind: use normal feerate, not last feerate from transaction. This is used by onchaind when creating its own transactions. Note we don't send updates yet. Signed-off-by: Rusty Russell --- lightningd/peer_control.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lightningd/peer_control.c b/lightningd/peer_control.c index bfc6384f8..4c962a30f 100644 --- a/lightningd/peer_control.c +++ b/lightningd/peer_control.c @@ -1400,7 +1400,8 @@ static enum watch_result funding_spent(struct peer *peer, &peer->channel_info->remote_per_commit, peer->our_config.to_self_delay, peer->channel_info->their_config.to_self_delay, - peer->channel_info->feerate_per_kw, + get_feerate(peer->ld->topology, + FEERATE_NORMAL), peer->our_config.dust_limit_satoshis, &peer->channel_info->theirbase.revocation, &our_last_txid,