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 b2f803c commit d6c5cd6Copy full SHA for d6c5cd6
bitcoin/net.py
@@ -15,8 +15,12 @@
15
import socket
16
from binascii import hexlify
17
18
-from .core import PROTO_VERSION, CADDR_TIME_VERSION
19
-from .core.serialize import *
+from bitcoin.core.serialize import (
+ Serializable,
20
+ VarStringSerializer,
21
+ ser_read,
22
+ uint256VectorSerializer,
23
+)
24
25
PROTO_VERSION = 60002
26
CADDR_TIME_VERSION = 31402
@@ -170,3 +174,13 @@ def stream_serialize(self, f):
170
174
171
175
def __repr__(self):
172
176
return "CAlert(vchMsg.sz %d, vchSig.sz %d)" % (len(self.vchMsg), len(self.vchSig))
177
+
178
+__all__ = (
179
+ 'PROTO_VERSION',
180
+ 'CADDR_TIME_VERSION',
181
+ 'CAddress',
182
+ 'CInv',
183
+ 'CBlockLocator',
184
+ 'CUnsignedAlert',
185
+ 'CAlert',
186
0 commit comments