blockchain-python icon indicating copy to clipboard operation
blockchain-python copied to clipboard

节点部分的命令会报错

Open DerekRay opened this issue 6 years ago • 2 comments

$ cd {another_blockchain_directory}
$ python console node add 3008 
$ python console node run 3009

执行这两个命令会报参数错误,改成127.0.0.1:3008这种格式的是没有问题的

DerekRay avatar Sep 17 '18 09:09 DerekRay

看起来不再更新了吗

zhangdavids avatar Oct 01 '19 09:10 zhangdavids

def add_node(address):
    ndb = NodeDB()
    all_nodes = ndb.find_all()
    if address.find('http') != 0:
        address = 'http://0.0.0.0:' + address   #####this line 
    all_nodes.append(address)
    ndb.clear()
    ndb.write(rm_dup(all_nodes))
    return address

DoubleStarK avatar Dec 09 '20 08:12 DoubleStarK