Skip to content

Commit

Permalink
fix: ProcessOperatorSignedTaskResponse back to ProcessOperatorSignedT…
Browse files Browse the repository at this point in the history
…askResponseV2
  • Loading branch information
uri-99 committed Sep 4, 2024
1 parent 467b589 commit cdb0927
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion aggregator/internal/pkg/server.go
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ func (agg *Aggregator) ServeOperators() error {
// Returns:
// - 0: Success
// - 1: Error
func (agg *Aggregator) ProcessOperatorSignedTaskResponse(signedTaskResponse *types.SignedTaskResponse, reply *uint8) error {
func (agg *Aggregator) ProcessOperatorSignedTaskResponseV2(signedTaskResponse *types.SignedTaskResponse, reply *uint8) error {
agg.AggregatorConfig.BaseConfig.Logger.Info("New task response",
"BatchMerkleRoot", "0x"+hex.EncodeToString(signedTaskResponse.BatchMerkleRoot[:]),
"SenderAddress", "0x"+hex.EncodeToString(signedTaskResponse.SenderAddress[:]),
Expand Down
4 changes: 2 additions & 2 deletions operator/pkg/rpc_client.go
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ func NewAggregatorRpcClient(aggregatorIpPortAddr string, logger logging.Logger)
func (c *AggregatorRpcClient) SendSignedTaskResponseToAggregator(signedTaskResponse *types.SignedTaskResponse) {
var reply uint8
for retries := 0; retries < MaxRetries; retries++ {
err := c.rpcClient.Call("Aggregator.ProcessOperatorSignedTaskResponse", signedTaskResponse, &reply)
err := c.rpcClient.Call("Aggregator.ProcessOperatorSignedTaskResponseV2", signedTaskResponse, &reply)
if err != nil {
c.logger.Error("Received error from aggregator", "err", err)
if errors.Is(err, rpc.ErrShutdown) {
Expand All @@ -53,7 +53,7 @@ func (c *AggregatorRpcClient) SendSignedTaskResponseToAggregator(signedTaskRespo
c.logger.Info("Reconnected to aggregator")
}
} else {
c.logger.Infof("Received error from aggregator: %s. Retrying ProcessOperatorSignedTaskResponse RPC call...", err)
c.logger.Infof("Received error from aggregator: %s. Retrying ProcessOperatorSignedTaskResponseV2 RPC call...", err)
time.Sleep(RetryInterval)
}
} else {
Expand Down

0 comments on commit cdb0927

Please sign in to comment.