Change SHAMapSyncFilter to use SHAMapHash:

*  This also involves changing TaggedCache to use SHAMapHash
This commit is contained in:
Howard Hinnant
2015-12-01 13:10:25 -05:00
committed by Nik Bougalis
parent 0dbacedb58
commit 48ed44d117
14 changed files with 47 additions and 38 deletions

View File

@@ -36,7 +36,7 @@ TransactionStateSF::TransactionStateSF(Application& app)
// VFALCO This might be better as Blob&&
void TransactionStateSF::gotNode (bool fromFilter,
SHAMapNodeID const& id,
uint256 const& nodeHash,
SHAMapHash const& nodeHash,
Blob& nodeData,
SHAMapTreeNode::TNType type)
{
@@ -47,14 +47,14 @@ void TransactionStateSF::gotNode (bool fromFilter,
SHAMapTreeNode::tnTRANSACTION_NM);
app_.getNodeStore().store(
hotTRANSACTION_NODE,
std::move (nodeData), nodeHash);
std::move (nodeData), nodeHash.as_uint256());
}
bool TransactionStateSF::haveNode (SHAMapNodeID const& id,
uint256 const& nodeHash,
SHAMapHash const& nodeHash,
Blob& nodeData)
{
return app_.getLedgerMaster ().getFetchPack (nodeHash, nodeData);
return app_.getLedgerMaster ().getFetchPack (nodeHash.as_uint256(), nodeData);
}
} // ripple