Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

preserve txexec #240

Merged
merged 1 commit into from
Dec 8, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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 @@
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 Expand Up @@ -692,7 +695,7 @@

public class NCActionLoader : IActionLoader
{
private readonly IActionLoader _actionLoader;

Check warning on line 698 in NineChronicles.Snapshot/Program.cs

View workflow job for this annotation

GitHub Actions / build

Field 'Program.NCActionLoader._actionLoader' is never assigned to, and will always have its default value null

Check warning on line 698 in NineChronicles.Snapshot/Program.cs

View workflow job for this annotation

GitHub Actions / build

Field 'Program.NCActionLoader._actionLoader' is never assigned to, and will always have its default value null

Check warning on line 698 in NineChronicles.Snapshot/Program.cs

View workflow job for this annotation

GitHub Actions / build

Field 'Program.NCActionLoader._actionLoader' is never assigned to, and will always have its default value null

Check warning on line 698 in NineChronicles.Snapshot/Program.cs

View workflow job for this annotation

GitHub Actions / build

Field 'Program.NCActionLoader._actionLoader' is never assigned to, and will always have its default value null
public IAction LoadAction(long index, IValue value) => _actionLoader.LoadAction(index, value);
}
}
Expand Down
Loading