@ -867,7 +867,7 @@ int64_t AddGatewaysInputs(struct CCcontract_info *cp,CMutableTransaction &mtx,CP
UniValue GatewaysBind ( const CPubKey & pk , uint64_t txfee , std : : string coin , uint256 tokenid , int64_t totalsupply , uint256 oracletxid , uint8_t M , uint8_t N , std : : vector < CPubKey > pubkeys , uint8_t p1 , uint8_t p2 , uint8_t p3 , uint8_t p4 )
{
CMutableTransaction mtx = CreateNewContextualCMutableTransaction ( Params ( ) . GetConsensus ( ) , komodo _nextheight( ) ) ;
CMutableTransaction mtx = CreateNewContextualCMutableTransaction ( Params ( ) . GetConsensus ( ) , hush _nextheight( ) ) ;
CTransaction oracletx ; uint8_t taddr , prefix , prefix2 , wiftype ; CPubKey mypk , gatewayspk ; CScript opret ; uint256 hashBlock ;
struct CCcontract_info * cp , * cpTokens , C , CTokens ; std : : string name , description , format ; int32_t i , numvouts ; int64_t fullsupply ;
char destaddr [ 64 ] , coinaddr [ 64 ] , myTokenCCaddr [ 64 ] , * fstr ;
@ -932,7 +932,7 @@ UniValue GatewaysBind(const CPubKey& pk, uint64_t txfee,std::string coin,uint256
UniValue GatewaysDeposit ( const CPubKey & pk , uint64_t txfee , uint256 bindtxid , int32_t height , std : : string refcoin , uint256 cointxid , int32_t claimvout , std : : string deposithex , std : : vector < uint8_t > proof , CPubKey destpub , int64_t amount )
{
CMutableTransaction mtx = CreateNewContextualCMutableTransaction ( Params ( ) . GetConsensus ( ) , komodo _nextheight( ) ) ;
CMutableTransaction mtx = CreateNewContextualCMutableTransaction ( Params ( ) . GetConsensus ( ) , hush _nextheight( ) ) ;
CTransaction tx ; CPubKey mypk ; uint256 oracletxid , merkleroot , mhash , hashBlock , tokenid , txid ;
int64_t totalsupply ; int32_t i , m , n , numvouts ; uint8_t M , N , taddr , prefix , prefix2 , wiftype ; std : : string coin ; struct CCcontract_info * cp , C ;
std : : vector < CPubKey > pubkeys , publishers ; std : : vector < uint256 > txids ; char str [ 65 ] , depositaddr [ 64 ] , txidaddr [ 64 ] ;
@ -982,7 +982,7 @@ UniValue GatewaysDeposit(const CPubKey& pk, uint64_t txfee,uint256 bindtxid,int3
UniValue GatewaysClaim ( const CPubKey & pk , uint64_t txfee , uint256 bindtxid , std : : string refcoin , uint256 deposittxid , CPubKey destpub , int64_t amount )
{
CMutableTransaction mtx = CreateNewContextualCMutableTransaction ( Params ( ) . GetConsensus ( ) , komodo _nextheight( ) ) ;
CMutableTransaction mtx = CreateNewContextualCMutableTransaction ( Params ( ) . GetConsensus ( ) , hush _nextheight( ) ) ;
CTransaction tx ; CPubKey mypk , gatewayspk , tmpdestpub ; struct CCcontract_info * cp , C ; uint8_t M , N , taddr , prefix , prefix2 , wiftype ;
std : : string coin , deposithex ; std : : vector < CPubKey > pubkeys , publishers ; int64_t totalsupply , depositamount , tmpamount , inputs , CCchange = 0 ;
int32_t numvouts , claimvout , height ; std : : vector < uint8_t > proof ;
@ -1022,7 +1022,7 @@ UniValue GatewaysClaim(const CPubKey& pk, uint64_t txfee,uint256 bindtxid,std::s
UniValue GatewaysWithdraw ( const CPubKey & pk , uint64_t txfee , uint256 bindtxid , std : : string refcoin , CPubKey withdrawpub , int64_t amount )
{
CMutableTransaction mtx = CreateNewContextualCMutableTransaction ( Params ( ) . GetConsensus ( ) , komodo _nextheight( ) ) ;
CMutableTransaction mtx = CreateNewContextualCMutableTransaction ( Params ( ) . GetConsensus ( ) , hush _nextheight( ) ) ;
CTransaction tx ; CPubKey mypk , gatewayspk , signerpk ; uint256 txid , tokenid , hashBlock , oracletxid , tmptokenid , tmpbindtxid , withdrawtxid ; int32_t vout , numvouts ;
int64_t nValue , totalsupply , inputs , CCchange = 0 , tmpamount ; uint8_t funcid , K , M , N , taddr , prefix , prefix2 , wiftype ; std : : string coin , hex ;
std : : vector < CPubKey > pubkeys ; char depositaddr [ 64 ] , coinaddr [ 64 ] ; struct CCcontract_info * cp , C , * cpTokens , CTokens ;
@ -1078,7 +1078,7 @@ UniValue GatewaysWithdraw(const CPubKey& pk, uint64_t txfee,uint256 bindtxid,std
UniValue GatewaysPartialSign ( const CPubKey & pk , uint64_t txfee , uint256 lasttxid , std : : string refcoin , std : : string hex )
{
CMutableTransaction mtx = CreateNewContextualCMutableTransaction ( Params ( ) . GetConsensus ( ) , komodo _nextheight( ) ) ;
CMutableTransaction mtx = CreateNewContextualCMutableTransaction ( Params ( ) . GetConsensus ( ) , hush _nextheight( ) ) ;
CPubKey mypk , withdrawpub , signerpk , gatewayspk ; struct CCcontract_info * cp , C ; CTransaction tx , tmptx ;
std : : vector < std : : pair < CAddressUnspentKey , CAddressUnspentValue > > unspentOutputs ; char funcid , depositaddr [ 64 ] ;
int32_t numvouts ; uint256 withdrawtxid , hashBlock , bindtxid , tokenid , oracletxid , tmptokenid ; std : : string coin , tmphex ; int64_t amount , totalsupply ;
@ -1133,7 +1133,7 @@ UniValue GatewaysPartialSign(const CPubKey& pk, uint64_t txfee,uint256 lasttxid,
UniValue GatewaysCompleteSigning ( const CPubKey & pk , uint64_t txfee , uint256 lasttxid , std : : string refcoin , std : : string hex )
{
CMutableTransaction mtx = CreateNewContextualCMutableTransaction ( Params ( ) . GetConsensus ( ) , komodo _nextheight( ) ) ;
CMutableTransaction mtx = CreateNewContextualCMutableTransaction ( Params ( ) . GetConsensus ( ) , hush _nextheight( ) ) ;
CPubKey mypk , gatewayspk , signerpk , withdrawpub ; struct CCcontract_info * cp , C ; char funcid , depositaddr [ 64 ] ; int64_t amount , totalsupply ;
std : : string coin , tmphex ; CTransaction tx , tmptx ; uint256 withdrawtxid , hashBlock , tokenid , tmptokenid , bindtxid , oracletxid ; int32_t numvouts ;
uint8_t K = 0 , M , N , taddr , prefix , prefix2 , wiftype ; std : : vector < CPubKey > pubkeys ;
@ -1187,7 +1187,7 @@ UniValue GatewaysCompleteSigning(const CPubKey& pk, uint64_t txfee,uint256 lastt
UniValue GatewaysMarkDone ( const CPubKey & pk , uint64_t txfee , uint256 completetxid , std : : string refcoin )
{
CMutableTransaction mtx = CreateNewContextualCMutableTransaction ( Params ( ) . GetConsensus ( ) , komodo _nextheight( ) ) ;
CMutableTransaction mtx = CreateNewContextualCMutableTransaction ( Params ( ) . GetConsensus ( ) , hush _nextheight( ) ) ;
CPubKey mypk ; struct CCcontract_info * cp , C ; char depositaddr [ 64 ] ; CTransaction tx ; int32_t numvouts ;
uint256 withdrawtxid , bindtxid , oracletxid , tokenid , tmptokenid , hashBlock ; std : : string coin , hex ;
uint8_t K , M , N , taddr , prefix , prefix2 , wiftype ; std : : vector < CPubKey > pubkeys ; int64_t amount , totalsupply ; CPubKey withdrawpub ;
@ -1499,7 +1499,7 @@ UniValue GatewaysDumpPrivKey(uint256 bindtxid,CKey key)
UniValue GatewaysInfo ( uint256 bindtxid )
{
CMutableTransaction mtx = CreateNewContextualCMutableTransaction ( Params ( ) . GetConsensus ( ) , komodo _nextheight( ) ) ;
CMutableTransaction mtx = CreateNewContextualCMutableTransaction ( Params ( ) . GetConsensus ( ) , hush _nextheight( ) ) ;
UniValue result ( UniValue : : VOBJ ) , a ( UniValue : : VARR ) ; std : : string coin ; char str [ 67 ] , numstr [ 65 ] , depositaddr [ 64 ] , gatewaystokens [ 64 ] ;
uint8_t M , N ; std : : vector < CPubKey > pubkeys ; uint8_t taddr , prefix , prefix2 , wiftype ; uint256 tokenid , oracletxid , hashBlock ; CTransaction tx ;
CPubKey Gatewayspk ; struct CCcontract_info * cp , C ; int32_t i ; int64_t numvouts , totalsupply , remaining ; std : : vector < CPubKey > msigpubkeys ;