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

Function ExtractAndValidateValue

src/bitcoin-tx.cpp:197–204  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

195}
196
197static CAmount ExtractAndValidateValue(const std::string& strValue)
198{
199 if (std::optional<CAmount> parsed = ParseMoney(strValue)) {
200 return parsed.value();
201 } else {
202 throw std::runtime_error("invalid TX output value");
203 }
204}
205
206static void MutateTxVersion(CMutableTransaction& tx, const std::string& cmdVal)
207{

Callers 5

MutateTxAddOutAddrFunction · 0.85
MutateTxAddOutPubKeyFunction · 0.85
MutateTxAddOutMultiSigFunction · 0.85
MutateTxAddOutDataFunction · 0.85
MutateTxAddOutScriptFunction · 0.85

Calls 2

ParseMoneyFunction · 0.85
valueMethod · 0.45

Tested by

no test coverage detected