From b4df8470f3925ecf92854b781a1ce2e73c0b09c4 Mon Sep 17 00:00:00 2001 From: jl777 Date: Tue, 11 Sep 2018 23:39:10 -1100 Subject: [PATCH] Test --- src/cc/gateways.cpp | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/src/cc/gateways.cpp b/src/cc/gateways.cpp index 990fd3815..ed4b7118a 100644 --- a/src/cc/gateways.cpp +++ b/src/cc/gateways.cpp @@ -19,8 +19,6 @@ prevent duplicate bindtxid and cointxid via mempool scan baton from mempool for oracle -assets vin selector needs to filter by signable vins - string oracles */ @@ -466,6 +464,7 @@ uint256 GatewaysReverseScan(uint256 &txid,int32_t height,uint256 reforacletxid,u txid = zeroid; while ( GetTransaction(batontxid,tx,hashBlock,false) != 0 && (numvouts= tx.vout.size()) > 0 ) { + fprintf(stderr,"reverse scan %s\n",uint256_str(str,batontxid)); if ( DecodeOraclesData(tx.vout[numvouts-1].scriptPubKey,oracletxid,hash,pk,data) == 'D' && oracletxid == reforacletxid ) { if ( oracle_format(&hash,&merkleht,0,'I',(uint8_t *)data.data(),0,(int32_t)data.size()) == sizeof(int32_t) && merkleht == height ) @@ -596,11 +595,11 @@ std::string GatewaysDeposit(uint64_t txfee,uint256 bindtxid,int32_t height,std:: } if ( merkleroot == zeroid || m < n/2 ) { - uint256 tmp; - decode_hex((uint8_t *)&tmp,32,(char *)"90aedc2f19200afc9aca2e351438d011ebae8264a58469bf225883045f61917f"); - merkleroot = revuint256(tmp); + //uint256 tmp; + //decode_hex((uint8_t *)&tmp,32,(char *)"90aedc2f19200afc9aca2e351438d011ebae8264a58469bf225883045f61917f"); + //merkleroot = revuint256(tmp); fprintf(stderr,"couldnt find merkleroot for ht.%d %s oracle.%s m.%d vs n.%d\n",height,coin.c_str(),uint256_str(str,oracletxid),m,n); - //return(""); + return(""); } if ( GatewaysVerify(depositaddr,oracletxid,claimvout,coin,cointxid,deposithex,proof,merkleroot,destpub) != amount ) {