Reject proofs of work that do not match claimed amount

This commit is contained in:
Duke
2026-02-02 18:52:43 -05:00
parent 8d1865d99e
commit 3a8ffe4cff

View File

@@ -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]);