zk1931/pulsed — pull request #23 by EasonLiao (2014-12-03 21:22:31+00:00)
Title: add checksum?

Since for every update we'll propagate changes up to root node, we can add checksum for each node and verify the consistency by comparing the checksums.

FileNode:
``` checksum = checksum(data, version, fullPath, sessionID)```

DirNode:
``` checksum = checksum(version, fullPath, checksum(child1.checksum, child2.chekcusum... childn.checksum))```

In this case if we want to compare if two subtrees are same or not we just need to compare checksums of the roots nodes of the subtree are same or not.