test
This commit is contained in:
@@ -25,7 +25,7 @@ struct pax_transaction
|
|||||||
char symbol[16],coinaddr[64]; uint8_t rmd160[20],shortflag;
|
char symbol[16],coinaddr[64]; uint8_t rmd160[20],shortflag;
|
||||||
} *PAX;
|
} *PAX;
|
||||||
|
|
||||||
uint64_t komodo_paxtotal()
|
/*uint64_t komodo_paxtotal()
|
||||||
{
|
{
|
||||||
struct pax_transaction *pax,*tmp; uint64_t total = 0;
|
struct pax_transaction *pax,*tmp; uint64_t total = 0;
|
||||||
HASH_ITER(hh,PAX,pax,tmp)
|
HASH_ITER(hh,PAX,pax,tmp)
|
||||||
@@ -34,6 +34,20 @@ uint64_t komodo_paxtotal()
|
|||||||
total += pax->fiatoshis;
|
total += pax->fiatoshis;
|
||||||
}
|
}
|
||||||
return(total);
|
return(total);
|
||||||
|
}*/
|
||||||
|
|
||||||
|
uint64_t dpow_paxtotal(struct dpow_info *dp)
|
||||||
|
{
|
||||||
|
struct pax_transaction *pax,*tmp; uint64_t total = 0;
|
||||||
|
tmp = 0;
|
||||||
|
while ( (pax= PAX->hh.next) != 0 && pax != tmp )
|
||||||
|
{
|
||||||
|
if ( pax->marked == 0 )
|
||||||
|
total += pax->fiatoshis;
|
||||||
|
tmp = pax;
|
||||||
|
pax = pax->hh.next;
|
||||||
|
}
|
||||||
|
return(total);
|
||||||
}
|
}
|
||||||
|
|
||||||
struct pax_transaction *komodo_paxfind(struct pax_transaction *space,uint256 txid,uint16_t vout)
|
struct pax_transaction *komodo_paxfind(struct pax_transaction *space,uint256 txid,uint16_t vout)
|
||||||
@@ -135,7 +149,9 @@ void komodo_gateway_deposits(CMutableTransaction *txNew,int32_t shortflag,char *
|
|||||||
{
|
{
|
||||||
struct pax_transaction *pax,*tmp; uint8_t *script,opret[10000],data[10000]; int32_t i,len=0,opretlen=0,numvouts=1;
|
struct pax_transaction *pax,*tmp; uint8_t *script,opret[10000],data[10000]; int32_t i,len=0,opretlen=0,numvouts=1;
|
||||||
PENDING_KOMODO_TX = 0;
|
PENDING_KOMODO_TX = 0;
|
||||||
HASH_ITER(hh,PAX,pax,tmp)
|
//HASH_ITER(hh,PAX,pax,tmp)
|
||||||
|
tmp = 0;
|
||||||
|
while ( (pax= PAX->hh.next) != 0 && pax != tmp )
|
||||||
{
|
{
|
||||||
if ( pax->marked != 0 )
|
if ( pax->marked != 0 )
|
||||||
continue;
|
continue;
|
||||||
@@ -161,6 +177,8 @@ void komodo_gateway_deposits(CMutableTransaction *txNew,int32_t shortflag,char *
|
|||||||
PENDING_KOMODO_TX += pax->fiatoshis;
|
PENDING_KOMODO_TX += pax->fiatoshis;
|
||||||
if ( numvouts++ >= 64 )
|
if ( numvouts++ >= 64 )
|
||||||
break;
|
break;
|
||||||
|
tmp = pax;
|
||||||
|
pax = pax->hh.next;
|
||||||
}
|
}
|
||||||
if ( numvouts > 1 )
|
if ( numvouts > 1 )
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user