public void SetIndexProgress(BlockLocator locator) { using (var tx = _Engine.GetTransaction()) { if (locator == null) { tx.RemoveKey("IndexProgress", ""); } else { tx.Insert("IndexProgress", "", locator.ToBytes()); } tx.Commit(); } }
public void SaveProgress(BlockLocator locator) { _BlockLocator = locator; File.WriteAllBytes(_FileName, _BlockLocator.ToBytes()); }