This PR adds test coverage to kill the following mutant (https://corecheck.dev/mutation/src/addrman.cpp#L76):
0diff --git a/src/addrman.cpp b/src/addrman.cpp
1index 9c3a24db90..0ffd349315 100644
2--- a/src/addrman.cpp
3+++ b/src/addrman.cpp
4@@ -73,7 +73,7 @@ bool AddrInfo::IsTerrible(NodeSeconds now) const
5 }
6
7 if (nTime > now + 10min) { // came in a flying DeLorean
8- return true;
9+ return false;
10 }
When the nTime
is set 10 minutes in the future the addr should be marked as terrible.