@@ -36,10 +36,8 @@ public class HttpMethed {
3636 static HttpClient httpClient ;
3737 static HttpPost httppost ;
3838 static HttpResponse response ;
39- static Integer connectionTimeout =
40- Configuration .getByPath ("testng.conf" ).getInt ("defaultParameter.httpConnectionTimeout" );
41- static Integer soTimeout =
42- Configuration .getByPath ("testng.conf" ).getInt ("defaultParameter.httpSoTimeout" );
39+ static Integer connectionTimeout = 19000 ;
40+ static Integer soTimeout = 18000 ;
4341 static String transactionString ;
4442 static String transactionSignString ;
4543 static JSONObject responseContent ;
@@ -48,8 +46,7 @@ public class HttpMethed {
4846 public static volatile Integer witnessNum ;
4947
5048 /** constructor. */
51- private static volatile String httpnode =
52- Configuration .getByPath ("testng.conf" ).getStringList ("httpnode.ip.list" ).get (1 );
49+ private static volatile String httpnode = "127.0.0.1:50052" ;
5350
5451 /** constructor. */
5552 public static Integer getWitnessNum () {
@@ -1171,7 +1168,7 @@ public static String gettransactionsign(
11711168 String httpNode , String transactionString , String privateKey ) {
11721169 try {
11731170 transactionSignString = TransactionUtils .getTransactionSign (transactionString , privateKey ,
1174- false );
1171+ false );
11751172 } catch (Exception e ) {
11761173 e .printStackTrace ();
11771174 httppost .releaseConnection ();
@@ -3446,7 +3443,7 @@ public static Boolean getSpendResult(
34463443 String jsonString = responseContent .toJSONString ();
34473444 if (jsonString .contains ("result" )
34483445 && (responseContent .getString ("result" ).equals ("true" )
3449- && responseContent .getString ("message" ).equals ("Input note has been spent" ))) {
3446+ && responseContent .getString ("message" ).equals ("Input note has been spent" ))) {
34503447 return Boolean .TRUE ;
34513448 } else {
34523449 return Boolean .FALSE ;
@@ -3501,7 +3498,7 @@ public static Boolean getSpendResultFromSolidity(
35013498 String jsonString = responseContent .toJSONString ();
35023499 if (jsonString .contains ("result" )
35033500 && (responseContent .getString ("result" ).equals ("true" )
3504- && responseContent .getString ("message" ).equals ("Input note has been spent" ))) {
3501+ && responseContent .getString ("message" ).equals ("Input note has been spent" ))) {
35053502 return Boolean .TRUE ;
35063503 } else {
35073504 return Boolean .FALSE ;
@@ -3552,7 +3549,7 @@ public static Boolean getSpendResultFromPbft(
35523549 String jsonString = responseContent .toJSONString ();
35533550 if (jsonString .contains ("result" )
35543551 && (responseContent .getString ("result" ).equals ("true" )
3555- && responseContent .getString ("message" ).equals ("Input note has been spent" ))) {
3552+ && responseContent .getString ("message" ).equals ("Input note has been spent" ))) {
35563553 return Boolean .TRUE ;
35573554 } else {
35583555 return Boolean .FALSE ;
0 commit comments