-
Notifications
You must be signed in to change notification settings - Fork 305
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
Key management API returns 404 on fee recipient #6050
Comments
I updated Without this option set, I was receiving 404, but that's expected and different to what's reported above. I was able to add/remove recipients, and it got updated with 'accepted', and the file was written... I was using read-only keys for setting/removing my fee-recipient in testing which is admittedly different to the reported setup, I'll have to setup non read-only keys to see if the behaviour differs, but code wise it looks like it should be consistent in that area for fee recipient. @yorickdowne are you able to share the config settings you were using so that I can closely replicate what you had setup? Also the teku version in use? Obviously just the parameters you had set is fine, just curious that your behaviour is different to what I'm observing... Also if you were running a VC or BN where you saw the behaviour may influence how this all behaves. I'm testing with a BN currently, but can use a VC and see if that changes things. So if your keys are in VC, and you're querying VC, or if your keys are in VC and you're querying BN (I'd expect latter to fail in the way described). It's possible another code change has fixed the reported issue, I'll try my testing with 22.7.0 and see if it differs. |
Aha the plot thickens. This happens when starting Teku, importing keys via key manager, then attempting to get their fee recipient. If I then quit and restart Teku, I get this:
Now I am wondering whether the default recipient applies to keys immediately after import. If not, that'd be a bit worrisome. |
Thanks for that, that's a great breakdown. |
The scenario is:
This fails until Teku has been restarted, at which point it succeeds. |
I've got a similar thing happening with a minor caveat, and I think the 'caveat' is the point in time you're checking...
I'm planning on a tiny tweak that should let this work more cleanly, should be up in a few hours barring unexpected issues, but I figured I'd update here so that the scope of the problem is clearer... |
fixes Consensys#6050 Signed-off-by: Paul Harris <paul.harris@consensys.net>
It concerns me that you're seeing this until restart, potentially something else is going on also, it may be related to 'validators-proposer-config-refresh-enabled'. I'll have to check if I had that set. It may be that it needs to be defaulted to true if using the key manager or similar |
) partially addresses #6050 Signed-off-by: Paul Harris <paul.harris@consensys.net>
@yorickdowne this should be significantly better now, although I confess I wasn't able to replicate your 'until restart' stated above. |
Unlike you I may not have waited an epoch before restarting 😅 I'll test master! |
Yep this is great. Thanks for the changes, this helps the UX! |
Fantastic! thanks for the retest, I appreciate it |
Description
When calling
GET
oneth/v1/validator/$__pubkey/feerecipient
for a$__pubkey
that has no individual recipient set, I get a 404 with messageFee recipient not found
As per https://github.com/ethereum/keymanager-APIs/blob/master/apis/fee_recipient.yaml it should return the value of
--validators-proposer-default-fee-recipient
insteadLikewise, a
POST
gets meValidator public key not found when attempting to set fee recipient.
The keys were imported with the key manager API, they are not "read-only" file system keys
The text was updated successfully, but these errors were encountered: