-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Merge #13007: test: Fix dangling wallet pointer in vpwallets #3666
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
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.
|
Good find, however, please backport (modified) bitcoin#13007 instead |
hmm after a quick check im not sure if that makes sense? First, seems like we are already behind the code in that PR and even by backporting it "modified" the outcome would be the same it seems, no? |
Not quite, you'd also have to move another |
That would still not follow the bitcoin PR exactly, would it? I mean our |
|
Please apply PastaPastaPasta@c9ab591, also changed title so that this is in git log showing up the backport even though due to the order of things this is kinda a backport and kinda not |
…ream Signed-off-by: pasta <[email protected]>
PastaPastaPasta
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ACK, performed code review, and ran tests locally
UdjinM6
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
utACK
…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]>
…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]>
The wallet should be removed after the
dumpwallet()call otherwise itmay lead to unepexted behaviour in other wallet tests since the wallet
stays in
vpwalletsthen.