Skip to content

Commit

Permalink
Support Capella Blocks for Tool (#12402)
Browse files Browse the repository at this point in the history
* fix it

* fix it
  • Loading branch information
nisdas committed May 15, 2023
1 parent 3b9e974 commit 09e2253
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion tools/eth1voting/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import (
"context"
"flag"
"fmt"
"math"
"time"

"github.com/prysmaticlabs/prysm/v4/config/params"
Expand All @@ -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)
}
Expand Down Expand Up @@ -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")
Expand Down

0 comments on commit 09e2253

Please sign in to comment.