aboutsummaryrefslogtreecommitdiff
path: root/CMakePresets.json
diff options
context:
space:
mode:
authormarcofleon <marleo23@proton.me>2024-08-13 11:42:59 +0100
committermarcofleon <marleo23@proton.me>2024-09-02 15:43:33 +0100
commita0eaa4749fe0f755e113eee70dee1989bdc07ad5 (patch)
tree357c337218bc1b39c6490ca111358c736c55acbc /CMakePresets.json
parenta3f6f5acd89f2f5bb136ec247f259d212e8944d0 (diff)
Add FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION in PoW check
To avoid PoW being a blocker for fuzz tests, `FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION` is used in fuzz builds to bypass the actual PoW validation in `CheckProofOfWork`. It's replaced with a check on the last byte of the hash, which allows the fuzzer to quickly generate (in)valid blocks by checking a single bit, rather than performing the full PoW computation. If PoW is the target of a fuzz test, then it should call `CheckProofOfWorkImpl`.
Diffstat (limited to 'CMakePresets.json')
0 files changed, 0 insertions, 0 deletions