mirror of
https://github.com/bitcoin/bips.git
synced 2025-01-19 05:45:07 +01:00
Adds brackets
Co-authored-by: kallewoof <kalle.alm@gmail.com>
This commit is contained in:
parent
0335c9d188
commit
3d31e5c894
@ -50,8 +50,9 @@ case OP_CAT:
|
||||
}
|
||||
valtype& vch1 = stacktop(-2);
|
||||
valtype& vch2 = stacktop(-1);
|
||||
if (vch1.size() + vch2.size() > MAX_SCRIPT_ELEMENT_SIZE)
|
||||
if (vch1.size() + vch2.size() > MAX_SCRIPT_ELEMENT_SIZE) {
|
||||
return set_error(serror, SCRIPT_ERR_INVALID_STACK_OPERATION);
|
||||
}
|
||||
vch1.insert(vch1.end(), vch2.begin(), vch2.end());
|
||||
stack.pop_back();
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user