diff options
author | glozow <gloriajzhao@gmail.com> | 2021-07-20 11:45:52 +0100 |
---|---|---|
committer | glozow <gloriajzhao@gmail.com> | 2022-06-23 14:35:04 +0100 |
commit | fa076515b07ac4b10b2134e323bf4f56be5996a8 (patch) | |
tree | 6f4851be8f004c8fc03cb207e70df14c8e7ffe54 /src/util/error.cpp | |
parent | b9ef5a10e2fa4609d048db57b99463305455ebe4 (diff) |
[rpc] add new submitpackage RPC
It could be unsafe/confusing to create an actual mainnet interface while
package relay doesn't exist. However, a regtest-only interface allows
wallet/application devs to test current package policies.
Diffstat (limited to 'src/util/error.cpp')
-rw-r--r-- | src/util/error.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/util/error.cpp b/src/util/error.cpp index af8cbd0353..22a5964279 100644 --- a/src/util/error.cpp +++ b/src/util/error.cpp @@ -35,6 +35,8 @@ bilingual_str TransactionErrorString(const TransactionError err) return Untranslated("External signer not found"); case TransactionError::EXTERNAL_SIGNER_FAILED: return Untranslated("External signer failed to sign"); + case TransactionError::INVALID_PACKAGE: + return Untranslated("Transaction rejected due to invalid package"); // no default case, so the compiler can warn about missing cases } assert(false); |