Closed jcnelson closed 1 month ago
@obycode I've just ran regtest-env with this commit, and it's working well! Since this is p2p-related, that might not be important, but we might need to run this on one of the testnets if we wanted to test that out.
Both of the failed CI tests pass locally.
This pull request has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.
Delete
NakamotoDownloadStateMachine::load_tenure_start_blocks()
, and everything that depended on it.This feature was an optimization brought about by the observation that the tenure-end block of tenure N would be the tenure-start block of tenure N+1, and an attempt was made to avoid extra network round-trips to fetch the tenure-start block twice. However, this approach lead to #5203 and #5204, the latter of which would be difficult to fix with confidence. So instead, I'm opting to delete this code and see how it goes. If it leads to unacceptable performance, we'll think of something then.