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),