Remove unused proto schemas (#3005)

* Update io_kubernetes_build commit hash to 1246899

* Update dependency build_bazel_rules_nodejs to v0.33.1

* Update dependency com_github_hashicorp_golang_lru to v0.5.1

* Update libp2p

* Update io_bazel_rules_k8s commit hash to e68d5d7

* Starting to remove old protos

* Bazel build proto passes

* Fixing pb version

* Cleaned up core package

* Fixing tests

* 6 tests failing

* Update proto bugs

* Fixed incorrect validator ordering proto

* Sync with master

* Update go-ssz commit

* Removed bad copies from v1alpha1 folder

* add json spec json to pb handler

* add nested proto example

* proto/testing test works

* fix refactoring build failures

* use merged ssz

* push latest changes

* used forked json encoding

* used forked json encoding

* fix warning

* fix build issues

* fix test and lint

* fix build

* lint
This commit is contained in:
terence tsao
2019-07-22 07:03:57 -07:00
committed by Preston Van Loon
parent c8e8e84c60
commit 1b5b8a57e0
184 changed files with 4222 additions and 9635 deletions

View File

@@ -147,7 +147,7 @@ func (s *server) allocateNewKeys(ctx context.Context, podName string, numKeys in
}
// Do the actual deposit
if err := s.makeDeposit(di.Pubkey, di.WithdrawalCredentials, di.Signature); err != nil {
if err := s.makeDeposit(di.PublicKey, di.WithdrawalCredentials, di.Signature); err != nil {
return nil, err
}
// Store in database

View File

@@ -9,7 +9,7 @@ go_library(
importpath = "github.com/prysmaticlabs/prysm/tools/ssz-server",
visibility = ["//visibility:private"],
deps = [
"//proto/beacon/p2p/v1:go_default_library",
"//proto/eth/v1alpha1:go_default_library",
"@com_github_prysmaticlabs_go_ssz//:go_default_library",
"@org_uber_go_automaxprocs//:go_default_library",
],
@@ -33,7 +33,7 @@ go_image(
tags = ["manual"],
visibility = ["//visibility:private"],
deps = [
"//proto/beacon/p2p/v1:go_default_library",
"//proto/eth/v1alpha1:go_default_library",
"@com_github_prysmaticlabs_go_ssz//:go_default_library",
"@org_uber_go_automaxprocs//:go_default_library",
],

View File

@@ -13,7 +13,7 @@ import (
"net/http"
ssz "github.com/prysmaticlabs/go-ssz"
pb "github.com/prysmaticlabs/prysm/proto/beacon/p2p/v1"
ethpb "github.com/prysmaticlabs/prysm/proto/eth/v1alpha1"
_ "go.uber.org/automaxprocs"
)
@@ -71,7 +71,7 @@ func decodeDepositData(w http.ResponseWriter, r *http.Request) {
return
}
di := &pb.DepositData{}
di := &ethpb.Deposit_Data{}
if err := ssz.Unmarshal(encodedData, di); err != nil {
w.WriteHeader(http.StatusInternalServerError)