Skip to content

Commit d0a090d

Browse files
authored
<fix>(client): add default nodeName to send request. (#825)
1 parent 1469126 commit d0a090d

File tree

4 files changed

+106
-51
lines changed

4 files changed

+106
-51
lines changed

build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ ext {
1616
if (!project.hasProperty("ossrhPassword")) {
1717
ossrhPassword = "xxx"
1818
}
19-
jacksonVersion = '2.14.2'
19+
jacksonVersion = '2.14.3'
2020
commonsIOVersion = '2.11.0'
2121
commonsLang3Version = '3.12.0'
2222
toml4jVersion = "0.7.2"

src/main/java/org/fisco/bcos/sdk/v3/client/Client.java

Lines changed: 23 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -963,14 +963,35 @@ void getTransactionReceiptAsync(
963963
@Deprecated
964964
EnumNodeVersion getChainVersion();
965965

966+
/**
967+
* get the chain compatibility version
968+
*
969+
* @return the chain compatibility version
970+
*/
966971
EnumNodeVersion.Version getChainCompatibilityVersion();
967972

968973
/**
969974
* async get the chain compatibility version
970975
*
971-
* @param versionRespCallback the callback instance
976+
* @param versionRespCallback the callback that will be called when receive the response
977+
*/
978+
void getChainCompatibilityVersionAsync(
979+
RespCallback<EnumNodeVersion.Version> versionRespCallback);
980+
981+
/**
982+
* Set node name to send rpc request directly, if not set, will use random node in the
983+
* groupInfoList. Node name should choose from groupInfo.
984+
*
985+
* @param nodeToSendRequest the node name
986+
*/
987+
void setNodeToSendRequest(String nodeToSendRequest);
988+
989+
/**
990+
* get node name to send rpc request directly
991+
*
992+
* @return the node name
972993
*/
973-
void getChainVersionAsync(RespCallback<EnumNodeVersion.Version> versionRespCallback);
994+
String getNodeToSendRequest();
974995

975996
void start();
976997

0 commit comments

Comments
 (0)