Browse Source

ckdb - pplns2 include the trailing shares in the tv_end check

master
kanoi 10 years ago
parent
commit
59e7d2b7bc
  1. 2
      src/ckdb.h
  2. 4
      src/ckdb_data.c

2
src/ckdb.h

@ -52,7 +52,7 @@
#define DB_VLOCK "1" #define DB_VLOCK "1"
#define DB_VERSION "1.0.0" #define DB_VERSION "1.0.0"
#define CKDB_VERSION DB_VERSION"-1.005" #define CKDB_VERSION DB_VERSION"-1.006"
#define WHERE_FFL " - from %s %s() line %d" #define WHERE_FFL " - from %s %s() line %d"
#define WHERE_FFL_HERE __FILE__, __func__, __LINE__ #define WHERE_FFL_HERE __FILE__, __func__, __LINE__

4
src/ckdb_data.c

@ -2824,6 +2824,10 @@ bool process_pplns(int32_t height, char *blockhash, tv_t *addr_cd)
total_share_count += sharesummary->sharecount; total_share_count += sharesummary->sharecount;
acc_share_count += sharesummary->shareacc; acc_share_count += sharesummary->shareacc;
total_diff += sharesummary->diffacc; total_diff += sharesummary->diffacc;
// TODO: add lastshareacc to sharesummary and markersummary
if (sharesummary->shareacc > 0 &&
tv_newer(&end_tv, &(sharesummary->lastshare)))
copy_tv(&end_tv, &(sharesummary->lastshare));
mu_root = upd_add_mu(mu_root, mu_store, mu_root = upd_add_mu(mu_root, mu_store,
sharesummary->userid, sharesummary->userid,
sharesummary->diffacc); sharesummary->diffacc);

Loading…
Cancel
Save