[mnet-devel] good unit tests running!

Zooko zooko at zooko.com
Wed May 21 04:26:45 BST 2003


On the newnet branch, Simulent now works to test a network of 100 ent nodes, 
all of which are resident in the same Python VM (but they don't know it).

The first unit test passes, as it should.  The second unit test fails, as it 
should, since ent doesn't do transitive introduction to construct a Kademlia 
tree.

So to make the second unit test pass, add a "lookup" operation which is just 
like "fetch" but it returns a peerset.Peer object instead of a datablock.Block 
object.  (Tschechow: I know, I know!  But I want to implement them separately 
first, then combine them.)

Then use the lookup operation to find suitable peers.  How to do that well is 
non-obvious, and it will be one of the ways that ent differs from Kademlia...

--Z



-------------------------------------------------------
This SF.net email is sponsored by: ObjectStore.
If flattening out C++ or Java code to make your application fit in a
relational database is painful, don't do it! Check out ObjectStore.
Now part of Progress Software. http://www.objectstore.net/sourceforge
_______________________________________________
mnet-devel mailing list
mnet-devel at lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mnet-devel




More information about the Mnet-devel mailing list