Optimize SHAMapItem construction

This commit is contained in:
Howard Hinnant
2015-09-01 16:49:43 -04:00
committed by Scott Schurr
parent 7ed2094a6a
commit d8aab5a749
4 changed files with 15 additions and 0 deletions

View File

@@ -798,6 +798,13 @@ bool SHAMap::addItem (const SHAMapItem& i, bool isTransaction, bool hasMetaData)
return addGiveItem(std::make_shared<SHAMapItem const>(i), isTransaction, hasMetaData);
}
bool
SHAMap::addItem(SHAMapItem&& i, bool isTransaction, bool hasMetaData)
{
return addGiveItem(std::make_shared<SHAMapItem const>(std::move(i)),
isTransaction, hasMetaData);
}
uint256
SHAMap::getHash () const
{