Skip to content

Conversation

@sipa
Copy link
Member

@sipa sipa commented Oct 30, 2015

BIP34 guarantees that every coinbase transaction (and thus every transaction derived from it) has a unique txid, assuming no double-SHA256 collisions.

@morcos discovered that BIP30 verification always requires access to the database underlying the chainstate cache, as we don't do negative caching. As BIP30 is the only thing that would need such a negative cache in consensus logic, better to just remove it.

BIP34 guarantees that every coinbase transaction (and thus every transaction
derived from it) has a unique txid, assuming no double-SHA256 collisions.

Alex Morcos discovered that BIP30 verification always requires access to the
database underlying the chainstate cache, as we don't do negative caching.
As BIP30 is the only thing that would need such a negative cache in consensus
logic, better to just remove it.
@gmaxwell
Copy link
Contributor

How does this avoid corruption during initial block download? I give you a run of early blocks that perform overwrites prior to BIP34; eventually you discover that chain is shorter than the good one and try to reorganize it out. Oops: You can't.

@sipa
Copy link
Member Author

sipa commented Oct 30, 2015

Oops.

@sipa sipa closed this Oct 30, 2015
@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.

2 participants