made idOpt optional

This commit is contained in:
Alex Haynes 2018-11-11 19:46:00 -05:00
parent 80d531f086
commit cca13cbfea

View File

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