Skip to content

Conversation

@sipa
Copy link
Member

@sipa sipa commented Feb 25, 2012

Doing so would allow an attack on old nodes, which would relay a
standard transaction spending a BIP16 output in an invalid way,
until reaching a new node, which will disconnect their peer.

Reported by makomk on IRC.

Doing so would allow an attack on old nodes, which would relay a
standard transaction spending a BIP16 output in an invalid way,
until reaching a new node, which will disconnect their peer.

Reported by makomk on IRC.
@makomk
Copy link

makomk commented Feb 25, 2012

Looks good to me!

Note that this isn't exactly an attack on old nodes though. Unless it's increased recently, under half of all blocks mined are from P2SH nodes, which means that they'd probably be the ones that would be most affected by the Bitcoin network attempting to partition itself into old and new nodes in this way. Then there's the issue of giving an attacker a tool that helps them create a network partition with a useful proportion of miners on each side in the first place.

I also wonder if a similar issue will apply to blocks after P2SH is switched on fully; could they cause the P2SH part of the network to cut itself off from the non-P2SH part?

@gavinandresen
Copy link
Contributor

ACK, nice fix.

@gavinandresen gavinandresen merged commit db9f2e0 into bitcoin:master Feb 27, 2012
suprnurd pushed a commit to chaincoin-legacy/chaincoin that referenced this pull request Dec 5, 2017
1ca59fe update contrib/debian
7ad1ea8 fix some nits
05e0a12 updated pixmap references to dash
da7ef9c rename

- bitcoin*.png to dash*.png
- bitcoin*.xpm to dash*.xpm

d0d2f05 Update Dash description in Debian control to match the description in the main README.md file
3dc2bab Update Dash description in Debian control to match the description in the main README.md file

- this merges the latest Bitcoin changes and should enable us to provide Dash PPAs via https://launchpad.net/~dash.org/+archive/ubuntu/dash

Closes bitcoin#880
ptschip pushed a commit to ptschip/bitcoin that referenced this pull request Jan 11, 2018
* Use UTF-8 to encode chainparams.cpp

* Remove BOM char from src/config.h
lateminer pushed a commit to lateminer/bitcoin that referenced this pull request Oct 30, 2019
d7afebb [UI] Simplify Qt margins. No functional change. (warrows)

Tree-SHA512: c29c1d416d81ccda15d90c26fcadc9b67dcd27b8b7bdbd55c951e0ddd6c809b0cc7cc0dfc3590dc45fa2fb4f0e5218d9da2a424cb3a953d9b542de34ab7b693c
@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

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants