prysm-pulse/validator
Han Shen 760d2fcfbc
This PR is for issue #11155 "Keymanager APIs: gas limit api" (#11156)
* This PR is for issue #11155 "Keymanager APIs: get_limit api".

This PR implements the first task "get gas limit for the validator key".

* Removed useless import alias.

* Added regenerated key_management.pb.go/pb.gw.go files as well as endpoint_factory.go changes.

* Address James's comments:

1. api path component should be "gas_limit" instead of "gaslimit".
2. ran curl test like:
   - go build -o tmp/validator
   - ./tmp/validator --web --validators-external-signer-url=http://localhost:9000/
   - curl  -H "Authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.e30.C-BuVfWhKpr9elB05GTJdEEx_8AzkImxzXL03IqcHR8" 127.0.0.1:7500/eth/v1/validator/0xb4844195ce8ca78d9d4f7ffdf4001cfdb079e059542bcc4f45ddfff2bcec7defb1482db4f9426f92f59972da395dd2b5/gas_limit
   - {"data":{"pubkey":"0xb4844195ce8ca78d9d4f7ffdf4001cfdb079e059542bcc4f45ddfff2bcec7defb1482db4f9426f92f59972da395dd2b5","gas_limit":"30000000"}}

Co-authored-by: james-prysm <90280386+james-prysm@users.noreply.github.com>
2022-08-08 17:52:18 +00:00
..
accounts Wallet edit CLI Manager migration (#11136) 2022-08-03 19:44:37 +00:00
client improve log for public key not found (#11174) 2022-08-05 11:39:47 +00:00
db Clean up: fix typos (#11165) 2022-08-03 18:47:30 +00:00
graffiti Remove Eth2-Types Dependency in Prysm (#10578) 2022-04-29 10:32:11 -04:00
keymanager Enforce log.WithError(err) static analysis and fix all violations (#11163) 2022-08-05 10:52:02 +00:00
node BugFix: cli stringSlice bug (#11166) 2022-08-08 16:04:34 +00:00
package Move Miscellaneous Shared/ Packages Into Semantic Groups (#9624) 2021-09-17 19:20:50 +00:00
rpc This PR is for issue #11155 "Keymanager APIs: gas limit api" (#11156) 2022-08-08 17:52:18 +00:00
slashing-protection-history Clean up: fix typos (#11165) 2022-08-03 18:47:30 +00:00
testing Massive code cleanup (#10913) 2022-06-27 13:34:38 +00:00
web WEB v.2 (#11007) 2022-07-08 19:08:11 +00:00
BUILD.bazel Add Goland Standard "cmd" Pattern for Validator Binaries (#8541) 2021-03-02 12:58:40 -06:00
README.md Change Eth2 Repository Names (#9425) 2021-08-19 13:00:57 -05:00

Prysmatic Labs Validator Client Implementation

This is the main project folder for a validator client implementation of Ethereum written in Go by Prysmatic Labs. A validator client attaches to a running beacon node in order to perform proposer/attester responsibilities for eth.

You can also read our main README and join our active chat room on Discord.

Discord

To further understand the responsibilities of an Ethereum validator, we recommend reading the official specification here