-
Notifications
You must be signed in to change notification settings - Fork 29
mempool: Disable during initial block download #1135
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
Conversation
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.
No complaints from my side. Looks good.
Can we add functional tests though? How hard would that be? |
Not sure, the existing tests for this functionality all rely on the ability to mock time. |
You can mock time in functional tests too. There's a command line argument for the initial time, and there's an rpc function to set the mock time. You can give it a shot. I don't believe any of us used it before though. |
6d20cf8
to
5039d28
Compare
A basic functional test is now there |
This also changes slightly how IBD is detected, where block timestamp is taken into account even for genesis.
This also changes slightly how IBD is detected, where block timestamp is taken into account even for genesis.