Skip to content
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

remove old work-around for a bug in version 1.1.4 and earlier #17339

Merged
merged 1 commit into from
Jan 17, 2024

Conversation

arvidn
Copy link
Contributor

@arvidn arvidn commented Jan 16, 2024

Purpose:

there was a bug in early version of the full node where an invalid block would sometimes be forwarded to peers (only to be classified invalid later). This was a work-around to not disconnect clients sending you an invalid block (given it was the right kind of invalid).

This was fixed a long time ago now, and we (probably) don't need this work-around anymore.

Current Behavior:

If a peer sends an unfinished block that fails with COIN_AMOUNT_NEGATIVE, we discard the block but forgive the peer, and stay connected to it.

New Behavior:

If a peer sends an unfinished block that's invalid, we always disconnect the peer.

@arvidn arvidn added the Changed Required label for PR that categorizes merge commit message as "Changed" for changelog label Jan 16, 2024
@arvidn arvidn marked this pull request as ready for review January 16, 2024 19:31
@arvidn arvidn requested a review from a team as a code owner January 16, 2024 19:31
@arvidn arvidn requested a review from wjblanke January 16, 2024 19:31
@arvidn arvidn added the ready_to_merge Submitter and reviewers think this is ready label Jan 16, 2024
Copy link

Pull Request Test Coverage Report for Build 7546120431

  • 0 of 0 changed or added relevant lines in 0 files are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage increased (+0.03%) to 90.585%

Totals Coverage Status
Change from base Build 7545020407: 0.03%
Covered Lines: 94801
Relevant Lines: 104615

💛 - Coveralls

@cmmarslender cmmarslender merged commit 45edd24 into main Jan 17, 2024
262 of 263 checks passed
@cmmarslender cmmarslender deleted the remove-old-work-around branch January 17, 2024 00:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Changed Required label for PR that categorizes merge commit message as "Changed" for changelog ready_to_merge Submitter and reviewers think this is ready
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants