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

Portable Mode? #151

Open
AJolly opened this issue Feb 23, 2024 · 3 comments
Open

Portable Mode? #151

AJolly opened this issue Feb 23, 2024 · 3 comments

Comments

@AJolly
Copy link

AJolly commented Feb 23, 2024

Is it possible to force etherwall to store all info in the local directory?

@almindor
Copy link
Owner

You mean not use external blockchain data? If so then yes, you will need to run your own ethereum node however and point to it.

@AJolly
Copy link
Author

AJolly commented Feb 25, 2024

I mean store all of the configuration and associated files in the local directory, and not elsewhere on the system (like users\appdata).

Imagine you have it stored on a flash drive, if you move from one computer to another will it still run perfectly?

Yes I'd expect it to still need to talk to a node

@almindor
Copy link
Owner

This is not supported atm. but can be done. I don't have the cycles to do it anytime soon but would happily review a PR. The steps would be roughly:

  1. Search for <binary file location>/portable.ini config file BEFORE loading from the standard config file locations
  2. If a config file is found there use that one
  3. Expand node command line options hanlding such that in "portable" mode, Etherwall would tell Geth to use a specific data location that's relative to it's binary file (e.g. ./data). NOTE: I'm not sure if geth itself accepts relative paths so an absolute path might need to be calculated before node start

It sounds like a lot but code-wise it shouldn't be too hard, the most tricky part is probably the node cmdline interaction.

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

2 participants