Avoid copying and improve optimization opportunities

This commit is contained in:
Nik Bougalis
2015-03-27 13:35:57 -07:00
committed by Tom Ritchford
parent b4058a813b
commit f072b5b679
5 changed files with 22 additions and 23 deletions

View File

@@ -616,7 +616,8 @@ bool Ledger::getMetaHex (uint256 const& transID, std::string& hex) const
return true;
}
uint256 Ledger::getHash ()
uint256 const&
Ledger::getHash ()
{
if (!mValidHash)
updateHash ();