Merge pull request #48 from zixuanzh/libp2p-cons-fix

made idOpt optional
This commit is contained in:
Alex Haynes 2018-11-11 20:12:52 -05:00 committed by GitHub
commit 4b098ae137
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -6,7 +6,7 @@ from Crypto.PublicKey import RSA
class Libp2p(object):
def __init__(self, idOpt, \
def __init__(self, idOpt = None, \
transportOpt = ["/ip4/127.0.0.1/tcp/10000"], \
muxerOpt = ["mplex/6.7.0"], \
secOpt = ["secio"], \