[Mnet-devel] MT FAQ
Zooko Wilcox-O'Hearn
zooko at zooko.com
Mon Sep 20 14:09:34 BST 2004
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'>
More information about the Mnet-devel
mailing list