-
Notifications
You must be signed in to change notification settings - Fork 156
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
Add --noninteractive flag to dcrwallet --create
#2190
Comments
I'm not sure if you're aware, but you can already feed it answers via stdin to automate it. For example, if you're trying to create a wallet from an existing seed, you could create an answers file like: create_wallet_answers.txt
Then use it like so: $ dcrwallet --create <create_wallet_answers.txt Alternatively, if you put it as part of a larger automation script, you could simply declare a variable and use that like so:
|
Hey Dave, Tried that, no dice.
I got pretty far using expect, but am getting stuck detecting the prompt for the blank line that's required after putting in the seed phrase. Any other ideas? DC |
I was going to suggest As far as the We were internally discussing ways to make automated configuration more robust and easier to deal with so that the aforementioned tty requirement is no longer necessary, but obviously that doesn't help for now, so, as mentioned above, I think |
The ioctl error should be fixed on the latest master branch now. Let us know how well |
Hey Josh, I hit a wall with pexpect (via ansible) at the last step of wallet import, due to failing to properly detect the "prompt" that you answer with the blank line. I tried sending an extra \r or \r\n after the seed itself to no avail. This works, up until the very last step. For now I'm working around the inability to create a wallet by dropping one on the filesystem, which isn't very elegant :( Appreciate anything we can do to make the process more automation friendly.
|
I agree things should be made more automation friendly. For now, another option, which is what I did in the simnet setup script is to create a config file with the password in it along with an environment variable that contains the answers and then use that config file along with piping the answers to the wallet when creating it. That works because when there is a |
We've addressed this in #2192. Give latest master another try, and use the hex seed instead of the seed words. That extra blank line needed after the seed prompt is gone now if you use a hex seed. Note that you'll need to update the expect prompt for the seed due to a wording change. |
Awesome, thanks for the quick turn on this Josh :)
DC
…On Wed, Nov 9, 2022 at 10:15 AM Josh Rickmar ***@***.***> wrote:
We've addressed this in #2192
<#2192>. Give latest master
another try, and use the hex seed instead of the seed words. That extra
blank line needed after the seed prompt is gone now if you use a hex seed.
Note that you'll need to update the expect prompt for the seed due to a
wording change.
—
Reply to this email directly, view it on GitHub
<#2190 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAMRGWGU4IPV4VAEB2WF4XTWHPL3NANCNFSM6AAAAAAR2VLL7I>
.
You are receiving this because you authored the thread.Message ID:
***@***.***>
|
Deploying voting nodes using automation tools is burdensome because of the assumption that there is an interactive session used to import wallets, particularly voting wallets.
Please add a --noninteractive flag to
dcrwallet --create
to ease this pain.Thanks
The text was updated successfully, but these errors were encountered: