From 6bb74a025699b6d8388c4c50ce3100bc54fa74e7 Mon Sep 17 00:00:00 2001 From: jl777 Date: Wed, 25 Apr 2018 15:09:12 +0300 Subject: [PATCH] Test --- src/rpcmisc.cpp | 2 +- src/rpcnet.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/rpcmisc.cpp b/src/rpcmisc.cpp index 33a947b8c..b55d3e104 100644 --- a/src/rpcmisc.cpp +++ b/src/rpcmisc.cpp @@ -49,7 +49,7 @@ int32_t komodo_longestchain(); int32_t komodo_notarized_height(uint256 *hashp,uint256 *txidp); uint32_t komodo_chainactive_timestamp(); int32_t komodo_whoami(char *pubkeystr,int32_t height,uint32_t timestamp); -extern int32_t KOMODO_LASTMINED,JUMBLR_PAUSE; +extern int32_t KOMODO_LASTMINED,JUMBLR_PAUSE,KOMODO_LONGESTCHAIN; extern char ASSETCHAINS_SYMBOL[KOMODO_ASSETCHAIN_MAXLEN]; int32_t notarizedtxid_height(char *dest,char *txidstr,int32_t *kmdnotarized_heightp); #define KOMODO_VERSION "0.1.1" diff --git a/src/rpcnet.cpp b/src/rpcnet.cpp index 3ef614815..48116a3c4 100644 --- a/src/rpcnet.cpp +++ b/src/rpcnet.cpp @@ -169,9 +169,9 @@ int32_t KOMODO_LONGESTCHAIN; int32_t komodo_longestchain() { int32_t ht,n=0,num=0,maxheight=0,height = 0; + vector vstats; { LOCK(cs_main); - vector vstats; CopyNodeStats(vstats); } BOOST_FOREACH(const CNodeStats& stats, vstats)