aboutsummaryrefslogtreecommitdiff
path: root/src/addrman.h
diff options
context:
space:
mode:
authorMatt Corallo <git@bluematt.me>2016-11-25 18:13:48 -0800
committerMatt Corallo <git@bluematt.me>2016-11-26 15:42:55 -0800
commit303352286f2af0f12fd5ae7f65ad48330b5a00ec (patch)
tree3cc87b312389d039b05debfc8ba3837963d4f81c /src/addrman.h
parentdbfaade72a9d9c1e503c47f8e12d26b1540a921b (diff)
Remove double brackets in addrman
Diffstat (limited to 'src/addrman.h')
-rw-r--r--src/addrman.h30
1 files changed, 12 insertions, 18 deletions
diff --git a/src/addrman.h b/src/addrman.h
index d466eefb82..76e7b210f7 100644
--- a/src/addrman.h
+++ b/src/addrman.h
@@ -529,23 +529,19 @@ public:
//! Mark an entry as accessible.
void Good(const CService &addr, int64_t nTime = GetAdjustedTime())
{
- {
- LOCK(cs);
- Check();
- Good_(addr, nTime);
- Check();
- }
+ LOCK(cs);
+ Check();
+ Good_(addr, nTime);
+ Check();
}
//! Mark an entry as connection attempted to.
void Attempt(const CService &addr, bool fCountFailure, int64_t nTime = GetAdjustedTime())
{
- {
- LOCK(cs);
- Check();
- Attempt_(addr, fCountFailure, nTime);
- Check();
- }
+ LOCK(cs);
+ Check();
+ Attempt_(addr, fCountFailure, nTime);
+ Check();
}
/**
@@ -579,12 +575,10 @@ public:
//! Mark an entry as currently-connected-to.
void Connected(const CService &addr, int64_t nTime = GetAdjustedTime())
{
- {
- LOCK(cs);
- Check();
- Connected_(addr, nTime);
- Check();
- }
+ LOCK(cs);
+ Check();
+ Connected_(addr, nTime);
+ Check();
}
void SetServices(const CService &addr, ServiceFlags nServices)