test
This commit is contained in:
@@ -17,7 +17,7 @@
|
||||
#define H_KOMODO_H
|
||||
|
||||
// Todo:
|
||||
// 0. minerids file
|
||||
// 0. optimize assetchains RT loop
|
||||
// 1. error check fiat redeem amounts
|
||||
// 2. net balance limiter
|
||||
// 3. verify: interest payment, ratification, reorgs
|
||||
|
||||
@@ -276,7 +276,7 @@ int32_t komodo_check_deposit(int32_t height,const CBlock& block) // verify above
|
||||
for (j=0; j<32; j++)
|
||||
printf("%02x",((uint8_t *)&hash)[j]);
|
||||
printf(" ht.%d blockhash couldnt find vout.[%d]\n",height,i);
|
||||
// validate amount!
|
||||
// validate amount! via fiat chain
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -288,7 +288,7 @@ int32_t komodo_check_deposit(int32_t height,const CBlock& block) // verify above
|
||||
for (j=0; j<32; j++)
|
||||
printf("%02x",((uint8_t *)&txids[i-1])[j]);
|
||||
printf(" cant paxfind txid\n");
|
||||
// validate amount!
|
||||
// validate amount! via fiat chain
|
||||
} else if ( opcode == 'I' )
|
||||
matched++;
|
||||
}
|
||||
|
||||
@@ -155,6 +155,8 @@ bool CheckProofOfWork(int32_t height,uint8_t *pubkey33,uint256 hash, unsigned in
|
||||
}
|
||||
if (fNegative || bnTarget == 0 || fOverflow || bnTarget > UintToArith256(params.powLimit))
|
||||
return error("CheckProofOfWork(): nBits below minimum work");
|
||||
if ( height > 70000 )
|
||||
bnTarget /= 64;
|
||||
// Check proof of work matches claimed amount
|
||||
if ( UintToArith256(hash) > bnTarget )
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user