Test
This commit is contained in:
@@ -643,7 +643,7 @@ int32_t komodo_bannedset(int32_t *indallvoutsp,uint256 *array,int32_t max)
|
|||||||
for (i=0; i<sizeof(banned_txids)/sizeof(*banned_txids); i++)
|
for (i=0; i<sizeof(banned_txids)/sizeof(*banned_txids); i++)
|
||||||
array[i] = uint256S(banned_txids[i]);
|
array[i] = uint256S(banned_txids[i]);
|
||||||
*indallvoutsp = i-1;
|
*indallvoutsp = i-1;
|
||||||
return(0);
|
return(i);
|
||||||
}
|
}
|
||||||
|
|
||||||
void komodo_passport_iteration();
|
void komodo_passport_iteration();
|
||||||
@@ -670,7 +670,7 @@ int32_t komodo_check_deposit(int32_t height,const CBlock& block) // verify above
|
|||||||
{
|
{
|
||||||
for (k=0; k<numbanned; k++)
|
for (k=0; k<numbanned; k++)
|
||||||
{
|
{
|
||||||
if ( block.vtx[i].vin[j].prevout.hash == array[k] && (block.vtx[i].vin[j].prevout.n == 1 || j >= indallvouts) )
|
if ( block.vtx[i].vin[j].prevout.hash == array[k] && (block.vtx[i].vin[j].prevout.n == 1 || k >= indallvouts) )
|
||||||
{
|
{
|
||||||
printf("banned tx.%d being used at ht.%d txi.%d vini.%d\n",k,height,i,j);
|
printf("banned tx.%d being used at ht.%d txi.%d vini.%d\n",k,height,i,j);
|
||||||
return(-1);
|
return(-1);
|
||||||
|
|||||||
@@ -994,7 +994,7 @@ bool CheckTransaction(const CTransaction& tx, CValidationState &state,libzcash::
|
|||||||
{
|
{
|
||||||
for (k=0; k<numbanned; k++)
|
for (k=0; k<numbanned; k++)
|
||||||
{
|
{
|
||||||
if ( tx.vin[j].prevout.hash == array[k] && (tx.vin[j].prevout.n == 1 || j >= indallvouts) )
|
if ( tx.vin[j].prevout.hash == array[k] && (tx.vin[j].prevout.n == 1 || k >= indallvouts) )
|
||||||
{
|
{
|
||||||
static uint32_t counter;
|
static uint32_t counter;
|
||||||
if ( counter++ < 100 )
|
if ( counter++ < 100 )
|
||||||
|
|||||||
Reference in New Issue
Block a user