mirror of
https://source.quilibrium.com/quilibrium/ceremonyclient.git
synced 2024-12-27 00:55:17 +00:00
[PROTO-55] adjust buffer sizes to stem bleed from overweight execution transforms in frames
This commit is contained in:
parent
4a6c4fa08e
commit
f0e99b42dc
@ -221,8 +221,8 @@ func (e *CeremonyDataClockConsensusEngine) Start(
|
|||||||
|
|
||||||
go func() {
|
go func() {
|
||||||
server := grpc.NewServer(
|
server := grpc.NewServer(
|
||||||
grpc.MaxSendMsgSize(400*1024*1024),
|
grpc.MaxSendMsgSize(600*1024*1024),
|
||||||
grpc.MaxRecvMsgSize(400*1024*1024),
|
grpc.MaxRecvMsgSize(600*1024*1024),
|
||||||
)
|
)
|
||||||
protobufs.RegisterCeremonyServiceServer(server, e)
|
protobufs.RegisterCeremonyServiceServer(server, e)
|
||||||
|
|
||||||
|
@ -916,7 +916,7 @@ func (e *CeremonyDataClockConsensusEngine) reverseOptimisticSync(
|
|||||||
Filter: e.filter,
|
Filter: e.filter,
|
||||||
FromFrameNumber: maxFrame - 32,
|
FromFrameNumber: maxFrame - 32,
|
||||||
},
|
},
|
||||||
grpc.MaxCallRecvMsgSize(400*1024*1024),
|
grpc.MaxCallRecvMsgSize(600*1024*1024),
|
||||||
)
|
)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
e.logger.Error(
|
e.logger.Error(
|
||||||
@ -984,7 +984,7 @@ func (e *CeremonyDataClockConsensusEngine) reverseOptimisticSync(
|
|||||||
FromFrameNumber: from,
|
FromFrameNumber: from,
|
||||||
ToFrameNumber: maxFrame,
|
ToFrameNumber: maxFrame,
|
||||||
},
|
},
|
||||||
grpc.MaxCallRecvMsgSize(400*1024*1024),
|
grpc.MaxCallRecvMsgSize(600*1024*1024),
|
||||||
)
|
)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
e.logger.Error(
|
e.logger.Error(
|
||||||
@ -1077,7 +1077,7 @@ func (e *CeremonyDataClockConsensusEngine) sync(
|
|||||||
Filter: e.filter,
|
Filter: e.filter,
|
||||||
FromFrameNumber: maxFrame - 16,
|
FromFrameNumber: maxFrame - 16,
|
||||||
},
|
},
|
||||||
grpc.MaxCallRecvMsgSize(400*1024*1024),
|
grpc.MaxCallRecvMsgSize(600*1024*1024),
|
||||||
)
|
)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
e.logger.Error(
|
e.logger.Error(
|
||||||
|
@ -397,8 +397,8 @@ func (e *CeremonyDataClockConsensusEngine) GetPublicChannelForProvingKey(
|
|||||||
after := time.After(20 * time.Second)
|
after := time.After(20 * time.Second)
|
||||||
go func() {
|
go func() {
|
||||||
server := grpc.NewServer(
|
server := grpc.NewServer(
|
||||||
grpc.MaxSendMsgSize(400*1024*1024),
|
grpc.MaxSendMsgSize(600*1024*1024),
|
||||||
grpc.MaxRecvMsgSize(400*1024*1024),
|
grpc.MaxRecvMsgSize(600*1024*1024),
|
||||||
)
|
)
|
||||||
|
|
||||||
s := &svr{
|
s := &svr{
|
||||||
@ -438,8 +438,8 @@ func (e *CeremonyDataClockConsensusEngine) GetPublicChannelForProvingKey(
|
|||||||
client := protobufs.NewCeremonyServiceClient(cc)
|
client := protobufs.NewCeremonyServiceClient(cc)
|
||||||
s, err := client.GetPublicChannel(
|
s, err := client.GetPublicChannel(
|
||||||
context.Background(),
|
context.Background(),
|
||||||
grpc.MaxCallSendMsgSize(400*1024*1024),
|
grpc.MaxCallSendMsgSize(600*1024*1024),
|
||||||
grpc.MaxCallRecvMsgSize(400*1024*1024),
|
grpc.MaxCallRecvMsgSize(600*1024*1024),
|
||||||
)
|
)
|
||||||
return s, errors.Wrap(err, "get public channel for proving key")
|
return s, errors.Wrap(err, "get public channel for proving key")
|
||||||
}
|
}
|
||||||
|
@ -229,8 +229,8 @@ func NewRPCServer(
|
|||||||
|
|
||||||
func (r *RPCServer) Start() error {
|
func (r *RPCServer) Start() error {
|
||||||
s := grpc.NewServer(
|
s := grpc.NewServer(
|
||||||
grpc.MaxRecvMsgSize(400*1024*1024),
|
grpc.MaxRecvMsgSize(600*1024*1024),
|
||||||
grpc.MaxSendMsgSize(400*1024*1024),
|
grpc.MaxSendMsgSize(600*1024*1024),
|
||||||
)
|
)
|
||||||
protobufs.RegisterNodeServiceServer(s, r)
|
protobufs.RegisterNodeServiceServer(s, r)
|
||||||
reflection.Register(s)
|
reflection.Register(s)
|
||||||
@ -272,8 +272,8 @@ func (r *RPCServer) Start() error {
|
|||||||
opts := []grpc.DialOption{
|
opts := []grpc.DialOption{
|
||||||
grpc.WithTransportCredentials(insecure.NewCredentials()),
|
grpc.WithTransportCredentials(insecure.NewCredentials()),
|
||||||
grpc.WithDefaultCallOptions(
|
grpc.WithDefaultCallOptions(
|
||||||
grpc.MaxCallRecvMsgSize(400*1024*1024),
|
grpc.MaxCallRecvMsgSize(600*1024*1024),
|
||||||
grpc.MaxCallSendMsgSize(400*1024*1024),
|
grpc.MaxCallSendMsgSize(600*1024*1024),
|
||||||
),
|
),
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user