Skip to content

Conversation

@jgarzik
Copy link
Contributor

@jgarzik jgarzik commented Jul 4, 2012

Pull request #1486 contains a bunch of BlueMatt commits in a stack. Pulled out this one out of the stack, and rebased it on top of current HEAD.

Matt Corallo and others added 2 commits July 4, 2012 00:04
::addUnchecked()'s only caller already takes the necessary lock,
and has already calculated the TX's hash.
@jgarzik
Copy link
Contributor Author

jgarzik commented Jul 4, 2012

Added new commit, to eliminate a dup GetHash in mempool code

Copy link
Member

Choose a reason for hiding this comment

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

This BIP30 test has to happen before any transactions are connected. It is not allowed to create a new transaction whose last output is spent within the same block.

Copy link
Contributor

Choose a reason for hiding this comment

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

No changes to txdb are written in the loop, only to mapQueuedChanges.

Copy link
Member

Choose a reason for hiding this comment

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

Right, my mistake. I changed this in my ultraprune branch, however.

@TheBlueMatt
Copy link
Contributor

While you are taking commits out of #1486 that apply cleanly to master, you can try: 3298e89, 9ad2f57 and if you want to be a bit more adventurous, 80e3ac4.

@gavinandresen
Copy link
Contributor

ACK

jgarzik pushed a commit that referenced this pull request Jul 5, 2012
Remove duplicate GetHash() in ConnectBlock
@jgarzik jgarzik merged commit b47d2bc into bitcoin:master Jul 5, 2012
nifgraup pushed a commit to nifgraup/auroracoin-project that referenced this pull request Mar 30, 2014
Remove duplicate GetHash() in ConnectBlock
@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.

4 participants