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

Function PSBTErrorString

src/common/messages.cpp:104–125  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

102}
103
104bilingual_str PSBTErrorString(PSBTError err)
105{
106 switch (err) {
107 case PSBTError::MISSING_INPUTS:
108 return Untranslated("Inputs missing or spent");
109 case PSBTError::SIGHASH_MISMATCH:
110 return Untranslated("Specified sighash value does not match value stored in PSBT");
111 case PSBTError::EXTERNAL_SIGNER_NOT_FOUND:
112 return Untranslated("External signer not found");
113 case PSBTError::EXTERNAL_SIGNER_FAILED:
114 return Untranslated("External signer failed to sign");
115 case PSBTError::UNSUPPORTED:
116 return Untranslated("Signer does not support PSBT");
117 case PSBTError::INCOMPLETE:
118 return Untranslated("Input needs additional signatures or other data");
119 case PSBTError::INVALID_TX:
120 return Untranslated("The transaction cannot be valid");
121 case PSBTError::OK:
122 return Untranslated("No errors");
123 } // no default case, so the compiler can warn about missing cases
124 assert(false);
125}
126
127bilingual_str TransactionErrorString(const TransactionError err)
128{

Callers 3

openWithPSBTMethod · 0.85
signTransactionMethod · 0.85
JSONRPCPSBTErrorFunction · 0.85

Calls 1

UntranslatedFunction · 0.85

Tested by

no test coverage detected