For now, detect clocks out of sync and disallow connection.

Improve speed of ledger synchronization by compressing all three base queries into one.
This commit is contained in:
JoelKatz
2012-06-30 22:17:53 -07:00
parent 51100a3b30
commit c7eb0269c2
6 changed files with 100 additions and 20 deletions

View File

@@ -122,6 +122,13 @@ bool SHAMap::getNodeFat(const SHAMapNode& wanted, std::vector<SHAMapNode>& nodeI
return true;
}
bool SHAMap::getRootNode(Serializer& s, int format)
{
boost::recursive_mutex::scoped_lock sl(mLock);
root->addRaw(s, format);
return true;
}
bool SHAMap::addRootNode(const std::vector<unsigned char>& rootNode, int format)
{
boost::recursive_mutex::scoped_lock sl(mLock);