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

Refac statedump #789

Closed
wants to merge 4 commits into from
Closed

Conversation

Ashuaidehao
Copy link
Contributor

Close #736

string dirPathWithBlock = $"./Storage_{network:x8}/BlockStorage_{folder}";
Directory.CreateDirectory(dirPathWithBlock);
return dirPathWithBlock;
uint folder = (blockIndex / storagePerFolder) * storagePerFolder;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This changes the naming scheme and will break scripts like https://github.com/nspcc-dev/neo-go/blob/master/scripts/compare-dumps/compare-dumps.go. Please keep the old scheme, I doubt changing it is important wrt to this PR goals.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sure, I'll make a new simple plugin so you won't change it.

@Ashuaidehao Ashuaidehao mentioned this pull request Jan 19, 2023
@@ -26,10 +26,6 @@ internal class Settings
/// </summary>
public uint HeightToBegin { get; }
/// <summary>
/// Height to begin real-time syncing and dumping on, consequently, dumping every block into a single files
/// </summary>
public int HeightToStartRealTimeSyncing { get; }
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why did you remove this configuration?
This can be useful when debugging or following the chain on real-time

@Ashuaidehao
Copy link
Contributor Author

Replaced by #790

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Data missing for random blocks in StatesDumper
3 participants