mirror of
https://github.com/XRPLF/rippled.git
synced 2025-12-06 17:27:55 +00:00
Remove application dependency from SyncFilters
This commit is contained in:
committed by
Brad Chase
parent
cdaafeb4b6
commit
19258cf980
@@ -66,17 +66,16 @@ public:
|
||||
{
|
||||
}
|
||||
|
||||
bool haveNode (SHAMapHash const& nodeHash,
|
||||
Blob& nodeData) const override
|
||||
boost::optional<Blob>
|
||||
getNode (SHAMapHash const& nodeHash) const override
|
||||
{
|
||||
Map::iterator it = mMap.find (nodeHash);
|
||||
if (it == mMap.end ())
|
||||
{
|
||||
JLOG(mJournal.fatal()) << "Test filter missing node";
|
||||
return false;
|
||||
return boost::none;
|
||||
}
|
||||
nodeData = it->second;
|
||||
return true;
|
||||
return it->second;
|
||||
}
|
||||
|
||||
Map& mMap;
|
||||
|
||||
Reference in New Issue
Block a user