Reject proofs of work that do not match claimed amount
This commit is contained in:
@@ -729,9 +729,6 @@ bool CheckProofOfWork(const CBlockHeader &blkHeader, uint8_t *pubkey33, int32_t
|
|||||||
if ( HUSH_LOADINGBLOCKS != 0 )
|
if ( HUSH_LOADINGBLOCKS != 0 )
|
||||||
return true;
|
return true;
|
||||||
|
|
||||||
/*
|
|
||||||
if ( SMART_CHAIN_SYMBOL[0] != 0 || height > 792000 )
|
|
||||||
{
|
|
||||||
if ( Params().NetworkIDString() != "regtest" )
|
if ( Params().NetworkIDString() != "regtest" )
|
||||||
{
|
{
|
||||||
for (i=31; i>=0; i--)
|
for (i=31; i>=0; i--)
|
||||||
@@ -748,8 +745,6 @@ bool CheckProofOfWork(const CBlockHeader &blkHeader, uint8_t *pubkey33, int32_t
|
|||||||
fprintf(stderr," <- origpubkey\n");
|
fprintf(stderr," <- origpubkey\n");
|
||||||
}
|
}
|
||||||
return false;
|
return false;
|
||||||
}
|
|
||||||
*/
|
|
||||||
}
|
}
|
||||||
/*for (i=31; i>=0; i--)
|
/*for (i=31; i>=0; i--)
|
||||||
fprintf(stderr,"%02x",((uint8_t *)&hash)[i]);
|
fprintf(stderr,"%02x",((uint8_t *)&hash)[i]);
|
||||||
|
|||||||
Reference in New Issue
Block a user