Remove application dependency from SyncFilters

This commit is contained in:
Miguel Portilla
2016-10-12 15:22:51 -04:00
committed by Brad Chase
parent cdaafeb4b6
commit 19258cf980
15 changed files with 148 additions and 96 deletions

View File

@@ -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;