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

Method pushKV

src/univalue/lib/univalue.cpp:133–144  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

131}
132
133bool UniValue::pushKV(const std::string& key, const UniValue& val_)
134{
135 if (typ != VOBJ)
136 return false;
137
138 size_t idx;
139 if (findKey(key, idx))
140 values[idx] = val_;
141 else
142 __pushKV(key, val_);
143 return true;
144}
145
146bool UniValue::pushKVs(const UniValue& obj)
147{

Callers 15

ScriptPubKeyToUnivFunction · 0.45
TxToUnivFunction · 0.45
rest_block_filterFunction · 0.45
rest_getutxosFunction · 0.45
rest_blockhash_by_heightFunction · 0.45
ToJsonMethod · 0.45
BanMapToJsonFunction · 0.45
ProcessReplyMethod · 0.45
ProcessReplyMethod · 0.45
ProcessReplyMethod · 0.45
GetWalletBalancesFunction · 0.45

Calls

no outgoing calls

Tested by 3

BOOST_FIXTURE_TEST_CASEFunction · 0.36
BOOST_AUTO_TEST_CASEFunction · 0.36
BOOST_AUTO_TEST_CASEFunction · 0.36