[Mnet-devel] MT FAQ
Arno Waschk
hamamatsu at gmx.de
Mon Sep 20 14:17:07 BST 2004
the corresponding cvs target is darcs-mnet_new_mt. But MTs only run with
python -OO anyway... Arno
On 20 Sep 2004 10:09:34 -0300, Zooko Wilcox-O'Hearn <zooko at zooko.com>
wrote:
> This was a bug in the assertion. The intent was to assert that the comm
> strat is of type TCP if and only if there is a port number if and only
> if there is an IP address, but instead it asserts that the port number
> equals the IP address. I've pushed a fix to
> http://mnetproject.org/repos/metatracker_for_old_network. I'll see if
> there is a similar bug in CVS's branch-working_metatracker.
>
> --Z
>
> On 2004, Sep 18, , at 18:20, Arno Waschk wrote:
>
>> 2004-09-18_04:34:31 () File
>> "/data/home/ed/devel/mnet/MNET/darcs-mnet_new_mt/egtp/peerset.py", line
>> 121, in set_services
>> 2004-09-18_04:34:31 () _assert((d['connection strategies'][0]['comm
>> strategy type'] == 'TCP') == d['connection strategies'][0].get('port
>> number') == d['connection strategies'][0].get('IP address'), self=self,
>> d=d)
>> 2004-09-18_04:34:31 () File
>> "/data/home/ed/devel/mnet/MNET/darcs-mnet_new_mt/pyutil/assertutil.py",
>> line 33, in _assert
>> 2004-09-18_04:34:31 () raise assertionfailureexception
>> 2004-09-18_04:34:31 () AssertionError: self: <Peer <sd189>> <type
>> 'instance'>, 'd': {'connection strategies':[{'comm strat sequence
>> num':1, 'comm strategy type':'crypto', 'lowerstrategy':{'IP
>> address':'4.12.29.42', 'comm strat sequence num':1, 'comm strategy
>> type':'TCP', 'port number':'45077'}, 'pubkey':{'key
>> header':{'cryptosystem':'RSA', 'type':'public', 'usage':'only for
>> communication security'}, 'key values':{'public exponent':'3', 'public
>> modulus':'uLvYQ1IBU
>> -1xwj4584dL3jLEM0GCF8MZDC22_gvf6yuEizAlA2AGxwIME8yvju-kyAFTMdODR7r7WLhiY
>> -8o1TjkxEZaeb2s8gdhH7xudLRouumepNUqk3oCoi5n6Rdt6UurhIO3wdltG8dHOCILBNJq
>> -yME1EpwVVqoM5ATLj0'}}}], 'services':[{'type':'block server'},
>> {'type':'publishing block server'}, {'type':'meta tracker'}]} <type
>> 'dict'>
>
> _______________________________________________
> Mnet-devel mailing list
> Mnet-devel at lists.mnetproject.org
> http://lists.mnetproject.org/mailman/listinfo/mnet-devel
>
--
http://www.arnowaschk.de
More information about the Mnet-devel
mailing list