From d8f6d4c45b5b9f2babe3237d8cf6e9ee0cccc71b Mon Sep 17 00:00:00 2001 From: fyInALT Date: Tue, 2 Apr 2024 17:03:18 +0800 Subject: [PATCH] fix rpc --- docker-compose.yml | 4 +--- operator/rpc_client.go | 2 +- ops/configs/operator-docker-compose.yaml | 8 +++++++- 3 files changed, 9 insertions(+), 5 deletions(-) diff --git a/docker-compose.yml b/docker-compose.yml index ba52b27..284ccdb 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -1,8 +1,6 @@ -version: "3" - networks: mach-avs-network: - name: mach-avs-network + name: mach-avs-network-devnet driver: bridge services: diff --git a/operator/rpc_client.go b/operator/rpc_client.go index 9ccb1b2..69dd894 100644 --- a/operator/rpc_client.go +++ b/operator/rpc_client.go @@ -81,7 +81,7 @@ func (c *AggregatorRpcClient) InitOperatorToAggregator() error { c.logger.Info("Create task header to aggregator", "req", fmt.Sprintf("%#v", req)) for i := 0; i < 5; i++ { - err := c.rpcClient.Call("Aggregator.CreateTask", req, &reply) + err := c.rpcClient.Call("Aggregator.InitOperator", req, &reply) if err != nil { c.logger.Info("Received error from aggregator", "err", err) if strings.Contains(err.Error(), "already finished") { diff --git a/ops/configs/operator-docker-compose.yaml b/ops/configs/operator-docker-compose.yaml index e4a1aad..a0dc7e7 100644 --- a/ops/configs/operator-docker-compose.yaml +++ b/ops/configs/operator-docker-compose.yaml @@ -33,4 +33,10 @@ enable_node_api: true avs_registry_coordinator_address: 0xa82fF9aFd8f496c3d6ac40E2a0F282E47488CFc9 operator_state_retriever_address: 0x0E801D84Fa97b50751Dbf25036d067dCf18858bF -operator_server_ip_port_addr: 0.0.0.0:8091 \ No newline at end of file +operator_server_ip_port_addr: 0.0.0.0:8091 + +# the layer1 chain id the avs contracts in +layer1_chain_id: 31337 + +# the layer2 chain id +layer2_chain_id: 20240219