wealdtech/ethdo

`Failed to unknown validator` error on `ethdo validator exit`

Closed this issue · 2 comments

I am trying to import a validator key keystore and generate an exit message for it:

./ethdo wallet create --base-dir=/data/wallet --type=hd --wallet=withdrawal-validator --mnemonic="XXXXX" --wallet-passphrase="XXXXXX"
./ethdo account create --base-dir=/data/wallet --account=withdrawal-validator/0 --wallet-passphrase="XXXXX" --passphrase="XXXXX" --path="m/12381/3600/0/0/0"
./ethdo validator exit --connection=127.0.0.1:3500 --base-dir=/data/wallet --json --account=withdrawal-validator/0 --passphrase="XXXXX"

But this results in an error:

Error: failed to process: failed to obtain validators: failed to request validators: failed to call GET endpoint: Get "http://127.0.0.1:3500/eth/v1/beacon/states/head/validators": context deadline exceeded

Am I doing something wrong?

Complete log:

Increasing timeout to 2m0s
Failed to read offline preparation file: stat offline-preparation.json: no such file or directory
Populating chain info from beacon node
Genesis validators root obtained from chain info
Using genesis validators root 0x043db0d9a83813551ee2f33450d23797757d430911a9320530ad8a0eabc43efb
Fork version obtained from chain info
Using fork version 0x03001020
Domain is 0x04000000628941ef21d1fe8c7134720add10bb91e3b02c007e0046d2472c6695
Error: failed to process: unknown validator

I'm on latest ethdo version:

> ./ethdo version
1.28.4

The document I refer to is https://notes.ethereum.org/@launchpad/withdrawals-guide

mcdee commented

You can increase the time allowed to fetch the beacon state with --timeout=5m for example (in this case setting it to 5 minutes). Please let me know if that addresses the issue.

@mcdee After increasing the timeout period, my problem was solved. I saw that the timeout period was uniformly adjusted in version 1.28.5, but it seemed to have no effect on this problem.