Skip to content

Commit

Permalink
fix table init (#1335)
Browse files Browse the repository at this point in the history
  • Loading branch information
vicky-g committed Mar 22, 2021
1 parent 8879035 commit 55d5802
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion discovery-provider/src/tasks/index_blacklist.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ def initialize_blacklist_blocks_table_if_necessary(db):
is_current=True,
)

if target_block.number == 0:
if target_block.number == 0 or target_blockhash == default_config_start_hash:
block_model.number = None

session.add(block_model)
Expand Down

0 comments on commit 55d5802

Please sign in to comment.