mirror of
https://gitee.com/BDWare/cm
synced 2025-01-10 09:54:03 +00:00
feat: support createParam
feat: docker script
This commit is contained in:
parent
32cc66dad1
commit
71fa74ac14
@ -792,14 +792,9 @@ public class ContractManager {
|
||||
|
||||
public String startContractAndRedirect(Contract c, PrintStream ps, String alias, boolean isDebug) {
|
||||
long freeMemory = getFreeMemory();
|
||||
if (freeMemory < memoryLimit || statusRecorder.runningProcess.size() > 8) {
|
||||
if (statusRecorder.runningProcess.size() > 5 && (freeMemory < memoryLimit)) {
|
||||
statusRecorder.hangLeastUsedContractProcess();
|
||||
// ContractResult r =
|
||||
// new ContractResult(
|
||||
// Status.Error, new JsonPrimitive("insufficient memory:" + freeMemory));
|
||||
// return JsonUtil.toJson(r);
|
||||
}
|
||||
// SimpleDateFormat format = new SimpleDateFormat("yyyy-MM-dd");
|
||||
ContractResult r;
|
||||
try {
|
||||
if (c.getScriptStr().startsWith("/")) {
|
||||
@ -2200,7 +2195,7 @@ public class ContractManager {
|
||||
}
|
||||
|
||||
public JsonElement getLedgerParams() {
|
||||
return chainOpener.getLedgerParams();
|
||||
return chainOpener.getLedgerParams();
|
||||
}
|
||||
|
||||
// 合约状态
|
||||
|
Loading…
Reference in New Issue
Block a user