From 1dcc19e22f6506a4c2c879ce70e6fc34c7e0eeee Mon Sep 17 00:00:00 2001 From: jl777 Date: Fri, 1 Mar 2019 02:09:06 -1100 Subject: [PATCH] Finally --- src/cc/rogue_rpc.cpp | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/src/cc/rogue_rpc.cpp b/src/cc/rogue_rpc.cpp index 508bf6040..863934e75 100644 --- a/src/cc/rogue_rpc.cpp +++ b/src/cc/rogue_rpc.cpp @@ -630,11 +630,17 @@ int32_t rogue_playersalive(int32_t &openslots,int32_t &numplayers,uint256 gametx if ( txid != zeroid ) { fprintf(stderr,"get height of %s\n",txid.GetHex().c_str()); - if ( myGetTransaction(txid,tx,hashBlock) != 0 && (pindex= komodo_blockindex(hashBlock)) != 0 ) + if ( myGetTransaction(txid,tx,hashBlock) != 0 ) { - if ( pindex->GetHeight() <= gameht+ROGUE_MAXKEYSTROKESGAP ) - alive++; + fprintf(stderr,"got tx %s\n",txid.GetHex().c_str()); + if ( (pindex= komodo_blockindex(hashBlock)) != 0 ) + { + fprintf(stderr,"got pindex %s\n",hashBlock.GetHex().c_str()); + if ( pindex->GetHeight() <= gameht+ROGUE_MAXKEYSTROKESGAP ) + alive++; + } } + fprintf(stderr,"got height of %s\n",txid.GetHex().c_str()); } } }