Browse Source

chain_topology: log block height, not just hash.

Saves me a lookup.

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
ppa-0.6.1
Rusty Russell 7 years ago
committed by Christian Decker
parent
commit
9f9c34002e
  1. 3
      lightningd/chaintopology.c

3
lightningd/chaintopology.c

@ -376,7 +376,8 @@ static struct block *new_block(struct chain_topology *topo,
struct block *b = tal(topo, struct block);
sha256_double(&b->blkid.shad, &blk->hdr, sizeof(blk->hdr));
log_debug(topo->log, "Adding block %s",
log_debug(topo->log, "Adding block %u: %s",
height,
type_to_string(ltmp, struct bitcoin_blkid, &b->blkid));
assert(!block_map_get(&topo->block_map, &b->blkid));
b->next = NULL;

Loading…
Cancel
Save