From a8323aa63f5c7fc6a594550c00613fde4b493366 Mon Sep 17 00:00:00 2001 From: jl777 Date: Sun, 6 Nov 2016 13:51:04 -0300 Subject: [PATCH] test --- src/komodo_bitcoind.h | 2 +- src/komodo_pax.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/komodo_bitcoind.h b/src/komodo_bitcoind.h index fa6e766ca..e7d4f52ed 100644 --- a/src/komodo_bitcoind.h +++ b/src/komodo_bitcoind.h @@ -368,7 +368,7 @@ uint64_t komodo_seed(int32_t height) if ( pindex != 0 ) { hash = pindex->GetBlockHash(); - seed = hash.GetLow64(); + seed = arith_uint256(hash).GetLow64(); } return(seed); } diff --git a/src/komodo_pax.h b/src/komodo_pax.h index 539508fee..87dca2f18 100644 --- a/src/komodo_pax.h +++ b/src/komodo_pax.h @@ -393,7 +393,7 @@ uint64_t komodo_paxprice(int32_t height,char *base,char *rel,uint64_t basevolume } sum /= densum; sum = (sum * basevolume) / COIN; - printf("sum %.8f densum %.8f basevol %.8f\n",dstr(sum),dstr(densum),dstr(basevolume)); + printf("seed.%llx sum %.8f densum %.8f basevol %.8f\n",(long long)seed,dstr(sum),dstr(densum),dstr(basevolume)); break; } }