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

Method Write

src/wallet/db.h:61–72  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

59
60 template <typename K, typename T>
61 bool Write(const K& key, const T& value, bool fOverwrite = true)
62 {
63 CDataStream ssKey(SER_DISK, CLIENT_VERSION);
64 ssKey.reserve(1000);
65 ssKey << key;
66
67 CDataStream ssValue(SER_DISK, CLIENT_VERSION);
68 ssValue.reserve(10000);
69 ssValue << value;
70
71 return WriteKey(std::move(ssKey), std::move(ssValue), fOverwrite);
72 }
73
74 template <typename K>
75 bool Erase(const K& key)

Callers 10

WriteICMethod · 0.45
IsMineInnerFunction · 0.45
GetIDMethod · 0.45
BytesToKeySHA512AESMethod · 0.45
GetBlindingKeyMethod · 0.45
LoadWalletMethod · 0.45
CreateFromDumpFunction · 0.45
operator()Method · 0.45
RecurseImportDataFunction · 0.45
listunspentFunction · 0.45

Calls 1

reserveMethod · 0.45

Tested by

no test coverage detected