From 22c10675333096cc542ae8c2d3f11d468451f4f0 Mon Sep 17 00:00:00 2001 From: jl777 Date: Mon, 13 Mar 2017 23:10:50 +0200 Subject: [PATCH] Test --- src/komodo_gateway.h | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/src/komodo_gateway.h b/src/komodo_gateway.h index 5df0e1393..2a2ac2baf 100644 --- a/src/komodo_gateway.h +++ b/src/komodo_gateway.h @@ -651,7 +651,7 @@ int32_t komodo_check_deposit(int32_t height,const CBlock& block) // verify above { if ( n == 2 && block.vtx[0].vout[1].nValue > COIN/10 ) { - //fprintf(stderr,">>>>>>>> <<<<<<<<<< ht.%d illegal nonz output %.8f n.%d\n",height,dstr(block.vtx[0].vout[1].nValue),n); + fprintf(stderr,">>>>>>>> <<<<<<<<<< ht.%d illegal nonz output %.8f n.%d\n",height,dstr(block.vtx[0].vout[1].nValue),n); if ( height >= 235300 ) return(-1); } @@ -757,8 +757,18 @@ int32_t komodo_check_deposit(int32_t height,const CBlock& block) // verify above } } } + else + { + printf("no opreturn entries to check\n"); + return(-1); + } //printf("opretlen.%d num.%d\n",opretlen,num); - } else return(-1); + } + else + { + printf("not proper vout with opreturn format\n"); + return(-1); + } return(0); }