method to remove recovery info

This commit is contained in:
Jude Nelson
2018-10-23 14:12:15 -04:00
parent d67579460b
commit 3f5522c917

View File

@@ -950,6 +950,15 @@ def set_recovery_range(working_dir, start_block, end_block):
os.fsync(f.fileno())
def clear_recovery_range(working_dir):
"""
Clear out our recovery hint
"""
recovery_range_path = os.path.join(working_dir, '.recovery')
if os.path.exists(recovery_range_path):
os.unlink(recovery_range_path)
def is_atlas_enabled(blockstack_opts):
"""
Can we do atlas operations?