tell state engine to restore

This commit is contained in:
Jude Nelson
2018-01-22 17:13:13 -05:00
parent bdda580e04
commit c02ddd9cfc
2 changed files with 13 additions and 4 deletions

View File

@@ -626,8 +626,7 @@ def blockstack_backup_restore(working_dir, block_number):
Return True on success
Return False on failure
"""
db = BlockstackDB.get_readwrite_instance(working_dir)
res = db.db_restore(block_number=block_number)
db = BlockstackDB.get_readwrite_instance(working_dir, restore=True, restore_block_height=block_number)
db.close()
return res