Fix a crash in mininode.py when inventory type is unknown

This commit is contained in:
Alexander Block 2019-04-04 07:59:46 +02:00
parent 44a3b9c90f
commit b1b41f02ae

View File

@ -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):