MCPcopy Create free account
hub / github.com/ElementsProject/elements / Write

Method Write

src/addrdb.cpp:130–141  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

128}
129
130bool CBanDB::Write(const banmap_t& banSet)
131{
132 std::vector<std::string> errors;
133 if (util::WriteSettings(m_banlist_json, {{JSON_KEY, BanMapToJson(banSet)}}, errors)) {
134 return true;
135 }
136
137 for (const auto& err : errors) {
138 error("%s", err);
139 }
140 return false;
141}
142
143bool CBanDB::Read(banmap_t& banSet)
144{

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
SeedHardwareFastFunction · 0.45
SeedHardwareSlowFunction · 0.45

Calls 3

WriteSettingsFunction · 0.85
BanMapToJsonFunction · 0.85
errorFunction · 0.85

Tested by

no test coverage detected