diff --git a/src/main/java/org/bdware/sc/ContractManager.java b/src/main/java/org/bdware/sc/ContractManager.java index 6275f82..60fea1b 100644 --- a/src/main/java/org/bdware/sc/ContractManager.java +++ b/src/main/java/org/bdware/sc/ContractManager.java @@ -24,6 +24,7 @@ import org.bdware.sc.units.MultiContractMeta; import org.bdware.sc.units.RespCache; import org.bdware.sc.util.JsonUtil; import org.bdware.sc.util.VersionUtil; +import org.bdware.server.trustedmodel.ContractExecutor; import org.bdware.server.trustedmodel.SingleNodeExecutor; import org.hyperic.sigar.Mem; import org.hyperic.sigar.ProcMem; @@ -2202,6 +2203,10 @@ public class ContractManager { eventBroker.doSubscribe(topic, new WSClientConsumer(channel)); } + public ContractExecutor getExecutor(String contractID) { + return statusRecorder.getContractMeta(contractID).contractExecutor; + } + public JsonElement getLedgerParams() { return chainOpener.getLedgerParams(); }