mirror of
https://github.com/kvazar-network/kevacoin.git
synced 2025-01-17 18:40:09 +00:00
Remove double brackets in addrman
This commit is contained in:
parent
dbfaade72a
commit
303352286f
@ -529,23 +529,19 @@ public:
|
|||||||
//! Mark an entry as accessible.
|
//! Mark an entry as accessible.
|
||||||
void Good(const CService &addr, int64_t nTime = GetAdjustedTime())
|
void Good(const CService &addr, int64_t nTime = GetAdjustedTime())
|
||||||
{
|
{
|
||||||
{
|
LOCK(cs);
|
||||||
LOCK(cs);
|
Check();
|
||||||
Check();
|
Good_(addr, nTime);
|
||||||
Good_(addr, nTime);
|
Check();
|
||||||
Check();
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
//! Mark an entry as connection attempted to.
|
//! Mark an entry as connection attempted to.
|
||||||
void Attempt(const CService &addr, bool fCountFailure, int64_t nTime = GetAdjustedTime())
|
void Attempt(const CService &addr, bool fCountFailure, int64_t nTime = GetAdjustedTime())
|
||||||
{
|
{
|
||||||
{
|
LOCK(cs);
|
||||||
LOCK(cs);
|
Check();
|
||||||
Check();
|
Attempt_(addr, fCountFailure, nTime);
|
||||||
Attempt_(addr, fCountFailure, nTime);
|
Check();
|
||||||
Check();
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -579,12 +575,10 @@ public:
|
|||||||
//! Mark an entry as currently-connected-to.
|
//! Mark an entry as currently-connected-to.
|
||||||
void Connected(const CService &addr, int64_t nTime = GetAdjustedTime())
|
void Connected(const CService &addr, int64_t nTime = GetAdjustedTime())
|
||||||
{
|
{
|
||||||
{
|
LOCK(cs);
|
||||||
LOCK(cs);
|
Check();
|
||||||
Check();
|
Connected_(addr, nTime);
|
||||||
Connected_(addr, nTime);
|
Check();
|
||||||
Check();
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void SetServices(const CService &addr, ServiceFlags nServices)
|
void SetServices(const CService &addr, ServiceFlags nServices)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user