From e9e6e18f0596295217fdf419b0bdd46578aa44a5 Mon Sep 17 00:00:00 2001 From: jl777 Date: Fri, 12 Apr 2019 01:29:07 -1100 Subject: [PATCH] -1 --- src/main.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main.cpp b/src/main.cpp index dd8249362..b9f6cd9ed 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -5336,9 +5336,9 @@ bool AcceptBlock(int32_t *futureblockp,CBlock& block, CValidationState& state, C if ( ASSETCHAINS_CBOPRET != 0 ) { CValidationState tmpstate; CBlockIndex *tmpindex; - if ( (tmpindex=komodo_chainactive(tmpptr->GetHeight())) != 0 ) + if ( (tmpindex=komodo_chainactive(tmpptr->GetHeight()-1)) != 0 ) { - fprintf(stderr,"reconsider height.%d\n",(int32_t)tmpptr->GetHeight()); + fprintf(stderr,"reconsider height.%d\n",(int32_t)tmpptr->GetHeight()-1); ReconsiderBlock(tmpstate,tmpindex); } }