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

Merging two Electrum wallets together causes an assertion #12

Open
sophom opened this issue Jun 5, 2019 · 0 comments
Open

Merging two Electrum wallets together causes an assertion #12

sophom opened this issue Jun 5, 2019 · 0 comments

Comments

@sophom
Copy link
Contributor

sophom commented Jun 5, 2019

When trying to merge two electrum wallets together, the "assert len(transactions) == 1" in merge asserts.

For example let's just say you created a segwit wallet after happily using the old style wallet. Then you moved your bitcoin from the old wallet to the new segwit wallet. When entering both wallet csvs on the command line, the above assertion will assert on the transaction that transfers the funds from the old wallet to the new wallet.

Adding the below to the ElectrumParser seems to fix the problem:

def merge_some(self, transactions):
    return transactions
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

No branches or pull requests

1 participant