From 491cbadc4d52eec513d84bb292dca0dd0b5d9c2e Mon Sep 17 00:00:00 2001 From: CaiHQ Date: Wed, 29 Mar 2023 18:48:29 +0800 Subject: [PATCH] refactor joininfo extraction --- build.gradle | 4 ++-- src/main/java/org/bdware/sc/ContractProcess.java | 3 ++- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/build.gradle b/build.gradle index 400a8bb..ad0202c 100644 --- a/build.gradle +++ b/build.gradle @@ -48,7 +48,7 @@ dependencies { implementation 'com.sun.mail:javax.mail:1.6.2' implementation 'com.squareup.okhttp3:okhttp:4.9.1' implementation 'org.bdware.bdcontract:sdk-java:1.0.2' - implementation 'org.bdware.doip:doip-audit-tool:1.1.4' + implementation 'org.bdware.doip:doip-audit-tool:1.1.9' implementation 'org.bdware.doip:doip-sdk:1.3.8' implementation fileTree(dir: 'lib', include: '*.jar') testImplementation 'junit:junit:4.13.2' @@ -67,7 +67,7 @@ jar { // uncomment this when publish, // while develop at local use "false" configurations.runtimeClasspath.filter { - // it.getAbsolutePath().contains("/lib/") + //it.getAbsolutePath().contains("/lib/") false }.collect { it.isDirectory() ? it : zipTree(it) diff --git a/src/main/java/org/bdware/sc/ContractProcess.java b/src/main/java/org/bdware/sc/ContractProcess.java index 8b9901e..a3bcfe9 100644 --- a/src/main/java/org/bdware/sc/ContractProcess.java +++ b/src/main/java/org/bdware/sc/ContractProcess.java @@ -680,7 +680,8 @@ public class ContractProcess { public void updateRepoInfo(JsonElement arg) throws Exception { // 只有0号节点需要初始化IRP连接去updateRepoInfo - if (JavaScriptEntry.shardingID == 0) { + //just disable this part + if (JavaScriptEntry.shardingID == -1) { // DOOP relevant logic DoipClusterServer server = DoipClusterServer.getDOOPServerInstance(); if (server == null) {