We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5d1829a commit 6752f3bCopy full SHA for 6752f3b
1 file changed
bitcoin/messages.py
@@ -21,6 +21,8 @@
21
else:
22
import cStringIO as io
23
24
+# Bad practice, so we have a __all__ at the end; this should be cleaned up
25
+# later.
26
from bitcoin.core import *
27
from bitcoin.core.serialize import *
28
from bitcoin.net import *
@@ -444,3 +446,25 @@ def __repr__(self):
444
446
messagemap = {}
445
447
for cls in msg_classes:
448
messagemap[cls.command] = cls
449
+
450
+__all__ = ('MSG_TX',
451
+ 'MSG_BLOCK',
452
+ 'MSG_FILTERED_BLOCK',
453
+ 'MsgSerializable',
454
+ 'msg_version',
455
+ 'msg_verack',
456
+ 'msg_addr',
457
+ 'msg_alert',
458
+ 'msg_inv',
459
+ 'msg_getdata',
460
+ 'msg_getblocks',
461
+ 'msg_getheaders',
462
+ 'msg_headers',
463
+ 'msg_tx',
464
+ 'msg_block',
465
+ 'msg_getaddr',
466
+ 'msg_ping',
467
+ 'msg_pong',
468
+ 'msg_mempool',
469
+ 'msg_classes',
470
+ 'messagemap',)
0 commit comments