We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a93dad4 commit 1066519Copy full SHA for 1066519
1 file changed
bitcoin/net.py
@@ -13,14 +13,14 @@
13
14
import struct
15
import socket
16
-from binascii import hexlify
17
18
from bitcoin.core.serialize import (
19
Serializable,
20
VarStringSerializer,
21
ser_read,
22
uint256VectorSerializer,
23
)
+from bitcoin.core import b2lx
24
25
PROTO_VERSION = 60002
26
CADDR_TIME_VERSION = 31402
@@ -80,7 +80,7 @@ def stream_serialize(self, f):
80
f.write(self.hash)
81
82
def __repr__(self):
83
- return "CInv(type=%s hash=%s)" % (self.typemap[self.type], hexlify(self.hash))
+ return "CInv(type=%s hash=%s)" % (self.typemap[self.type], b2lx(self.hash))
84
85
86
class CBlockLocator(Serializable):
0 commit comments