From 09e22538f9698824b0e9f3664b8a5cfbe3dd544f Mon Sep 17 00:00:00 2001 From: Nishant Das Date: Mon, 15 May 2023 17:59:02 +0800 Subject: [PATCH] Support Capella Blocks for Tool (#12402) * fix it * fix it --- tools/eth1voting/main.go | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/tools/eth1voting/main.go b/tools/eth1voting/main.go index 8bc5c33ded..be3d45ed94 100644 --- a/tools/eth1voting/main.go +++ b/tools/eth1voting/main.go @@ -4,6 +4,7 @@ import ( "context" "flag" "fmt" + "math" "time" "github.com/prysmaticlabs/prysm/v4/config/params" @@ -25,7 +26,7 @@ func main() { flag.Parse() ctx := context.Background() - cc, err := grpc.DialContext(ctx, *beacon, grpc.WithInsecure()) + cc, err := grpc.DialContext(ctx, *beacon, grpc.WithInsecure(), grpc.WithDefaultCallOptions(grpc.MaxCallRecvMsgSize(math.MaxInt64))) if err != nil { panic(err) } @@ -82,6 +83,8 @@ func wrapBlock(b *v1alpha1.BeaconBlockContainer) interfaces.ReadOnlyBeaconBlock wb, err = blocks.NewSignedBeaconBlock(bb.AltairBlock) case *v1alpha1.BeaconBlockContainer_BellatrixBlock: wb, err = blocks.NewSignedBeaconBlock(bb.BellatrixBlock) + case *v1alpha1.BeaconBlockContainer_CapellaBlock: + wb, err = blocks.NewSignedBeaconBlock(bb.CapellaBlock) } if err != nil { panic("no block")