MCPcopy Create free account
hub / github.com/bitcoin/bitcoin / ExtractAndValidateValue

Function ExtractAndValidateValue

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

Source from the content-addressed store, hash-verified

202}
203
204static CAmount ExtractAndValidateValue(const std::string& strValue)
205{
206 if (std::optional<CAmount> parsed = ParseMoney(strValue)) {
207 return parsed.value();
208 } else {
209 throw std::runtime_error("invalid TX output value");
210 }
211}
212
213static void MutateTxVersion(CMutableTransaction& tx, const std::string& cmdVal)
214{

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