Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge bitcoin#27935: fuzz: call lookup functions before calling
Ban
fca0a89 ci: remove "--exclude banman" for fuzzing in mac (brunoerg) f9b2863 fuzz: call lookup functions before calling `Ban` (brunoerg) Pull request description: Fixes bitcoin#27924 To not have any discrepancy, it's required to call lookup functions before calling `Ban`. If we don't do it, the assertion `assert(banmap == banmap_read);` may fail because `BanMapFromJson` will call `LookupSubNet` and cause the discrepancy between the banned and the loaded one. It happens especially in MacOS (bitcoin#27924). Also, calling lookup functions before banning is what RPC `setban` does. ACKs for top commit: maflcko: lgtm ACK fca0a89 dergoegge: ACK fca0a89 Tree-SHA512: a3d635088a556df4507e65542157f10b41d4f87dce42927b58c3b812f262f4544b6b57f3384eef1097ffdd7c32b8dd1556aae201254960cbfbf48d45551200f7
- Loading branch information