Browse Source

peer: don't worry about feechange if we can't do anything about it.

Triggering a commit will just do nothing anyway (same check at the
top of try_commit).

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
ppa-0.6.1
Rusty Russell 9 years ago
parent
commit
4855af8ba2
  1. 2
      daemon/peer.c

2
daemon/peer.c

@ -3019,7 +3019,7 @@ static enum watch_result anchor_depthchange(struct peer *peer,
check_htlc_expiry(peer); check_htlc_expiry(peer);
/* If fee rate has changed, fire off update to change it. */ /* If fee rate has changed, fire off update to change it. */
if (want_feechange(peer)) { if (want_feechange(peer) && state_can_commit(peer->state)) {
log_debug(peer->log, "fee rate changed to %"PRIu64, log_debug(peer->log, "fee rate changed to %"PRIu64,
desired_commit_feerate(peer->dstate)); desired_commit_feerate(peer->dstate));
/* FIXME: If fee changes back before update, we screw /* FIXME: If fee changes back before update, we screw

Loading…
Cancel
Save