JSMongere / Test2

0 stars 0 forks source link

you. forget. #6

Open mrfltvs opened 8 months ago

mrfltvs commented 8 months ago

// Function to check if a block's hash is valid bool isHashValid(const Block& block) { std::string targetHash; for (int i = 0; i < 4; i++) { targetHash += "0"; }

return block.hash.substr(0, 4) == targetHash;

}

JSMongere commented 8 months ago

Sorry...