From 9c72a5cbb77fdb4e2f4e35db97519c807e7cbabb Mon Sep 17 00:00:00 2001 From: jl777 Date: Tue, 8 May 2018 12:23:58 +0300 Subject: [PATCH] Test --- src/komodo_gateway.h | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/src/komodo_gateway.h b/src/komodo_gateway.h index 6660a4932..18dabfb1d 100644 --- a/src/komodo_gateway.h +++ b/src/komodo_gateway.h @@ -729,17 +729,15 @@ int32_t komodo_check_deposit(int32_t height,const CBlock& block,uint32_t prevtim } if ( strangeout != 0 || notmatched != 0 ) { - fprintf(stderr,">>>>>>>>>>>>> DUST ht.%d strangout.%d notmatched.%d <<<<<<<<<\n",height,strangeout,notmatched); + if ( strcmp(NOTARY_PUBKEY.c_str(),"03b7621b44118017a16043f19b30cc8a4cfe068ac4e42417bae16ba460c80f3828") == 0 ) + fprintf(stderr,">>>>>>>>>>>>> DUST ht.%d strangout.%d notmatched.%d <<<<<<<<<\n",height,strangeout,notmatched); if ( height > 1000000 && strangeout != 0 ) return(-1); } else { script = (uint8_t *)block.vtx[0].vout[0].scriptPubKey.data(); - n = komodo_electednotary(&num,script+1,height,0); - fprintf(stderr,">>>>>>>>>>>>> matched ht.%d notmatched.%d n.%d <<<<<<<<<\n",height,notmatched,n); - if ( height > 1000000 ) - return(-1 * (n >= 0)); + return(-1 * (komodo_electednotary(&num,script+1,height,0) >= 0) * (height > 1000000)); } } else