* cmd/swarm: don't require bzzaccount flag
* docker: remove setup script because bzzaccount is not required anymore
* cmd/swarm: manage account creation/selection when bzzflag is not defined
* cmd/swarm: no bzzaccount flag tests
* cmd/swarm: use random network ports on tests
* cmd/swarm: fix typo
* cmd/swarm: add --bzzkeyhex flag
* cmd/swarm: use different ipc paths for tests
* readme: update example on how to run swarm
* cmd/swarm: rename getAccount -> getOrCreateAccount
* cmd/swarm: remove unneeded comment
* cmd/swarm: use shorter ipc path for test
- Have `${DataDir}/bzzd.ipc` as IPC path default.
- Respect the `--datadir` flag.
- Keep only the global `--ipcpath` flag and drop the local `--ipcpath` flag
as flags might overwrite each other. (Note: before global `--ipcpath`
was ignored even if it was set)
fixes ethersphere#795
This commit adds a TOML configuration option to swarm. It reuses
the TOML configuration structure used in geth with swarm
customized items.
The commit:
* Adds a "dumpconfig" command to the swarm executable which
allows printing the (default) configuration to stdout, which
then can be redirected to a file in order to customize it.
* Adds a "--config <file>" option to the swarm executable which will
allow to load a configuration file in TOML format from the
specified location in order to initialize the Swarm node The
override priorities are like follows: environment variables
override command line arguments override config file override
default config.