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 <rusty@rustcorp.com.au>
This commit is contained in:
Rusty Russell 2017-11-21 14:05:55 +10:30 committed by Christian Decker
parent ccf86a138a
commit 24b4326b30

View File

@ -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,