From 9f9c34002ef1ce09e843cc09545db1234d47026d Mon Sep 17 00:00:00 2001 From: Rusty Russell Date: Thu, 25 Jan 2018 21:33:50 +1030 Subject: [PATCH] chain_topology: log block height, not just hash. Saves me a lookup. Signed-off-by: Rusty Russell --- lightningd/chaintopology.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lightningd/chaintopology.c b/lightningd/chaintopology.c index 59395e67f..7363f2c59 100644 --- a/lightningd/chaintopology.c +++ b/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;