aboutsummaryrefslogtreecommitdiff
path: root/src/rpc/mining.cpp
diff options
context:
space:
mode:
authorMarcoFalke <falke.marco@gmail.com>2020-10-13 15:21:03 +0200
committerMarcoFalke <falke.marco@gmail.com>2020-10-13 14:57:52 +0200
commit33330778230961cfbf2a24de36b5877e395cc596 (patch)
treed64f2f2a59a16d02025485e0e976280cf122c79a /src/rpc/mining.cpp
parentcccc7525697e7b8d99b545e34f0f504c78ffdb94 (diff)
rpc: Adjust witness-tx deserialize error message
Diffstat (limited to 'src/rpc/mining.cpp')
-rw-r--r--src/rpc/mining.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/rpc/mining.cpp b/src/rpc/mining.cpp
index d9cc6f8832..661181850b 100644
--- a/src/rpc/mining.cpp
+++ b/src/rpc/mining.cpp
@@ -346,7 +346,7 @@ static UniValue generateblock(const JSONRPCRequest& request)
txs.push_back(MakeTransactionRef(std::move(mtx)));
} else {
- throw JSONRPCError(RPC_DESERIALIZATION_ERROR, strprintf("Transaction decode failed for %s", str));
+ throw JSONRPCError(RPC_DESERIALIZATION_ERROR, strprintf("Transaction decode failed for %s. Make sure the tx has at least one input.", str));
}
}