Skip to content

Commit

Permalink
Fix possible typo/bug when accessing block's header's timestamp.
Browse files Browse the repository at this point in the history
  • Loading branch information
Dhruv Bansal committed Feb 24, 2016
1 parent c81c603 commit f367371
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions iterate.c
Original file line number Diff line number Diff line change
Expand Up @@ -171,7 +171,7 @@ static void add_utxo(const tal_t *tal_ctx,
utxo->num_outputs = t->output_count;
utxo->unspent_outputs = spend_count;
utxo->height = b->height;
utxo->timestamp = b->b->timestamp;
utxo->timestamp = b->bh.timestamp;
for (i = 0; i < utxo->num_outputs; i++)
utxo->amount[i] = t->output[i].amount;
guess_output_types(t, output_types(utxo));
Expand Down Expand Up @@ -458,7 +458,7 @@ static void print_format(const char *format,
break;
case 'D':
printf("%"PRIi64,
calculate_bdd(utxo_map, t, txnum == 0, b->b->timestamp));
calculate_bdd(utxo_map, t, txnum == 0, b->bh.timestamp));
break;
case 'X':
dump_tx(t);
Expand Down

0 comments on commit f367371

Please sign in to comment.