From 4855af8ba21abce54b05e2c29577839d9db6cd3d Mon Sep 17 00:00:00 2001 From: Rusty Russell Date: Sun, 6 Nov 2016 14:45:16 +1030 Subject: [PATCH] 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 --- daemon/peer.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/daemon/peer.c b/daemon/peer.c index 994d6cced..84f3771ab 100644 --- a/daemon/peer.c +++ b/daemon/peer.c @@ -3019,7 +3019,7 @@ static enum watch_result anchor_depthchange(struct peer *peer, check_htlc_expiry(peer); /* 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, desired_commit_feerate(peer->dstate)); /* FIXME: If fee changes back before update, we screw