diff options
Diffstat (limited to 'src/script')
-rw-r--r-- | src/script/sign.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/script/sign.cpp b/src/script/sign.cpp index a8abd347da..fe8292fe57 100644 --- a/src/script/sign.cpp +++ b/src/script/sign.cpp @@ -509,6 +509,9 @@ bool SignTransaction(CMutableTransaction& mtx, const SigningProvider* keystore, } else { input_errors[i] = ScriptErrorString(serror); } + } else { + // If this input succeeds, make sure there is no error set for it + input_errors.erase(i); } } return input_errors.empty(); |