Browse Source

ckdb - ∞ loops are bad

master
kanoi 10 years ago
parent
commit
cda0724c6d
  1. 2
      src/ckdb.h
  2. 3
      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.002" #define CKDB_VERSION DB_VERSION"-1.003"
#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__

3
src/ckdb_data.c

@ -3032,12 +3032,11 @@ bool process_pplns(int32_t height, char *blockhash, tv_t *addr_cd)
STRNCPY(pa2->payaddress, pa->payaddress); STRNCPY(pa2->payaddress, pa->payaddress);
pa2->payratio = pa->payratio; pa2->payratio = pa->payratio;
k_add_tail(addr_store, pa_item2); k_add_tail(addr_store, pa_item2);
}
pa_item = next_in_ktree(pay_ctx); pa_item = next_in_ktree(pay_ctx);
DATA_PAYMENTADDRESSES_NULL(pa, pa_item); DATA_PAYMENTADDRESSES_NULL(pa, pa_item);
} }
} }
}
K_WUNLOCK(paymentaddresses_free); K_WUNLOCK(paymentaddresses_free);
pa_item = addr_store->head; pa_item = addr_store->head;

Loading…
Cancel
Save