From 6677fa316c5b3fda6dae4a1dd1c7289d4bd1d17d Mon Sep 17 00:00:00 2001 From: jl777 Date: Sat, 12 Nov 2016 08:44:11 -0300 Subject: [PATCH] test --- src/komodo_bitcoind.h | 2 +- src/rpcblockchain.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/komodo_bitcoind.h b/src/komodo_bitcoind.h index 4561f7563..585be4e3e 100644 --- a/src/komodo_bitcoind.h +++ b/src/komodo_bitcoind.h @@ -450,7 +450,7 @@ void komodo_index2pubkey33(uint8_t *pubkey33,CBlockIndex *pindex,int32_t height) int8_t komodo_minerid(int32_t height) { int32_t notaryid; CBlockIndex *pindex; uint8_t pubkey33[33]; - if ( height <= chainActive.Tip()->nHeight ) + if ( height <= CURRENT_HEIGHT )//chainActive.Tip()->nHeight ) { if ( (pindex= chainActive[height]) != 0 ) { diff --git a/src/rpcblockchain.cpp b/src/rpcblockchain.cpp index e671c7308..7373d51c9 100644 --- a/src/rpcblockchain.cpp +++ b/src/rpcblockchain.cpp @@ -396,7 +396,7 @@ Value notaries(const Array& params, bool fHelp) int32_t height = atoi(params[0].get_str().c_str()); if ( height < 0 ) height = 0; - fprintf(stderr,"notaries as of height.%d\n",height); + //fprintf(stderr,"notaries as of height.%d\n",height); if ( height > chainActive.Height()+20000 ) throw JSONRPCError(RPC_INVALID_PARAMETER, "Block height out of range"); else