mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-10-11 03:53:22 +02:00
banman: Add, use CBanEntry ctor that takes ban reason
This commit is contained in:
@@ -102,8 +102,7 @@ void BanMan::Ban(const CNetAddr& netAddr, const BanReason& banReason, int64_t ba
|
||||
|
||||
void BanMan::Ban(const CSubNet& subNet, const BanReason& banReason, int64_t bantimeoffset, bool sinceUnixEpoch)
|
||||
{
|
||||
CBanEntry banEntry(GetTime());
|
||||
banEntry.banReason = banReason;
|
||||
CBanEntry banEntry(GetTime(), banReason);
|
||||
|
||||
int64_t normalized_bantimeoffset = bantimeoffset;
|
||||
bool normalized_sinceUnixEpoch = sinceUnixEpoch;
|
||||
|
Reference in New Issue
Block a user