etherwall icon indicating copy to clipboard operation
etherwall copied to clipboard

Portable Mode?

Open AJolly opened this issue 1 year ago • 3 comments
trafficstars

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

AJolly avatar Feb 23 '24 18:02 AJolly

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.

almindor avatar Feb 23 '24 20:02 almindor

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

AJolly avatar Feb 25 '24 22:02 AJolly

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.

almindor avatar Feb 26 '24 03:02 almindor