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

Function RegisterSetJson

src/bitcoin-tx.cpp:130–139  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

128}
129
130static void RegisterSetJson(const std::string& key, const std::string& rawJson)
131{
132 UniValue val;
133 if (!val.read(rawJson)) {
134 std::string strErr = "Cannot parse JSON for key " + key;
135 throw std::runtime_error(strErr);
136 }
137
138 registers[key] = val;
139}
140
141static void RegisterSet(const std::string& strInput)
142{

Callers 2

RegisterSetFunction · 0.85
RegisterLoadFunction · 0.85

Calls 1

readMethod · 0.45

Tested by

no test coverage detected