mirror of
https://github.com/XRPLF/rippled.git
synced 2025-11-20 11:05:54 +00:00
Convenience functions, cleanups, and avoid a copy.
This commit is contained in:
@@ -74,7 +74,7 @@ bool HashedObject::store() const
|
|||||||
return store(mType, mLedgerIndex, mData, mHash);
|
return store(mType, mLedgerIndex, mData, mHash);
|
||||||
}
|
}
|
||||||
|
|
||||||
HashedObject::pointer retrieve(const uint256& hash)
|
HashedObject::pointer HashedObject::retrieve(const uint256& hash)
|
||||||
{
|
{
|
||||||
std::string sql="SELECT * from CommitedObjects WHERE Hash='";
|
std::string sql="SELECT * from CommitedObjects WHERE Hash='";
|
||||||
sql.append(hash.GetHex());
|
sql.append(hash.GetHex());
|
||||||
|
|||||||
Reference in New Issue
Block a user