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)
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)