mirror of
https://github.com/ElementsProject/elements.git
synced 2026-08-15 12:51:00 +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
2 changed files with 4 additions and 0 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue