mirror of
https://gitee.com/BDWare/cm
synced 2025-01-10 01:44:04 +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) {
|
||||
ContractClient client = statusRecorder.getContractClient(idOrName);
|
||||
return client;
|
||||
return statusRecorder.getContractClient(idOrName);
|
||||
}
|
||||
|
||||
public void clearCache() {
|
||||
@ -1212,6 +1211,15 @@ public class ContractManager {
|
||||
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) {
|
||||
long start = System.currentTimeMillis();
|
||||
|
||||
@ -1222,7 +1230,7 @@ public class ContractManager {
|
||||
// + Thread.currentThread().getId());
|
||||
String requestID = c.getRequestID();
|
||||
if (c.getContractID() == null) {
|
||||
LOGGER.info("合约Name转为ID error!");
|
||||
LOGGER.error("合约Name转为ID error!");
|
||||
ContractResult cr =
|
||||
new ContractResult(
|
||||
Status.Error,
|
||||
@ -1379,7 +1387,7 @@ public class ContractManager {
|
||||
*
|
||||
* @author Kaidong Wu
|
||||
*/
|
||||
public JsonObject extractEventsFromContractResult(
|
||||
public void extractEventsFromContractResult(
|
||||
OnHashCallback ocb,
|
||||
JsonObject result,
|
||||
ContractClient client,
|
||||
@ -1424,7 +1432,6 @@ public class ContractManager {
|
||||
}
|
||||
} catch (Exception ignored) {
|
||||
}
|
||||
return result;
|
||||
}
|
||||
|
||||
public int countEvents() {
|
||||
|
Loading…
Reference in New Issue
Block a user