mirror of
https://gitee.com/BDWare/cm
synced 2025-01-10 09:54:03 +00:00
style(cm)
This commit is contained in:
parent
ea6781adb2
commit
ad7ba56dcf
@ -1091,8 +1091,7 @@ public class ContractManager {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public synchronized ContractClient getClient(String idOrName) {
|
public synchronized ContractClient getClient(String idOrName) {
|
||||||
ContractClient client = statusRecorder.getContractClient(idOrName);
|
return statusRecorder.getContractClient(idOrName);
|
||||||
return client;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public void clearCache() {
|
public void clearCache() {
|
||||||
@ -1212,6 +1211,15 @@ public class ContractManager {
|
|||||||
executeInternalAsync(client, c, r, cb);
|
executeInternalAsync(client, c, r, cb);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public void recoverUnitFromCheckPoint(String contractId, String checkPoint) {
|
||||||
|
// TODO
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getCheckPointFromUnit(String contractId) {
|
||||||
|
// TODO
|
||||||
|
return null;
|
||||||
|
}
|
||||||
|
|
||||||
public String executeLocally(ContractRequest c, OnHashCallback cb) {
|
public String executeLocally(ContractRequest c, OnHashCallback cb) {
|
||||||
long start = System.currentTimeMillis();
|
long start = System.currentTimeMillis();
|
||||||
|
|
||||||
@ -1222,7 +1230,7 @@ public class ContractManager {
|
|||||||
// + Thread.currentThread().getId());
|
// + Thread.currentThread().getId());
|
||||||
String requestID = c.getRequestID();
|
String requestID = c.getRequestID();
|
||||||
if (c.getContractID() == null) {
|
if (c.getContractID() == null) {
|
||||||
LOGGER.info("合约Name转为ID error!");
|
LOGGER.error("合约Name转为ID error!");
|
||||||
ContractResult cr =
|
ContractResult cr =
|
||||||
new ContractResult(
|
new ContractResult(
|
||||||
Status.Error,
|
Status.Error,
|
||||||
@ -1379,7 +1387,7 @@ public class ContractManager {
|
|||||||
*
|
*
|
||||||
* @author Kaidong Wu
|
* @author Kaidong Wu
|
||||||
*/
|
*/
|
||||||
public JsonObject extractEventsFromContractResult(
|
public void extractEventsFromContractResult(
|
||||||
OnHashCallback ocb,
|
OnHashCallback ocb,
|
||||||
JsonObject result,
|
JsonObject result,
|
||||||
ContractClient client,
|
ContractClient client,
|
||||||
@ -1424,7 +1432,6 @@ public class ContractManager {
|
|||||||
}
|
}
|
||||||
} catch (Exception ignored) {
|
} catch (Exception ignored) {
|
||||||
}
|
}
|
||||||
return result;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public int countEvents() {
|
public int countEvents() {
|
||||||
|
Loading…
Reference in New Issue
Block a user