-
Notifications
You must be signed in to change notification settings - Fork 387
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
RPC: Avoid assert by keeping a flag to identify trimmed dynafed blocks #1225
RPC: Avoid assert by keeping a flag to identify trimmed dynafed blocks #1225
Conversation
…d block is incomplete and makes it crash
cb41349
to
8f16e00
Compare
utack 8f16e00 |
@@ -228,6 +230,13 @@ class CBlockIndex | |||
return proof.value(); | |||
} | |||
|
|||
const bool dynafed_block() const { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Clang says
'const' type qualifier on return type has no effect
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yeah this warning has been annoying me, I thought it was fixed on the 22.x branch but it is not
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you for posting this, but it has no effect on my RPI4 even though I have the latest version. On startup I get the same assert error. Any tips for me?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If you see the assertion on startup, it usually means that you started IBD without trim_headers
and then enabled trim_headers
without finishing IBD, so the headers chain is much longer than the blocks. Either way, let's continue that conversation in #1240
This MR fixes 2 crashes:
Fixes: #1224