mirror of
https://github.com/ElementsProject/elements.git
synced 2026-08-14 12:43:40 +02:00
Implement accurate memory accounting for mempool
This commit is contained in:
parent
943b322d5d
commit
5098c47b24
8 changed files with 110 additions and 2 deletions
|
|
@ -260,3 +260,8 @@ std::string CScript::ToString() const
|
|||
}
|
||||
return str;
|
||||
}
|
||||
|
||||
size_t CScript::DynamicMemoryUsage() const
|
||||
{
|
||||
return memusage::DynamicUsage(*(static_cast<const std::vector<unsigned char>*>(this)));
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue