Skip to content

Commit 3fe3fdb

Browse files
committed
Merge bitcoin/bitcoin#33102: fuzz: cover BanMan::IsDiscouraged
c2ed576 fuzz: 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 ACK c2ed576 marcofleon: ACK c2ed576 Tree-SHA512: 1dc5fc138f89413c46ed41195940f4c578ef996ce84595271b7433cae8a8f576205b649b493a7ec4804c712327d6c77b1004ba116b0144916377042adaaf6c5f
2 parents 0060429 + c2ed576 commit 3fe3fdb

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/test/fuzz/banman.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -117,6 +117,9 @@ FUZZ_TARGET(banman, .init = initialize_banman)
117117
},
118118
[&] {
119119
ban_man.Discourage(ConsumeNetAddr(fuzzed_data_provider));
120+
},
121+
[&] {
122+
ban_man.IsDiscouraged(ConsumeNetAddr(fuzzed_data_provider));
120123
});
121124
}
122125
if (!force_read_and_write_to_err) {

0 commit comments

Comments
 (0)