mirror of
https://github.com/XRPLF/rippled.git
synced 2025-12-06 17:27:55 +00:00
Change SHAMapSyncFilter to use SHAMapHash:
* This also involves changing TaggedCache to use SHAMapHash
This commit is contained in:
committed by
Nik Bougalis
parent
0dbacedb58
commit
48ed44d117
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user