diff --git a/src/main/java/org/bdware/sc/ContractManager.java b/src/main/java/org/bdware/sc/ContractManager.java index 60fea1b..592e06f 100644 --- a/src/main/java/org/bdware/sc/ContractManager.java +++ b/src/main/java/org/bdware/sc/ContractManager.java @@ -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() {