Skip to content

Conversation

@willcl-ark
Copy link
Owner

x

This allows us to calculate nWndowEnd better.
Before, it would be calculated based on an old pindexLastCommonBlock,
which could result in blocks not requested for download that could have been
requested, and peers being wrongly marked as staller.
This reverts commit 49d569c
which introduced extra logic for when a snapshot was loaded.
With the previous commit, this is not longer necessary
because the more general logic of advancing pindexLastCommonBlock
also covers this case.
getpeerinfo provides a list of blocks that are inflight, which can be used
instead.
This test (which would fail without the previous commit) checks
that after the stalling block was received, we don't incorrectly
mark another peer as a staller immediately.
@willcl-ark willcl-ark force-pushed the master branch 5 times, most recently from ca1d011 to 4fb5c73 Compare April 4, 2025 09:09
@willcl-ark willcl-ark force-pushed the 202403_ibd_lastcommonblock branch from c08c8ae to bb5aa0a Compare April 4, 2025 09:10
@willcl-ark willcl-ark force-pushed the master branch 3 times, most recently from b78454f to 70103cd Compare September 10, 2025 10:09
@github-actions github-actions bot force-pushed the master branch 3 times, most recently from 97ed557 to e472e80 Compare October 28, 2025 23:54
@willcl-ark willcl-ark force-pushed the master branch 2 times, most recently from 3108440 to 2370337 Compare October 30, 2025 10:31
@github-actions github-actions bot force-pushed the master branch 2 times, most recently from a5d742e to acc041c Compare October 31, 2025 23:54
@willcl-ark willcl-ark force-pushed the master branch 2 times, most recently from 37a6a6d to 4cdce02 Compare November 5, 2025 22:25
@github-actions github-actions bot force-pushed the master branch 4 times, most recently from 6a31544 to acff675 Compare November 11, 2025 23:54
@willcl-ark willcl-ark force-pushed the master branch 9 times, most recently from ed138e2 to 2ccfcf2 Compare November 20, 2025 23:55
@willcl-ark willcl-ark force-pushed the master branch 3 times, most recently from 425aeb2 to 9827b14 Compare November 28, 2025 12:03
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

Successfully merging this pull request may close these issues.

3 participants