From ffaeceaed06a327adc90e0efb382581dfc03d5e9 Mon Sep 17 00:00:00 2001 From: jl777 Date: Sat, 19 Nov 2016 17:04:59 -0300 Subject: [PATCH] test --- src/rpcnet.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/rpcnet.cpp b/src/rpcnet.cpp index 76c9fceb2..7e05c6efd 100644 --- a/src/rpcnet.cpp +++ b/src/rpcnet.cpp @@ -178,10 +178,10 @@ int32_t komodo_longestchain() ht = 0; if ( stats.nStartingHeight > ht ) ht = stats.nStartingHeight; - if ( stats.nSyncHeight > ht ) - ht = stats.nSyncHeight; - if ( stats.nCommonHeight > ht ) - ht = stats.nCommonHeight; + if ( statestats.nSyncHeight > ht ) + ht = statestats.nSyncHeight; + if ( statestats.nCommonHeight > ht ) + ht = statestats.nCommonHeight; if ( maxheight == 0 || ht > maxheight*1.01 ) maxheight = ht, num = 1; else if ( ht > maxheight*0.99 )