-
Notifications
You must be signed in to change notification settings - Fork 240
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
Extract t8n arguments from daemon query string #1030
Conversation
This is paired with petertdavies/ethereum-spec-evm-resolver#5 |
It seems to be working when passing a single parameter as "?key=--state-test" for example, but when passing none is complaining with the following error:
I'm debugging to see if I can find the issue, I tried passing empty string and |
What's the full URL you're using? |
This is an example I obtained from the resolver right before sending the query:
Without
|
I reproduced locally and it seems like It's a weird behavior from I tested locally and it seems to work, but let me know what you think. |
That's really odd. Only thing I can think of is that I'm in Python 3.12, and maybe they changed the behaviour? Pushed a fix; let me know if it works for you. |
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.
Last change seems to have fixed my issue, thanks!
What was wrong?
Closes #1029
Closes #1006
How was it fixed?
This commit allows daemon clients to pass command line arguments in the query string (under the key
arg
.) To add multiple arguments, use multiple key/value pairs. For example:curl --unix-socket /run/user/1000/ethereum-spec-evm/daemon.sock 'http://localhost/?arg=--help'
curl --unix-socket /run/user/1000/ethereum-spec-evm/daemon.sock 'http://localhost/?arg=--help&arg=--state-test'
Cute Animal Picture