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

Function JSONRPCTransactionError

src/rpc/util.cpp:382–389  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

380}
381
382UniValue JSONRPCTransactionError(TransactionError terr, const std::string& err_string)
383{
384 if (err_string.length() > 0) {
385 return JSONRPCError(RPCErrorFromTransactionError(terr), err_string);
386 } else {
387 return JSONRPCError(RPCErrorFromTransactionError(terr), TransactionErrorString(terr).original);
388 }
389}
390
391/**
392 * A pair of strings that can be aligned (through padding) with other Sections

Callers 6

sendFunction · 0.85
walletprocesspsbtFunction · 0.85
walletcreatefundedpsbtFunction · 0.85
FUZZ_TARGETFunction · 0.85
sendrawtransactionFunction · 0.85
combinepsbtFunction · 0.85

Calls 3

JSONRPCErrorFunction · 0.85
TransactionErrorStringFunction · 0.85

Tested by 1

FUZZ_TARGETFunction · 0.68