-
Notifications
You must be signed in to change notification settings - Fork 38.7k
Set nSequenceId when a block is fully linked #6010
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
Set nSequenceId when a block is fully linked #6010
Conversation
|
utACK
|
Also adds a test to CheckBlockIndex
9abac5d to
c1ecee8
Compare
|
Added a CheckBlockIndex test and squashed. |
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.
Won't the new test fail on older installs, which may have already sequence numbers assigned to blocks that aren't linked?
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.
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.
OK, good
|
utACK |
c1ecee8 Set nSequenceId when a block is fully linked (Suhas Daftuar)
|
Cherry-picked to 0.10 via bac6fca |
|
tested (basic operating tests) ACK. |
Also adds a test to CheckBlockIndex Conflicts: src/main.cpp Rebased-From: c1ecee8 Github-Pull: bitcoin#6010 (cherry picked from commit bac6fca) # Conflicts: # src/main.cpp
Also adds a test to CheckBlockIndex Conflicts: src/main.cpp Rebased-From: c1ecee8 Github-Pull: bitcoin#6010 (cherry picked from commit bac6fca) # Conflicts: # src/main.cpp
This fixes the assignment of nSequenceId for headers-first, which can result in blocks being downloaded out of order.