Skip to content

[0.13 backport] Fix handling of invalid compact blocks - #9048

Merged
laanwj merged 3 commits into
bitcoin:0.13from
sdaftuar:fix-invalid-cb-ban-0.13
Nov 9, 2016
Merged

laanwj merged 3 commits into
bitcoin:0.13from
sdaftuar:fix-invalid-cb-ban-0.13

Conversation

@sdaftuar

Copy link
Copy Markdown
Member

Backport of #9026 to 0.13.

@fanquake fanquake added this to the 0.13.2 milestone Nov 1, 2016
@sdaftuar

sdaftuar commented Nov 1, 2016

Copy link
Copy Markdown
Member Author

Updated this to match the latest changes in #9026 (see #9026 (comment)).

@sdaftuar
sdaftuar force-pushed the fix-invalid-cb-ban-0.13 branch from 028131d to 60af1bc Compare November 1, 2016 17:22
This allows future software that would relay compact blocks before
full validation to announce only to peers that will not ban if the
block turns out to be invalid.
@sdaftuar
sdaftuar force-pushed the fix-invalid-cb-ban-0.13 branch from 60af1bc to e8ef50b Compare November 1, 2016 19:29

@TheBlueMatt TheBlueMatt left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

utACK e8ef50b, minus random line removal. Looks equivalent to #9026.

Comment thread src/main.cpp


//////////////////////////////////////////////////////////////////////////////
//

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Wut?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oops, fixed.

@laanwj
laanwj merged commit e8ef50b into bitcoin:0.13 Nov 9, 2016
laanwj added a commit that referenced this pull request Nov 9, 2016
e8ef50b Bump the protocol version to distinguish new banning behavior. (Suhas Daftuar)
015865e Fix compact block handling to not ban if block is invalid (Suhas Daftuar)
8290506 [qa] Test that invalid compactblocks don't result in ban (Suhas Daftuar)
@bitcoin bitcoin locked as resolved and limited conversation to collaborators Sep 8, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants