Merge bitcoin/bitcoin#33102: fuzz: cover BanMan::IsDiscouraged
c2ed576d2cfuzz: cover BanMan::IsDiscouraged (brunoerg) Pull request description: This PR adds fuzz coverage for the `IsDiscouraged` function in the banman target. This is the only function missing from `BanMan`. ACKs for top commit: maflcko: lgtm ACKc2ed576d2cmarcofleon: ACKc2ed576d2cTree-SHA512: 1dc5fc138f89413c46ed41195940f4c578ef996ce84595271b7433cae8a8f576205b649b493a7ec4804c712327d6c77b1004ba116b0144916377042adaaf6c5f
This commit is contained in:
1 file changed
+3
@@ -117,6 +117,9 @@ FUZZ_TARGET(banman, .init = initialize_banman)
|
|||||||
},
|
},
|
||||||
[&] {
|
[&] {
|
||||||
ban_man.Discourage(ConsumeNetAddr(fuzzed_data_provider));
|
ban_man.Discourage(ConsumeNetAddr(fuzzed_data_provider));
|
||||||
|
},
|
||||||
|
[&] {
|
||||||
|
ban_man.IsDiscouraged(ConsumeNetAddr(fuzzed_data_provider));
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
if (!force_read_and_write_to_err) {
|
if (!force_read_and_write_to_err) {
|
||||||
|
|||||||
Reference in new issue
Block a user