Fix a crash in mininode.py when inventory type is unknown
This commit is contained in:
parent
44a3b9c90f
commit
b1b41f02ae
@ -309,7 +309,7 @@ class CInv(object):
|
||||
|
||||
def __repr__(self):
|
||||
return "CInv(type=%s hash=%064x)" \
|
||||
% (self.typemap[self.type], self.hash)
|
||||
% (self.typemap.get(self.type, "%d" % self.type), self.hash)
|
||||
|
||||
|
||||
class CBlockLocator(object):
|
||||
|
Loading…
Reference in New Issue
Block a user