mirror of
https://github.com/ElementsProject/elements.git
synced 2026-08-19 13:27:35 +02:00
Delete error-prone CScript constructor
This commit is contained in:
parent
c7cfd20a77
commit
e1a55690e6
3 changed files with 9 additions and 5 deletions
|
|
@ -437,7 +437,9 @@ public:
|
|||
|
||||
explicit CScript(opcodetype b) { operator<<(b); }
|
||||
explicit CScript(const CScriptNum& b) { operator<<(b); }
|
||||
explicit CScript(const std::vector<unsigned char>& b) { operator<<(b); }
|
||||
// delete non-existent constructor to defend against future introduction
|
||||
// e.g. via prevector
|
||||
explicit CScript(const std::vector<unsigned char>& b) = delete;
|
||||
|
||||
|
||||
CScript& operator<<(int64_t b) { return push_int64(b); }
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue