test
This commit is contained in:
@@ -163,7 +163,7 @@ void komodo_gateway_deposits(CMutableTransaction *txNew,int32_t shortflag,char *
|
|||||||
{
|
{
|
||||||
struct pax_transaction *pax,*tmp; uint8_t *script,opcode,opret[10000],data[10000]; int32_t i,len=0,opretlen=0,numvouts=1;
|
struct pax_transaction *pax,*tmp; uint8_t *script,opcode,opret[10000],data[10000]; int32_t i,len=0,opretlen=0,numvouts=1;
|
||||||
PENDING_KOMODO_TX = 0;
|
PENDING_KOMODO_TX = 0;
|
||||||
if ( strcmp(symbol,"KMD") == 0 )
|
if ( strcmp(symbol,"KMD") != 0 )
|
||||||
opcode = 'I';
|
opcode = 'I';
|
||||||
else opcode = 'X';
|
else opcode = 'X';
|
||||||
HASH_ITER(hh,PAX,pax,tmp)
|
HASH_ITER(hh,PAX,pax,tmp)
|
||||||
|
|||||||
@@ -378,13 +378,11 @@ CBlockTemplate* CreateNewBlock(const CScript& scriptPubKeyIn)
|
|||||||
}
|
}
|
||||||
else if ( komodo_is_issuer() != 0 )
|
else if ( komodo_is_issuer() != 0 )
|
||||||
{
|
{
|
||||||
komodo_gateway_deposits(&txNew,0,(char *)"KMD");
|
komodo_gateway_deposits(&txNew,0,ASSETCHAINS_SYMBOL);
|
||||||
fprintf(stderr,"txNew numvouts.%d\n",(int32_t)txNew.vout.size());
|
fprintf(stderr,"txNew numvouts.%d\n",(int32_t)txNew.vout.size());
|
||||||
}
|
}
|
||||||
|
|
||||||
pblock->vtx[0] = txNew;
|
pblock->vtx[0] = txNew;
|
||||||
pblocktemplate->vTxFees[0] = -nFees;
|
pblocktemplate->vTxFees[0] = -nFees;
|
||||||
|
|
||||||
// Randomise nonce
|
// Randomise nonce
|
||||||
arith_uint256 nonce = UintToArith256(GetRandHash());
|
arith_uint256 nonce = UintToArith256(GetRandHash());
|
||||||
// Clear the top and bottom 16 bits (for local use as thread flags and counters)
|
// Clear the top and bottom 16 bits (for local use as thread flags and counters)
|
||||||
|
|||||||
Reference in New Issue
Block a user