Skip to content

Conversation

@jnewbery
Copy link
Contributor

As suggested here: #9725 (comment)

@TheBlueMatt

Copy link
Contributor

@TheBlueMatt TheBlueMatt left a comment

Choose a reason for hiding this comment

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

utACK 557495fa12ad8dbf2cba0a348be106ddde27348e

Copy link
Contributor

Choose a reason for hiding this comment

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

Why rename this?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

because SyncTransaction is only ever called by a function which uses the variable name pindex, and only uses that variable to call another function that uses the variable name pindex (actually pIndex). Changing the variable name in the middle of the stack seems unnecessary. And since I'm already touching these lines, I might as well.

I should have renamed this pindex, not pindexBlock. Doing that now.

@jnewbery jnewbery force-pushed the remove_SYNC_TRANSACTION_NOT_IN_BLOCK_magic_number branch from 557495f to d0cd0bd Compare April 11, 2017 21:17
@jonasschnelli
Copy link
Contributor

utACK d0cd0bd

@laanwj
Copy link
Member

laanwj commented Apr 13, 2017

utACK d0cd0bd

@laanwj laanwj merged commit d0cd0bd into bitcoin:master Apr 13, 2017
laanwj added a commit that referenced this pull request Apr 13, 2017
d0cd0bd Make CWallet::SyncTransactions() interface friendlier (John Newbery)
714e4ad AddToWalletIfInvolvingMe should test pIndex, not posInBlock (John Newbery)

Tree-SHA512: d02e7ffce635c53f3e099c37cc5613b431f74e0e3ea189269132901a99fc539477849ddad0282ce721d46a4d794c2d46523d58b64f0c26c655f70b5808c745a5
PastaPastaPasta pushed a commit to PastaPastaPasta/dash that referenced this pull request May 27, 2019
d0cd0bd Make CWallet::SyncTransactions() interface friendlier (John Newbery)
714e4ad AddToWalletIfInvolvingMe should test pIndex, not posInBlock (John Newbery)

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

5 participants