diff --git a/channeld/commit_tx.c b/channeld/commit_tx.c index 38bd1caee..33ed4f4be 100644 --- a/channeld/commit_tx.c +++ b/channeld/commit_tx.c @@ -140,7 +140,7 @@ struct bitcoin_tx *commit_tx(const tal_t *ctx, #ifdef PRINT_ACTUAL_FEE { u64 satoshis_out = 0; - for (i = n = 0; i < tal_count(htlcs); i++) { + for (i = 0; i < tal_count(htlcs); i++) { if (!trim(htlcs[i], feerate_per_kw, dust_limit_satoshis, side)) satoshis_out += htlcs[i]->msatoshi / 1000; diff --git a/gossipd/gossip.c b/gossipd/gossip.c index 0df89ff94..980f20420 100644 --- a/gossipd/gossip.c +++ b/gossipd/gossip.c @@ -1860,10 +1860,6 @@ static void gossip_disable_outgoing_halfchan(struct daemon *daemon, "Unable to parse previously accepted channel_update"); } - timestamp = time_now().ts.tv_sec; - if (timestamp <= hc->last_timestamp) - timestamp = hc->last_timestamp + 1; - local_update->disable = true; queue_local_update(daemon, local_update);