diff options
| author | practicalswift <[email protected]> | 2018-08-13 13:24:52 +0200 |
|---|---|---|
| committer | practicalswift <[email protected]> | 2018-08-26 00:25:28 +0200 |
| commit | 9e0a514112df4f2b85abf09885a8e7898b4c09ae (patch) | |
| tree | 00a106e11f992cf2d0af96ed6dff415466f8c788 /src/net_processing.h | |
| parent | Merge #13707: tests: Add usage note to check-rpc-mappings.py (diff) | |
| download | discoin-9e0a514112df4f2b85abf09885a8e7898b4c09ae.tar.xz discoin-9e0a514112df4f2b85abf09885a8e7898b4c09ae.zip | |
Add compile time checking for all cs_main runtime locking assertions
Diffstat (limited to 'src/net_processing.h')
| -rw-r--r-- | src/net_processing.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/net_processing.h b/src/net_processing.h index 7caefc80c..f16d00032 100644 --- a/src/net_processing.h +++ b/src/net_processing.h @@ -61,7 +61,7 @@ public: bool SendMessages(CNode* pto) override EXCLUSIVE_LOCKS_REQUIRED(pto->cs_sendProcessing); /** Consider evicting an outbound peer based on the amount of time they've been behind our tip */ - void ConsiderEviction(CNode *pto, int64_t time_in_seconds); + void ConsiderEviction(CNode *pto, int64_t time_in_seconds) EXCLUSIVE_LOCKS_REQUIRED(cs_main); /** Evict extra outbound peers. If we think our tip may be stale, connect to an extra outbound */ void CheckForStaleTipAndEvictPeers(const Consensus::Params &consensusParams); /** If we have extra outbound peers, try to disconnect the one with the oldest block announcement */ |