From 6ae728c777ae66d62f969a0e032e9b367a19ee2a Mon Sep 17 00:00:00 2001 From: jl777 Date: Thu, 10 Nov 2016 16:46:35 -0300 Subject: [PATCH] test --- src/main.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/main.cpp b/src/main.cpp index 899a63c5b..9460fce28 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -3317,7 +3317,8 @@ bool ProcessNewBlock(int32_t height,CValidationState &state, CNode* pfrom, CBloc // Preliminary checks extern int32_t CURRENT_HEIGHT; bool checked; - CURRENT_HEIGHT = chainActive.Tip()->nHeight; + if ( chainActive.Tip() != 0 ) + CURRENT_HEIGHT = chainActive.Tip()->nHeight; if ( ASSETCHAINS_SYMBOL[0] == 0 ) checked = CheckBlock(height!=0?height:komodo_block2height(pblock),0,*pblock, state); else checked = CheckBlock(0,0,*pblock, state);