Test
This commit is contained in:
@@ -138,6 +138,7 @@ uint256 Parseuint256(char *hexstr);
|
|||||||
CPubKey pubkey2pk(std::vector<uint8_t> pubkey);
|
CPubKey pubkey2pk(std::vector<uint8_t> pubkey);
|
||||||
int64_t CCfullsupply(uint256 tokenid);
|
int64_t CCfullsupply(uint256 tokenid);
|
||||||
int64_t CCtoken_balance(char *destaddr,uint256 tokenid);
|
int64_t CCtoken_balance(char *destaddr,uint256 tokenid);
|
||||||
|
int64_t CCtoken_balance2(char *destaddr,uint256 tokenid);
|
||||||
bool _GetCCaddress(char *destaddr,uint8_t evalcode,CPubKey pk);
|
bool _GetCCaddress(char *destaddr,uint8_t evalcode,CPubKey pk);
|
||||||
bool GetCCaddress(struct CCcontract_info *cp,char *destaddr,CPubKey pk);
|
bool GetCCaddress(struct CCcontract_info *cp,char *destaddr,CPubKey pk);
|
||||||
bool GetCCaddress1of2(struct CCcontract_info *cp,char *destaddr,CPubKey pk,CPubKey pk2);
|
bool GetCCaddress1of2(struct CCcontract_info *cp,char *destaddr,CPubKey pk,CPubKey pk2);
|
||||||
|
|||||||
@@ -501,9 +501,9 @@ std::string GatewaysBind(uint64_t txfee,std::string coin,uint256 tokenid,int64_t
|
|||||||
fprintf(stderr,"Gateway bind.%s (%s) globaladdr.%s totalsupply %.8f != fullsupply %.8f\n",coin.c_str(),uint256_str(str,tokenid),cp->unspendableCCaddr,(double)totalsupply/COIN,(double)fullsupply/COIN);
|
fprintf(stderr,"Gateway bind.%s (%s) globaladdr.%s totalsupply %.8f != fullsupply %.8f\n",coin.c_str(),uint256_str(str,tokenid),cp->unspendableCCaddr,(double)totalsupply/COIN,(double)fullsupply/COIN);
|
||||||
return("");
|
return("");
|
||||||
}
|
}
|
||||||
if ( CCtoken_balance(destaddr,tokenid) != totalsupply )
|
if ( CCtoken_balance2(destaddr,tokenid) != totalsupply )
|
||||||
{
|
{
|
||||||
fprintf(stderr,"Gateway bind.%s (%s) globaladdr.%s token balance %.8f != %.8f\n",coin.c_str(),uint256_str(str,tokenid),cp->unspendableCCaddr,(double)CCtoken_balance(destaddr,tokenid)/COIN,(double)totalsupply/COIN);
|
fprintf(stderr,"Gateway bind.%s (%s) destaddr.%s globaladdr.%s token balance %.8f != %.8f\n",coin.c_str(),uint256_str(str,tokenid),destaddr,cp->unspendableCCaddr,(double)CCtoken_balance2(destaddr,tokenid)/COIN,(double)totalsupply/COIN);
|
||||||
return("");
|
return("");
|
||||||
}
|
}
|
||||||
if ( GetTransaction(oracletxid,oracletx,hashBlock,false) == 0 || (numvouts= oracletx.vout.size()) <= 0 )
|
if ( GetTransaction(oracletxid,oracletx,hashBlock,false) == 0 || (numvouts= oracletx.vout.size()) <= 0 )
|
||||||
|
|||||||
Reference in New Issue
Block a user