mirror of
https://github.com/ElementsProject/elements.git
synced 2026-08-19 13:27:35 +02:00
Make CPubKey statically allocated
This commit is contained in:
parent
ec0004aca0
commit
5d891489ab
7 changed files with 98 additions and 28 deletions
|
|
@ -348,8 +348,10 @@ public:
|
|||
|
||||
CScript& operator<<(const CPubKey& key)
|
||||
{
|
||||
std::vector<unsigned char> vchKey = key.Raw();
|
||||
return (*this) << vchKey;
|
||||
assert(key.size() < OP_PUSHDATA1);
|
||||
insert(end(), (unsigned char)key.size());
|
||||
insert(end(), key.begin(), key.end());
|
||||
return *this;
|
||||
}
|
||||
|
||||
CScript& operator<<(const CBigNum& b)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue