Skip to content
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

Clone transaction before committing to wallet #37

Closed
wants to merge 1 commit into from

Conversation

sqrrm
Copy link
Member

@sqrrm sqrrm commented Jun 9, 2021

This is basically the same PR as #21 but it's now a real issue. This PR also clones purpose which wasn't done in the earlier PR.

Atomic transactions that have inputs and outputs relating to two wallets are received from the network and added through receivePending(). To avoid adding the same instance of a transaction to two wallets a clone is made and added instead. These transactions come from the network so they don't yet have any wallet data associated with them.

@rachmaninovquartet
Copy link

utACK

@sqrrm
Copy link
Member Author

sqrrm commented Jul 27, 2021

@rachmaninovquartet Thanks for the review.

Could you elaborate on any potential risks you see with this PR? Do you think it should also be merge to the main bitcoinj repo?

@sqrrm
Copy link
Member Author

sqrrm commented Sep 22, 2021

I'm closing this PR and cherry picking the commit that was merged upstream.

@sqrrm sqrrm closed this Sep 22, 2021
@sqrrm
Copy link
Member Author

sqrrm commented Sep 22, 2021

Replaced by #38

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants