diff options
author | Nima Yazdanmehr <yazdanmehr@protonmail.com> | 2020-09-30 20:43:05 +0330 |
---|---|---|
committer | Nima Yazdanmehr <yazdanmehr@protonmail.com> | 2020-09-30 20:43:05 +0330 |
commit | f471a3be00c2b6433b8c258b716982c0539da13f (patch) | |
tree | ad276091904da4b653ee3a76dcbafd9e58795405 /src/bitcoin-tx.cpp | |
parent | 1b313cacc99a1b372238f9036abed5491f9d28f7 (diff) |
scripted diff: Improve invalid vout value rpc error message
-BEGIN VERIFY SCRIPT-
r() { sed -i 's/vout must be positive/vout cannot be negative/g' $1 }
r $(git grep -l 'vout must be positive')
-END VERIFY SCRIPT-
Diffstat (limited to 'src/bitcoin-tx.cpp')
-rw-r--r-- | src/bitcoin-tx.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/bitcoin-tx.cpp b/src/bitcoin-tx.cpp index 085f1ecfda..e22b3766cf 100644 --- a/src/bitcoin-tx.cpp +++ b/src/bitcoin-tx.cpp @@ -594,7 +594,7 @@ static void MutateTxSign(CMutableTransaction& tx, const std::string& flagStr) const int nOut = prevOut["vout"].get_int(); if (nOut < 0) - throw std::runtime_error("vout must be positive"); + throw std::runtime_error("vout cannot be negative"); COutPoint out(txid, nOut); std::vector<unsigned char> pkData(ParseHexUV(prevOut["scriptPubKey"], "scriptPubKey")); |