mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-11-11 14:38:29 +01:00
[tests] Make deterministic addrman use nKey = 1
addrman_tests fail when consistency checks are enabled, since the tests set the deterministic test addrman's nKey value to zero, which is an invalid value. Change this so that deterministic addrman's nKey value is set to 1. This requires updating a few tests that are using magic values derived from nKey being set to 0.
This commit is contained in:
@@ -497,7 +497,7 @@ public:
|
||||
: insecure_rand{deterministic}
|
||||
{
|
||||
Clear();
|
||||
if (deterministic) nKey.SetNull();
|
||||
if (deterministic) nKey = uint256{1};
|
||||
}
|
||||
|
||||
~CAddrMan()
|
||||
|
||||
Reference in New Issue
Block a user