File tree Expand file tree Collapse file tree 1 file changed +24
-0
lines changed
Expand file tree Collapse file tree 1 file changed +24
-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 *
@@ -444,3 +446,25 @@ def __repr__(self):
444446messagemap = {}
445447for cls in msg_classes :
446448 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' ,)
You can’t perform that action at this time.
0 commit comments