-
Notifications
You must be signed in to change notification settings - Fork 110
cmd/swarm: make bzzaccount flag optional and add bzzkeyhex flag #1531
Conversation
As noticed by @nonsense : One thing that we should probably also do is to use a different default data directory. |
There was a concern raised that picking up the first account when multiple accounts exists, could be a bad idea. To solve this we could print the list of accounts and tell the user to rerun swarm with the Update: When multiple accounts exist, it will list all accounts and exit. |
@homotopycolimit adding you here for awareness as I know you care about those flags and the UX in general. |
yes thanks. this has been a pet peeve of mine for a long time. In a related note, what do you think should happen when you type |
I think I also think the default swarm node should be light node - only supporting retrieve requests and uploads, and not acting as a sync/regular node by default. sync/regular nodes should be a harder barrier to entry - you shouldn't be able to just spin up 1000 of them easily. |
ok. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM 👍
* master: network/newstream: new stream! protocol base implementation (#1500) swarm: fix bzz_info.port when using dynamic port allocation (#1537) cmd/swarm: make bzzaccount flag optional and add bzzkeyhex flag (#1531) cmd/swarm: remove separate function to parse env vars (#1536) network/bitvector: Multibit set/unset + string rep (#1530) swarm: 0.4.3 unstable (#1526) travis: also build on release tags (#1527) swarm: release v0.4.2 (#1496) network: bump bzz stream hive (#1522) docker: update ca-certificates file (#1525) Add swarm guide to /docs (#1513) network/simulation: Add ExecAdapter capability to swarm simulations (#1503)
Flag:
--bzzaccount
This flag should not be mandatory.
I've also removed the entrypoint script from our docker image which was mainly doing the account creation.
Relates to: #1100
Flag:
--bzzkeyhex
To be used for testing purposes, similar to the existing
--nodekeyhex
.Specially useful on simulations, for reproducibility.