aboutsummaryrefslogtreecommitdiff
path: root/src/addrman.h
diff options
context:
space:
mode:
authorMarcoFalke <falke.marco@gmail.com>2021-07-22 20:56:27 +0200
committerMarcoFalke <falke.marco@gmail.com>2021-07-23 11:31:05 +0200
commitfa32024d51c098441623e246f304a80f011e29d1 (patch)
treee2c6bc1c7dcc2454241093b8bc7590716d228227 /src/addrman.h
parentfab755b77f88873f01cbd988051de7ad3f0150de (diff)
downloadbitcoin-fa32024d51c098441623e246f304a80f011e29d1.tar.xz
Add missing GUARDED_BY to CAddrMan::insecure_rand
Diffstat (limited to 'src/addrman.h')
-rw-r--r--src/addrman.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/addrman.h b/src/addrman.h
index d4f67c2f5b..6347a24d55 100644
--- a/src/addrman.h
+++ b/src/addrman.h
@@ -631,12 +631,12 @@ protected:
uint256 nKey;
//! Source of random numbers for randomization in inner loops
- mutable FastRandomContext insecure_rand;
+ mutable FastRandomContext insecure_rand GUARDED_BY(cs);
-private:
//! A mutex to protect the inner data structures.
mutable Mutex cs;
+private:
//! Serialization versions.
enum Format : uint8_t {
V0_HISTORICAL = 0, //!< historic format, before commit e6b343d88