done with GUI
diff --git a/model/sync-logic.cc b/model/sync-logic.cc
index 7a3eae6..31a161b 100644
--- a/model/sync-logic.cc
+++ b/model/sync-logic.cc
@@ -532,5 +532,14 @@
     }
 }
 
+string
+SyncLogic::getRootDigest() 
+{
+  ostringstream os;
+  recursive_mutex::scoped_lock lock (m_stateMutex);
+  os << *m_state->getDigest();
+  return os.str();
+}
+
 
 }