We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d6c5cd6 commit 9f5a095Copy full SHA for 9f5a095
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 *
@@ -438,3 +440,28 @@ def __repr__(self):
438
440
messagemap = {}
439
441
for cls in msg_classes:
442
messagemap[cls.command] = cls
443
+
444
445
+__all__ = (
446
+ 'MSG_TX',
447
+ 'MSG_BLOCK',
448
+ 'MSG_FILTERED_BLOCK',
449
+ 'MsgSerializable',
450
+ 'msg_version',
451
+ 'msg_verack',
452
+ 'msg_addr',
453
+ 'msg_alert',
454
+ 'msg_inv',
455
+ 'msg_getdata',
456
+ 'msg_getblocks',
457
+ 'msg_getheaders',
458
+ 'msg_headers',
459
+ 'msg_tx',
460
+ 'msg_block',
461
+ 'msg_getaddr',
462
+ 'msg_ping',
463
+ 'msg_pong',
464
+ 'msg_mempool',
465
+ 'msg_classes',
466
+ 'messagemap',
467
+)
0 commit comments