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

walletimport: doesn't understand erc55 addresses in the dump format #2972

Open
prasannavl opened this issue Jul 16, 2024 · 0 comments
Open
Labels

Comments

@prasannavl
Copy link
Member

Summary

  • walletimport doesn't understand 0x addresses in the dump and as such the import fails.
  • walletdump after generation of addresses (getnewaddress) beyond the original key pool will also generate ERC55.

To reproduce

  • Create a new wallet.
  • Generate a few addresses with getnewaddress
  • dumpwallet
  • Attempt to reimport it again with importwallet

Temporary workaround

  • Using a regex replace to remove the erc55 addresses should make the dump file important again.
  • Eg: sed "s/\(addr=\w\+\),0x\w\+/\1/g" wallet.dump > wallet.importable.dump to generate a new importable file.
@prasannavl prasannavl added the bug label Jul 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant