Skip to content

Split logic to undo txin's off DisconnectBlock.#5699

Merged
laanwj merged 1 commit intobitcoin:masterfrom
domob1812:btc-txinundo
Feb 9, 2015
Merged

Split logic to undo txin's off DisconnectBlock.#5699
laanwj merged 1 commit intobitcoin:masterfrom
domob1812:btc-txinundo

Conversation

@domob1812
Copy link
Copy Markdown
Contributor

Instead, create a separate function that applies the undo operation of a CTxInUndo object onto a CCoinsViewCache. This method is used from DisconnectBlock.

This is a rebased version of #5192. I had to re-submit it, since the old pull request does no longer pick up changes. The reason for that is that namecoin/namecoin was changed to be no longer a fork of bitcoin/bitcoin, and the old pull request was done via domob1812/namecoin (forked from namecoin/namecoin).

@fanquake
Copy link
Copy Markdown
Member

@sipa Care to re-review this?

@domob1812
Copy link
Copy Markdown
Contributor Author

Rebased. Can this be merged, or is there anything I still have to do?

@TheBlueMatt
Copy link
Copy Markdown
Contributor

utACK

Comment thread src/main.cpp Outdated
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Change the DisconnectBlock() to ApplyTxInUndo() (or even better, replace it with %s: with FILE).

@sipa
Copy link
Copy Markdown
Member

sipa commented Feb 3, 2015

utACK apart from the above nit

Instead, create a separate function that applies the undo operation of a
CTxInUndo object onto a CCoinsViewCache.  This method is used from
DisconnectBlock.
@domob1812
Copy link
Copy Markdown
Contributor Author

Fixed the nit.

@laanwj
Copy link
Copy Markdown
Member

laanwj commented Feb 9, 2015

ACK, verfied code moves only apart from some error() message changes.

@laanwj laanwj merged commit eb1c2cd into bitcoin:master Feb 9, 2015
laanwj added a commit that referenced this pull request Feb 9, 2015
eb1c2cd Split logic to undo txin's off DisconnectBlock. (Daniel Kraft)
@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.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants