From 4df419cd3b88bed8f0ea28c1eabdc7cc13855ae1 Mon Sep 17 00:00:00 2001 From: jl777 Date: Sun, 26 Feb 2017 09:38:56 +0200 Subject: [PATCH] Test --- src/komodo_gateway.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/komodo_gateway.h b/src/komodo_gateway.h index ada55ed66..36dbea914 100644 --- a/src/komodo_gateway.h +++ b/src/komodo_gateway.h @@ -681,7 +681,7 @@ int32_t komodo_check_deposit(int32_t height,const CBlock& block) // verify above } else { - if ( komodo_isrealtime(&ht) != 0 && height > 0 && height < chainActive.Tip()->nHeight && matched != num ) + if ( height > 0 && (height < chainActive.Tip()->nHeight || (height >= chainActive.Tip()->nHeight && komodo_isrealtime(&ht) != 0)) && matched != num ) { printf("REJECT %s: ht.%d (%c) matched.%d vs num.%d tip.%d isRT.%d\n",symbol,height,opcode,matched,num,(int32_t)chainActive.Tip()->nHeight,komodo_isrealtime(&ht)); return(-1);