Browse Source

Remove dead stores

ppa-0.6.1
practicalswift 6 years ago
committed by Christian Decker
parent
commit
b5682a773b
  1. 2
      channeld/commit_tx.c
  2. 4
      gossipd/gossip.c

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

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

Loading…
Cancel
Save