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

Function RPCErrorFromPSBTError

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

Source from the content-addressed store, hash-verified

377}
378
379RPCErrorCode RPCErrorFromPSBTError(PSBTError err)
380{
381 switch (err) {
382 case PSBTError::UNSUPPORTED:
383 return RPC_INVALID_PARAMETER;
384 case PSBTError::SIGHASH_MISMATCH:
385 return RPC_DESERIALIZATION_ERROR;
386 default: break;
387 }
388 return RPC_TRANSACTION_ERROR;
389}
390
391RPCErrorCode RPCErrorFromTransactionError(TransactionError terr)
392{

Callers 1

JSONRPCPSBTErrorFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected