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

panic: invalid page type: 2: 10 #47

Open
mahsanhabib opened this issue Jan 15, 2025 · 1 comment
Open

panic: invalid page type: 2: 10 #47

mahsanhabib opened this issue Jan 15, 2025 · 1 comment

Comments

@mahsanhabib
Copy link

When I run "go run main.go -S 2 -N 4 -s 0 -n 0" this command it shows this issue "panic: invalid page type: 2: 10". However it creates blockchain.

Screenshot 2025-01-15 153839

@iiinotlll
Copy link
Contributor

Based on your image, it seems that blockEmulator encountered an issue during initialization. This problem occurs within the dependency of BoltDB. Here are some potential solutions that may help:

  • Delete the historical experiment files under ./exptest (this dir is defined by ExpDataRootDir in the ./paramsConfig.json file).

  • Run go mod tidy to update dependencies to the latest version.

  • Restart blockEmulator.

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

No branches or pull requests

2 participants