Skip to content

Commit

Permalink
Fix a crash in mininode.py when inventory type is unknown
Browse files Browse the repository at this point in the history
  • Loading branch information
codablock committed Apr 4, 2019
1 parent 44a3b9c commit b1b41f0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion qa/rpc-tests/test_framework/mininode.py
Original file line number Diff line number Diff line change
Expand Up @@ -309,7 +309,7 @@ def serialize(self):

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):
Expand Down

0 comments on commit b1b41f0

Please sign in to comment.