Remove path never taken.

This commit is contained in:
Richard Kiss 2020-06-23 15:27:41 -07:00 committed by Gene Hoffman
parent c3a3fdba1f
commit f812cdc72d
1 changed files with 1 additions and 6 deletions

View File

@ -201,12 +201,7 @@ class BlockTools:
seconds_per_block = test_constants["BLOCK_TIME_TARGET"]
if len(block_list) == 0:
if "GENESIS_BLOCK" in test_constants:
block_list.append(FullBlock.from_bytes(test_constants["GENESIS_BLOCK"]))
else:
block_list.append(
self.create_genesis_block(test_constants, std_hash(seed), seed)
)
block_list.append(FullBlock.from_bytes(test_constants["GENESIS_BLOCK"]))
prev_difficulty = test_constants["DIFFICULTY_STARTING"]
curr_difficulty = prev_difficulty
curr_min_iters = test_constants["MIN_ITERS_STARTING"]