Wallet.py 文件源码

python
阅读 38 收藏 0 点赞 0 评论 0

项目:Skynet2.0 作者: Skynet2-0 项目源码 文件源码
def __init__(self):
        """ Constructor. """
        output = pexpect.run('electrum listaddresses')
        print(output)
        pattern = re.compile(r'\[\W*"[A-z0-9]+"\W*\]') #the specific output for electrum if 1 adress exists

        print(pattern.search(output))

        if(pattern.search(output)):
            #if a wallet exists, initialize that one
            print('using already existing wallet')
        else:
            self._create_wallet()
        subprocess.call(['electrum', 'daemon', 'start'])
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号