mirror of
https://github.com/bitcoin/bitcoin.git
synced 2026-01-20 23:29:12 +01:00
scripted-diff: LogPrintf -> LogInfo
This refactor does not change behavior. -BEGIN VERIFY SCRIPT- sed --in-place 's/\<LogPrintf\>/LogInfo/g' \ $( git grep -l '\<LogPrintf\>' -- ./contrib/ ./src/ ./test/ ':(exclude)src/logging.h' ) -END VERIFY SCRIPT-
This commit is contained in:
@@ -60,13 +60,13 @@ void BanMapFromJson(const UniValue& bans_json, banmap_t& bans)
|
||||
for (const auto& ban_entry_json : bans_json.getValues()) {
|
||||
const int version{ban_entry_json[BANMAN_JSON_VERSION_KEY].getInt<int>()};
|
||||
if (version != CBanEntry::CURRENT_VERSION) {
|
||||
LogPrintf("Dropping entry with unknown version (%s) from ban list\n", version);
|
||||
LogInfo("Dropping entry with unknown version (%s) from ban list\n", version);
|
||||
continue;
|
||||
}
|
||||
const auto& subnet_str = ban_entry_json[BANMAN_JSON_ADDR_KEY].get_str();
|
||||
const CSubNet subnet{LookupSubNet(subnet_str)};
|
||||
if (!subnet.IsValid()) {
|
||||
LogPrintf("Dropping entry with unparseable address or subnet (%s) from ban list\n", subnet_str);
|
||||
LogInfo("Dropping entry with unparseable address or subnet (%s) from ban list\n", subnet_str);
|
||||
continue;
|
||||
}
|
||||
bans.insert_or_assign(subnet, CBanEntry{ban_entry_json});
|
||||
|
||||
Reference in New Issue
Block a user