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

Function JSONRPCTransactionError

src/rpc/util.cpp:408–415  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

406}
407
408UniValue JSONRPCTransactionError(TransactionError terr, const std::string& err_string)
409{
410 if (err_string.length() > 0) {
411 return JSONRPCError(RPCErrorFromTransactionError(terr), err_string);
412 } else {
413 return JSONRPCError(RPCErrorFromTransactionError(terr), TransactionErrorString(terr).original);
414 }
415}
416
417/**
418 * A pair of strings that can be aligned (through padding) with other Sections

Callers 3

FUZZ_TARGETFunction · 0.85
sendrawtransactionFunction · 0.85
submitpackageFunction · 0.85

Calls 3

JSONRPCErrorFunction · 0.85
TransactionErrorStringFunction · 0.85

Tested by 1

FUZZ_TARGETFunction · 0.68