We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents abd914e + fab0a68 commit 6852059Copy full SHA for 6852059
test/functional/test_framework/mininode.py
@@ -171,7 +171,7 @@ def _on_data(self):
171
if len(self.recvbuf) < 4:
172
return
173
if self.recvbuf[:4] != self.magic_bytes:
174
- raise ValueError("got garbage %s" % repr(self.recvbuf))
+ raise ValueError("magic bytes mismatch: {} != {}".format(repr(self.magic_bytes), repr(self.recvbuf)))
175
if len(self.recvbuf) < 4 + 12 + 4 + 4:
176
177
command = self.recvbuf[4:4+12].split(b"\x00", 1)[0]
0 commit comments