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

Assert failed inside loadBlockInner #908

Closed
Warchant opened this issue Dec 15, 2021 · 3 comments · Fixed by #909
Closed

Assert failed inside loadBlockInner #908

Warchant opened this issue Dec 15, 2021 · 3 comments · Fixed by #909
Assignees
Labels
bug Something isn't working

Comments

@Warchant
Copy link
Collaborator

2021-12-15T08:59:15Z [alt-cpp] [warn] loadTree: Loading 2016 BTC blocks with tip 0000000000000000000c57d98837a8c297accb8cee7f5c3c3cb751a8ec74aba8
2021-12-15T08:59:15Z [alt-cpp] [critical] loadBlockInner: Assertion failed at /home/runner/work/vbk-ri-btc/vbk-ri-btc/depends/work/build/x86_64-w64-mingw32/veriblock-pop-cpp/0ad18f53e7778c30ef56696ea507c7cc2a0f9cf3-f28c264663d/include/veriblock/pop/blockchain/base_block_tree.hpp:636 inside loadBlockInner:
index.height >= root.getHeight()
Blocks can be forward connected after root only. index.height: 708156, root.height: 711392
@Warchant Warchant added the bug Something isn't working label Dec 15, 2021
@Mr-Leshiy
Copy link
Contributor

Have investigated this issue and for this moment it most likely it was a storage corruption.
root.height == 711392 it is a valid BTC root height.

const int mainnetBTCstartHeight=711392;

https://github.com/VeriBlock/vbk-ri-btc/blob/47363b076956d0f7f8a3692ecd3ca4b889182901/src/vbk/bootstraps-mainnet.cpp#L9

index.height == 708156 it is definitely invalid height of the block.

@Mr-Leshiy
Copy link
Contributor

At this point I have updated logging this situation and do not make assert failing, just return a failure of the loadBlockInner function, so as the result daemon should ask for reindex.

@Mr-Leshiy Mr-Leshiy linked a pull request Dec 16, 2021 that will close this issue
@Warchant
Copy link
Collaborator Author

@Leonardiae

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
Archived in project
Development

Successfully merging a pull request may close this issue.

2 participants