dna.py 文件源码

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

项目:PlebNet 作者: rjwvandenberg 项目源码 文件源码
def create_child_dna(self, provider, parentname, transaction_hash):
        dictionary = copy.deepcopy(self.dictionary)
        dictionary['Self'] = provider
        dictionary['parent'] = parentname
        dictionary['transaction_hash'] = transaction_hash
        #TODO
        #raise NotImlementedError('RESET ALL VARIABLES EXCEPT VPS')
        #TODO
        config_dir = user_config_dir()
        filename = os.path.join(config_dir, 'Child_DNA.json')
        with open(filename, 'w') as json_file:
            json.dump(dictionary, json_file)
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号