Remove dead stores

This commit is contained in:
practicalswift 2018-07-31 10:52:58 +02:00 committed by Christian Decker
parent 09ec0ae990
commit b5682a773b
2 changed files with 1 additions and 5 deletions

View File

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

View File

@ -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);