From b306b395501bbd0ba9c9a29dc27c6c52904302f4 Mon Sep 17 00:00:00 2001 From: jl777 Date: Fri, 12 Apr 2019 01:43:27 -1100 Subject: [PATCH] -1 --- src/main.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main.cpp b/src/main.cpp index 1493409bb..fdd9d3132 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -5336,7 +5336,7 @@ bool AcceptBlock(int32_t *futureblockp,CBlock& block, CValidationState& state, C if ( ASSETCHAINS_CBOPRET != 0 ) { CValidationState tmpstate; CBlockIndex *tmpindex; int32_t ht,longest; - ht = (int32_t)pindex->GetHeight(); + ht = (int32_t)pindex->GetHeight()-1; longest = komodo_longestchain(); if ( (longest == 0 || ht < longest-6) && (tmpindex=komodo_chainactive(ht)) != 0 ) {