File tree Expand file tree Collapse file tree 1 file changed +27
-0
lines changed
Expand file tree Collapse file tree 1 file changed +27
-0
lines changed Original file line number Diff line number Diff line change 2121else :
2222 import cStringIO as io
2323
24+ # Bad practice, so we have a __all__ at the end; this should be cleaned up
25+ # later.
2426from bitcoin .core import *
2527from bitcoin .core .serialize import *
2628from bitcoin .net import *
@@ -438,3 +440,28 @@ def __repr__(self):
438440messagemap = {}
439441for cls in msg_classes :
440442 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+ )
You can’t perform that action at this time.
0 commit comments