-
Notifications
You must be signed in to change notification settings - Fork 1.6k
staking-miner: remove need of a file to pass the seed #3680
Conversation
2167532 to
ea5663f
Compare
|
isn't it a bad practice to pass the seed like that to the command, since it will be saved in all sorts of history files etc.? This is why I initially pref red passing a file in. Otherwise looks good to me. |
Totally! Note that the security still remains in the hand of the user, who can still call the staking miner with ( Effectively leaving the NOTE: There a little trick if you do not want to leave traces in your history though. The history can be totally disabled but that removes the convenience... or use: instead of: (Notice the barely visible leading space). I also added This file can be loaded manually or automatically. Making a call as |
kianenigma
left a comment
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.
Okay, sounds good to me. Only note is that this will need to be redeployed after the first runtime release that contains this, since the flag has changed. But not a blocker, since a proper upgrade mechanism for staking miner does not exist and is purely manual for now.
c2237c9 to
e01bfcd
Compare
* master: staking-miner: remove need of a file to pass the seed (#3680) Companion for 9619 (Private Events) (#3712) Fix Try-Runtime (#3725) XCM v2: Scripting, Query responses, Exception handling and Error reporting (#3629) Bump async-trait from 0.1.50 to 0.1.51 (#3721) allow some overhead in MERKLE_NODE_MAX_SIZE (#3724) Bump itertools from 0.10.0 to 0.10.1 (#3719) Bump tokio from 1.10.0 to 1.10.1 (#3717) Bump trybuild from 1.0.43 to 1.0.45 (#3713) Don't err on deactivated leaf during valiation. (#3708) Bump libc from 0.2.99 to 0.2.100 (#3703)
Currently the seed needs to be passed as a
PathBufpointing to a file containing the seed.This PR allows to:
--account-seedinto--seed--seed 0x1234...)SEED=0x123... staking-miner dry-run) or via.envℹ️URI=wss://... SEED=0x123... staking-miner dry-run) ℹ️ℹ️ Make sure to always prepend your commands mentioning the
SEEDwith a leading spaceThose changes make it potentially safer and easier to package the staking miner and use it as a container (prepared in #3682)