Skip to content

Commit

Permalink
Merge pull request #240 from planetarium/preserve-txexec
Browse files Browse the repository at this point in the history
preserve txexec
  • Loading branch information
area363 committed Dec 8, 2023
2 parents 545d119 + 50d87fa commit e9fc57f
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions NineChronicles.Snapshot/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -535,18 +535,21 @@ private void CopyStateStore(string storePath,string stateDirectory)
var storeStatesPath = Path.Combine(storePath, "states");
var storeChainPath = Path.Combine(storePath, "chain");
var storeBlockCommitPath = Path.Combine(storePath, "blockcommit");
var storeTxExecPath = Path.Combine(storePath, "txexec");
var stateDirBlockIndexPath = Path.Combine(stateDirectory, "block", "blockindex");
var stateDirTxIndexPath = Path.Combine(stateDirectory, "tx", "txindex");
var stateDirTxBIndexPath = Path.Combine(stateDirectory, "txbindex");
var stateDirStatesPath = Path.Combine(stateDirectory, "states");
var stateDirChainPath = Path.Combine(stateDirectory, "chain");
var stateDirBlockCommitPath = Path.Combine(stateDirectory, "blockcommit");
var stateDirTxExecPath = Path.Combine(stateDirectory, "txexec");
CopyDirectory(storeBlockIndexPath, stateDirBlockIndexPath, true);
CopyDirectory(storeTxIndexPath, stateDirTxIndexPath, true);
CopyDirectory(storeTxBIndexPath, stateDirTxBIndexPath, true);
CopyDirectory(storeStatesPath, stateDirStatesPath, true);
CopyDirectory(storeChainPath, stateDirChainPath, true);
CopyDirectory(storeBlockCommitPath, stateDirBlockCommitPath, true);
CopyDirectory(storeTxExecPath, stateDirTxExecPath, true);
}

private void Fork(
Expand Down

0 comments on commit e9fc57f

Please sign in to comment.