From 122d6f38bac92363457dab30e0082e8e2a1449e3 Mon Sep 17 00:00:00 2001 From: kanoi Date: Fri, 27 Feb 2015 16:34:45 +1100 Subject: [PATCH] ckdb - correct tv_end for pplns2 block --- src/ckdb.h | 2 +- src/ckdb_data.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/ckdb.h b/src/ckdb.h index 9e84b3da..34c91f7c 100644 --- a/src/ckdb.h +++ b/src/ckdb.h @@ -52,7 +52,7 @@ #define DB_VLOCK "1" #define DB_VERSION "1.0.0" -#define CKDB_VERSION DB_VERSION"-1.006" +#define CKDB_VERSION DB_VERSION"-1.007" #define WHERE_FFL " - from %s %s() line %d" #define WHERE_FFL_HERE __FILE__, __func__, __LINE__ diff --git a/src/ckdb_data.c b/src/ckdb_data.c index f7cc3653..96649aa8 100644 --- a/src/ckdb_data.c +++ b/src/ckdb_data.c @@ -2639,7 +2639,7 @@ bool process_pplns(int32_t height, char *blockhash, tv_t *addr_cd) while (b2_item && blocks2->height == height && strcmp(blocks2->blockhash, blockhash) == 0) { if (blocks2->confirmed[0] == BLOCKS_NEW) { - copy_tv(&end_tv, &(blocks->createdate)); + copy_tv(&end_tv, &(blocks2->createdate)); if (!addr_cd) addr_cd = &(blocks2->createdate); break;