コード例 #1
0
 def add_genesis_block(self):
     genesis_block = Block(-1, 0, 0, 1)  # prev = -1
     genesis_block.ID = 0
     # genesis_block.score = 0
     self.blocks.append(genesis_block)
コード例 #2
0
ファイル: chain.py プロジェクト: anneouyang/horizen
 def add_genesis_block(self):
     genesis_block = Block(-1, 0, 0)
     genesis_block.ID = 0
     genesis_block.height = 1
     genesis_block.score = 0
     self.blocks.append(genesis_block)