From 9fd830bbaeb2ae20554e6c69a6f0bf28c5331656 Mon Sep 17 00:00:00 2001 From: kanoi Date: Fri, 30 Sep 2016 06:00:39 +1000 Subject: [PATCH] ckdb - ensure unused payments fields aren't null --- src/ckdb.h | 2 +- src/ckdb_data.c | 6 ++++++ 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/src/ckdb.h b/src/ckdb.h index c22a4334..fcfa21d5 100644 --- a/src/ckdb.h +++ b/src/ckdb.h @@ -58,7 +58,7 @@ #define DB_VLOCK "1" #define DB_VERSION "1.0.7" -#define CKDB_VERSION DB_VERSION"-2.514" +#define CKDB_VERSION DB_VERSION"-2.515" #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 905cf5bb..38bd969b 100644 --- a/src/ckdb_data.c +++ b/src/ckdb_data.c @@ -5012,6 +5012,9 @@ bool process_pplns(int32_t height, char *blockhash, tv_t *addr_cd) (double)(pa->payratio) / (double)paytotal; used += d64; + payments->in_originaltxn = + payments->in_committxn = + payments->in_commitblockhash = EMPTY; k_add_tail_nolock(pay_store, pay_item); ok = payments_add(conn, true, pay_item, &(payments->old_item), @@ -5041,6 +5044,9 @@ bool process_pplns(int32_t height, char *blockhash, tv_t *addr_cd) payments->amount = amount; payments->diffacc = miningpayouts->diffacc; used = amount; + payments->in_originaltxn = + payments->in_committxn = + payments->in_commitblockhash = EMPTY; k_add_tail_nolock(pay_store, pay_item); ok = payments_add(conn, true, pay_item, &(payments->old_item),