MCPcopy Create free account
hub / github.com/bitcoin/bitcoin / Write

Method Write

src/addrdb.cpp:142–153  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

140}
141
142bool CBanDB::Write(const banmap_t& banSet)
143{
144 std::vector<std::string> errors;
145 if (common::WriteSettings(m_banlist_json, {{JSON_KEY, BanMapToJson(banSet)}}, errors)) {
146 return true;
147 }
148
149 for (const auto& err : errors) {
150 LogError("%s\n", err);
151 }
152 return false;
153}
154
155bool CBanDB::Read(banmap_t& banSet)
156{

Callers 15

DestBinToAddrFunction · 0.45
FinalizeMethod · 0.45
CHash256Class · 0.45
FinalizeMethod · 0.45
CHash160Class · 0.45
HashFunction · 0.45
Hash160Function · 0.45
writeMethod · 0.45
GetHashMethod · 0.45
RIPEMD160Function · 0.45
SeedHardwareFastFunction · 0.45
SeedHardwareSlowFunction · 0.45

Calls 2

WriteSettingsFunction · 0.85
BanMapToJsonFunction · 0.85

Tested by

no test coverage detected