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.
1 parent 81f732b commit fab0a68Copy full SHA for fab0a68
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