mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-06-23 23:33:47 +02:00
Do not turn OP_1NEGATE in scriptSig into 0x0181 in signing code
Co-authored-by: Samuel Dobson <dobsonsa68@gmail.com>
This commit is contained in:
parent
f4de89edfa
commit
e629d07199
@ -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;
|
||||
}
|
||||
|
@ -361,6 +361,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;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user