diff --git a/configs/config.yaml b/configs/config.yaml index c46f1bb..25e49c0 100644 --- a/configs/config.yaml +++ b/configs/config.yaml @@ -28,4 +28,4 @@ signature: expired_time: 3600 gasless_service: url: "https://interface.carv.io" - version: "0.0.1" \ No newline at end of file + version: "1.0.0" \ No newline at end of file diff --git a/configs/config_docker.yaml b/configs/config_docker.yaml index 93ef684..af55a83 100644 --- a/configs/config_docker.yaml +++ b/configs/config_docker.yaml @@ -28,4 +28,4 @@ signature: expired_time: 3600 gasless_service: url: "https://interface.carv.io" - version: "0.0.1" \ No newline at end of file + version: "1.0.0" \ No newline at end of file diff --git a/configs/config_local.yaml b/configs/config_local.yaml index 00f05be..23a5498 100644 --- a/configs/config_local.yaml +++ b/configs/config_local.yaml @@ -40,4 +40,4 @@ signature: expired_time: 3600 gasless_service: url: "https://interface.carv.io" - version: "0.0.1" + version: "1.0.0" diff --git a/internal/worker/chain.go b/internal/worker/chain.go index ee9bce2..8f3cfff 100644 --- a/internal/worker/chain.go +++ b/internal/worker/chain.go @@ -81,6 +81,9 @@ func NewChain( verifierAddress := crypto.PubkeyToAddress(*publicKeyECDSA) // get nodeInfor nodeInfos, err := protocolServiceContractObj.NodeInfos(&bind.CallOpts{}, verifierAddress) + if err != nil { + return nil, errors.Wrapf(err, "get node info failed. Address: %s", verifierAddress) + } cacheIns := cache.New(5*time.Minute, 10*time.Minute) diff --git a/internal/worker/signature_server.go b/internal/worker/signature_server.go index 826fb47..0d6e77d 100644 --- a/internal/worker/signature_server.go +++ b/internal/worker/signature_server.go @@ -472,7 +472,6 @@ func NodeReportVerificationBatchByGaslessService(ctx context.Context, c *Chain, c.logger.WithContext(ctx).Infof("NodeReportVerificationBatchByGaslessService try %d", i+1) reportVerificationRes, reportVerificationErr = c.gaslessClient.ExplorerSendTxNodeReportVerification(ctx, reportVerificationRequest) if reportVerificationErr == nil { - c.logger.WithContext(ctx).Infof("NodeReportVerificationBatchByGaslessService failed %s", reportVerificationRes) break } time.Sleep(2 * time.Second)