Test
This commit is contained in:
@@ -574,11 +574,6 @@ std::string GatewaysDeposit(uint64_t txfee,uint256 bindtxid,int32_t height,std::
|
|||||||
fprintf(stderr,"invalid bindtxid %s coin.%s\n",uint256_str(str,bindtxid),coin.c_str());
|
fprintf(stderr,"invalid bindtxid %s coin.%s\n",uint256_str(str,bindtxid),coin.c_str());
|
||||||
return("");
|
return("");
|
||||||
}
|
}
|
||||||
if ( GatewaysCointxidExists(cp,cointxid) != 0 )
|
|
||||||
{
|
|
||||||
fprintf(stderr,"cointxid.%s already exists\n",uint256_str(str,cointxid));
|
|
||||||
return("");
|
|
||||||
}
|
|
||||||
n = (int32_t)pubkeys.size();
|
n = (int32_t)pubkeys.size();
|
||||||
merkleroot = zeroid;
|
merkleroot = zeroid;
|
||||||
for (i=m=0; i<n; i++)
|
for (i=m=0; i<n; i++)
|
||||||
@@ -601,6 +596,11 @@ std::string GatewaysDeposit(uint64_t txfee,uint256 bindtxid,int32_t height,std::
|
|||||||
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);
|
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 ( GatewaysCointxidExists(cp,cointxid) != 0 )
|
||||||
|
{
|
||||||
|
fprintf(stderr,"cointxid.%s already exists\n",uint256_str(str,cointxid));
|
||||||
|
return("");
|
||||||
|
}
|
||||||
if ( GatewaysVerify(depositaddr,oracletxid,claimvout,coin,cointxid,deposithex,proof,merkleroot,destpub) != amount )
|
if ( GatewaysVerify(depositaddr,oracletxid,claimvout,coin,cointxid,deposithex,proof,merkleroot,destpub) != amount )
|
||||||
{
|
{
|
||||||
fprintf(stderr,"deposittxid didnt validate\n");
|
fprintf(stderr,"deposittxid didnt validate\n");
|
||||||
|
|||||||
Reference in New Issue
Block a user