Skip to content

Conversation

@promag
Copy link
Contributor

@promag promag commented Apr 17, 2018

No description provided.

@maflcko maflcko changed the title Fix dangling wallet pointer in vpwallets test: Fix dangling wallet pointer in vpwallets Apr 17, 2018
@maflcko maflcko added the Tests label Apr 17, 2018
@maflcko
Copy link
Member

maflcko commented Apr 17, 2018

This is refactoring and doesn't fix a bug or anything?

@promag
Copy link
Contributor Author

promag commented Apr 17, 2018

No, I came across this "bad code" in a another branch and I thought this could already be "fixed". The first wallet is destroyed and it's pointer is kept in vpwallets but later it's overwritten by another pointer.

@maflcko
Copy link
Member

maflcko commented Apr 17, 2018

utACK d41a420. Code looks slightly cleaner, since the unused pointer is dropped after use.

@laanwj laanwj merged commit d41a420 into bitcoin:master Apr 18, 2018
laanwj added a commit that referenced this pull request Apr 18, 2018
d41a420 test: Fix dangling wallet pointer in vpwallets (João Barbosa)

Pull request description:

Tree-SHA512: 83e4ec571f1675b3dab6f7606f29d6fae495d998b4e5794ff14315943783d4518cfa66eba4113293e349eb74aa22a024b21272fdb29c212477edb4c09aec9fa7
UdjinM6 pushed a commit to dashpay/dash that referenced this pull request Aug 24, 2020
…3666)

* test: Fix importwallet_rescan test

The wallet should be removed after the dumpwallet() call otherwise it 
may lead to unepexted behaviour in other wallet tests since the wallet 
stays in vpwallets then.

* tests: Change where RemoveWallet call is to be more in line with upstream

Signed-off-by: pasta <[email protected]>

Co-authored-by: pasta <[email protected]>
PastaPastaPasta added a commit to PastaPastaPasta/dash that referenced this pull request Sep 8, 2020
…ashpay#3666)

* test: Fix importwallet_rescan test

The wallet should be removed after the dumpwallet() call otherwise it 
may lead to unepexted behaviour in other wallet tests since the wallet 
stays in vpwallets then.

* tests: Change where RemoveWallet call is to be more in line with upstream

Signed-off-by: pasta <[email protected]>

Co-authored-by: pasta <[email protected]>
@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.

3 participants