Go to file
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
.github Update E2E (#11140) 2022-08-05 13:01:47 +00:00
.well-known Update security.txt (#9896) 2021-11-12 15:55:45 +00:00
api Native Blocks Ep. 2 - Switch usages to new package (#10885) 2022-08-02 15:30:46 +00:00
async Fix counters data races in async tests (#11030) 2022-07-12 14:39:18 +00:00
beacon-chain Respond With Empty Payloads Pre-Merge (#11184) 2022-08-08 13:04:09 -04:00
build/bazel Use go:build lines and remove obsolete +build lines (#10704) 2022-06-14 11:47:27 +00:00
cache/lru add lru (#9592) 2021-09-14 18:11:25 -05:00
cmd BugFix: cli stringSlice bug (#11166) 2022-08-08 16:04:34 +00:00
config Update E2E (#11140) 2022-08-05 13:01:47 +00:00
consensus-types Respond With Empty Payloads Pre-Merge (#11184) 2022-08-08 13:04:09 -04:00
container BugFix: cli stringSlice bug (#11166) 2022-08-08 16:04:34 +00:00
contracts/deposit Clean up various warnings (#10710) 2022-05-19 04:38:04 +00:00
crypto Fix Failures With Prysm Starting Up (#11103) 2022-07-26 13:54:49 +00:00
encoding Native Blocks Ep. 2 - Switch usages to new package (#10885) 2022-08-02 15:30:46 +00:00
hack Keymanager APIs: fee recipient api (#10850) 2022-06-16 15:10:23 +00:00
io Massive code cleanup (#10913) 2022-06-27 13:34:38 +00:00
math Remove Eth2-Types Dependency in Prysm (#10578) 2022-04-29 10:32:11 -04:00
monitoring Enforce log.WithError(err) static analysis and fix all violations (#11163) 2022-08-05 10:52:02 +00:00
network Integrate Engine Proxy into E2E (#10808) 2022-06-06 23:35:54 +00:00
proto This PR is for issue #11155 "Keymanager APIs: gas limit api" (#11156) 2022-08-08 17:52:18 +00:00
runtime Update E2E (#11140) 2022-08-05 13:01:47 +00:00
testing Respond With Empty Payloads Pre-Merge (#11184) 2022-08-08 13:04:09 -04:00
third_party Update E2E (#11140) 2022-08-05 13:01:47 +00:00
time Do not downcast time in currentslot (#10897) 2022-06-16 22:26:55 +00:00
tools Enforce log.WithError(err) static analysis and fix all violations (#11163) 2022-08-05 10:52:02 +00:00
validator This PR is for issue #11155 "Keymanager APIs: gas limit api" (#11156) 2022-08-08 17:52:18 +00:00
.bazelrc Add static analysis for unsafe uint casting (#10318) 2022-03-11 09:34:30 +00:00
.bazelversion Update bazel to 5.0.0 (#10352) 2022-03-14 15:05:08 +00:00
.buildkite-bazelrc Update .buildkite-bazelrc: change CI to use toplevel remote caching. (#10744) 2022-05-24 13:22:44 +00:00
.codecov.yml Codecov: ignore testing directories (#8777) 2021-04-16 08:44:36 -05:00
.deepsource.toml Add generated file to DeepSource exclude_patterns (#8765) 2021-04-14 14:06:25 +00:00
.dockerignore Add tool and script for interop testing (#3417) 2019-09-09 17:31:19 -04:00
.gitattributes linguist-generated=true for mock and pb go files (#1465) 2019-02-02 17:25:28 -05:00
.gitignore Implement generate-auth-secret on beacon node CLI (#10733) 2022-06-07 07:37:12 +00:00
.golangci.yml Change gocognit complextity threshold to 65 (#10906) 2022-06-20 03:57:39 +00:00
.policy.yml Include Policy Bot Application (#7523) 2020-10-14 04:14:38 +00:00
.travis.yml Resolve Proto Lint Issues (#3044) 2019-07-22 14:10:17 -05:00
bazel.sh Fix All Deep Source Shell Issues and Go Issues (#8661) 2021-03-24 19:57:27 +00:00
BUILD.bazel Enforce log.WithError(err) static analysis and fix all violations (#11163) 2022-08-05 10:52:02 +00:00
CONTRIBUTING.md Fix typo in CONTRIBUTING.md (#10168) 2022-02-02 00:01:12 +00:00
DEPENDENCIES.md Move Scripts Into Hack/ Directory (#9605) 2021-09-16 16:22:39 +00:00
deps.bzl Update E2E (#11140) 2022-08-05 13:01:47 +00:00
fuzzbuzz.yaml Fix Fuzzing (#10798) 2022-06-01 13:15:50 +00:00
go.mod Update E2E (#11140) 2022-08-05 13:01:47 +00:00
go.sum Update E2E (#11140) 2022-08-05 13:01:47 +00:00
interop.Dockerfile Move Scripts Into Hack/ Directory (#9605) 2021-09-16 16:22:39 +00:00
INTEROP.md Config registry (#10683) 2022-05-20 07:16:53 +00:00
LICENSE.md update to GPLv3 (#297) 2018-07-20 10:23:48 -05:00
nogo_config.json Enforce log.WithError(err) static analysis and fix all violations (#11163) 2022-08-05 10:52:02 +00:00
prysm.bat Add USE_PRYSM_MODERN environment variable (#10229) 2022-03-09 21:00:12 +00:00
prysm.ps1 Update prysm scripts to support client-stats, deprecate slasher (#8971) 2021-06-02 14:06:59 -05:00
prysm.sh typo: convert tab to space (#10918) 2022-06-27 21:53:32 +00:00
README.md [README] Add GitPOAP Badge to Display Number of Minted GitPOAPs for Contributors (#11081) 2022-07-22 15:21:27 +00:00
SECURITY.md Add how users should report security vulnerabilities for this repository (#9525) 2021-09-10 03:13:09 +00:00
service-account.json.enc Bazel cache for travis (#236) 2018-07-07 16:01:58 -04:00
TERMS_OF_SERVICE.md Reduce Usage of Eth2 Terminology in Prysm (#9104) 2021-06-26 19:00:33 +00:00
WORKSPACE Update E2E (#11140) 2022-08-05 13:01:47 +00:00

Prysm: An Ethereum Consensus Implementation Written in Go

Build status Go Report Card Consensus_Spec_Version 1.2.0-rc.1 Execution_API_Version 1.0.0-alpha.9 Discord GitPOAP Badge

This is the core repository for Prysm, a Golang implementation of the Ethereum Consensus specification, developed by Prysmatic Labs. See the Changelog for details of the latest releases and upcoming breaking changes.

Getting Started

A detailed set of installation and usage instructions as well as breakdowns of each individual component are available in the official documentation portal. If you still have questions, feel free to stop by our Discord.

Staking on Mainnet

To participate in staking, you can join the official eth2 launchpad. The launchpad is the only recommended way to become a validator on mainnet. You can explore validator rewards/penalties via Bitfly's block explorer: beaconcha.in, and follow the latest blocks added to the chain on beaconscan.

Contributing

Branches

Prysm maintains two permanent branches:

  • master: This points to the latest stable release. It is ideal for most users.
  • develop: This is used for development, it contains the latest PRs. Developers should base their PRs on this branch.

Guide

Want to get involved? Check out our Contribution Guide to learn more!

License

GNU General Public License v3.0

Terms of Use