-
Notifications
You must be signed in to change notification settings - Fork 37.7k
Revert "Add to spends only transcations from me" #24083
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
This reverts commit d045664.
Can we get a test for this behavior? |
The following sections might be updated with supplementary metadata relevant to reviewers and maintainers. ConflictsReviewers, this pull request conflicts with the following ones:
If you consider this pull request important, please also help to review the conflicting pull requests. Ideally, start with the one that should be merged first. |
Added a test, that fails before the revert and passes after. Not sure if there are other things to test. But on the second thought, I should've just added some new assertions in an existing test rather than a create a new test file. I'll find a new home for it, maybe in |
verify wallet conflicts from the receiver's side
a424547
to
3ee6d07
Compare
Moved tests to the existing file. This is ready for review |
The rename in the test seems unnecessary. It adds a lot of noise to the commit. |
We need two wallets on the same node to verify the intended behavior. That means we need to specify wallet each time we call an RPC. One way we can workaround that is to unload the second wallet. But I'm not convinced this is better as it makes the test more fragile. Do you have other ideas how to avoid renames? |
Ah, it looked like you were just replacing |
ACK 3ee6d07 |
Do we want to have it in 23.0 milestone? |
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.
Confirmed:
- included test fails on master (for expected reason) and passes on PR
- revert is a clean and accurate revert
- code changes look reasonable
I think it'd be a better test if the wallets aren't in the same node, but I guess this is fine.
tACK
This reverts commit d045664 from #22929.
This commit was based on invalid assumption that
mapTxSpends
should contain only outgoing txs and broke wallet conflicts feature.