mirror of
https://gitlab.com/pulsechaincom/prysm-pulse.git
synced 2025-01-03 00:27:38 +00:00
parent
3b9e974a45
commit
09e22538f9
@ -4,6 +4,7 @@ import (
|
|||||||
"context"
|
"context"
|
||||||
"flag"
|
"flag"
|
||||||
"fmt"
|
"fmt"
|
||||||
|
"math"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
"github.com/prysmaticlabs/prysm/v4/config/params"
|
"github.com/prysmaticlabs/prysm/v4/config/params"
|
||||||
@ -25,7 +26,7 @@ func main() {
|
|||||||
flag.Parse()
|
flag.Parse()
|
||||||
ctx := context.Background()
|
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 {
|
if err != nil {
|
||||||
panic(err)
|
panic(err)
|
||||||
}
|
}
|
||||||
@ -82,6 +83,8 @@ func wrapBlock(b *v1alpha1.BeaconBlockContainer) interfaces.ReadOnlyBeaconBlock
|
|||||||
wb, err = blocks.NewSignedBeaconBlock(bb.AltairBlock)
|
wb, err = blocks.NewSignedBeaconBlock(bb.AltairBlock)
|
||||||
case *v1alpha1.BeaconBlockContainer_BellatrixBlock:
|
case *v1alpha1.BeaconBlockContainer_BellatrixBlock:
|
||||||
wb, err = blocks.NewSignedBeaconBlock(bb.BellatrixBlock)
|
wb, err = blocks.NewSignedBeaconBlock(bb.BellatrixBlock)
|
||||||
|
case *v1alpha1.BeaconBlockContainer_CapellaBlock:
|
||||||
|
wb, err = blocks.NewSignedBeaconBlock(bb.CapellaBlock)
|
||||||
}
|
}
|
||||||
if err != nil {
|
if err != nil {
|
||||||
panic("no block")
|
panic("no block")
|
||||||
|
Loading…
Reference in New Issue
Block a user