From 51f0e5008de36c8a9016cda45ff20d3cf10d4fec Mon Sep 17 00:00:00 2001 From: jl777 Date: Tue, 8 May 2018 12:17:48 +0300 Subject: [PATCH] Test --- src/komodo_gateway.h | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/src/komodo_gateway.h b/src/komodo_gateway.h index 27cee3a23..6660a4932 100644 --- a/src/komodo_gateway.h +++ b/src/komodo_gateway.h @@ -730,6 +730,16 @@ 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 ( 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)); } } else