mirror of
https://github.com/Xahau/xahaud.git
synced 2025-12-06 17:27:52 +00:00
Helper function.
This commit is contained in:
@@ -69,6 +69,14 @@ bool SuppressionTable::addSuppressionPeer(const uint256& index, uint64 peer, int
|
||||
return created;
|
||||
}
|
||||
|
||||
int SuppressionTable::getFlags(const uint256& index)
|
||||
{
|
||||
boost::mutex::scoped_lock sl(mSuppressionMutex);
|
||||
|
||||
bool created;
|
||||
return findCreateEntry(index, created).getFlags();
|
||||
}
|
||||
|
||||
bool SuppressionTable::addSuppressionFlags(const uint256& index, int flag)
|
||||
{
|
||||
boost::mutex::scoped_lock sl(mSuppressionMutex);
|
||||
|
||||
@@ -65,6 +65,7 @@ public:
|
||||
bool addSuppressionPeer(const uint256& index, uint64 peer, int& flags);
|
||||
bool addSuppressionFlags(const uint256& index, int flag);
|
||||
bool setFlag(const uint256& index, int flag);
|
||||
int getFlags(const uint256& index);
|
||||
|
||||
Suppression getEntry(const uint256&);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user