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

Function HasErrorMsg

src/wallet/spend.cpp:696–696  ·  view source on GitHub ↗

Returns true if the result contains an error and the message is not empty

Source from the content-addressed store, hash-verified

694
695// Returns true if the result contains an error and the message is not empty
696static bool HasErrorMsg(const util::Result<SelectionResult>& res) { return !util::ErrorString(res).empty(); }
697
698util::Result<SelectionResult> AttemptSelection(interfaces::Chain& chain, const CAmount& nTargetValue, OutputGroupTypeMap& groups,
699 const CoinSelectionParams& coin_selection_params, bool allow_mixed_output_types)

Callers 3

AttemptSelectionFunction · 0.70
ChooseSelectionResultFunction · 0.70
AutomaticCoinSelectionFunction · 0.70

Calls 2

ErrorStringFunction · 0.85
emptyMethod · 0.45

Tested by

no test coverage detected