diff options
| author | Pieter Wuille <[email protected]> | 2018-04-25 16:49:39 -0700 |
|---|---|---|
| committer | MeshCollider <[email protected]> | 2020-07-15 15:29:22 +1200 |
| commit | e629d07199b83f4ad313b23a94c9016e3276c52a (patch) | |
| tree | d7773f538f49e4f08dbeab7d04968f738ade12c9 /src/script | |
| parent | Merge #19429: test: Fix intermittent failure in wallet_encryption (diff) | |
| download | discoin-e629d07199b83f4ad313b23a94c9016e3276c52a.tar.xz discoin-e629d07199b83f4ad313b23a94c9016e3276c52a.zip | |
Do not turn OP_1NEGATE in scriptSig into 0x0181 in signing code
Co-authored-by: Samuel Dobson <[email protected]>
Diffstat (limited to 'src/script')
| -rw-r--r-- | src/script/sign.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/script/sign.cpp b/src/script/sign.cpp index f42521554..9b3f94f14 100644 --- a/src/script/sign.cpp +++ b/src/script/sign.cpp @@ -186,6 +186,8 @@ static CScript PushAll(const std::vector<valtype>& values) result << OP_0; } else if (v.size() == 1 && v[0] >= 1 && v[0] <= 16) { result << CScript::EncodeOP_N(v[0]); + } else if (v.size() == 1 && v[0] == 0x81) { + result << OP_1NEGATE; } else { result << v; } |