This commit is contained in:
CaiHQ 2022-05-05 13:28:49 +08:00
commit 8d15c15192
6 changed files with 10 additions and 6 deletions

View File

@ -25,15 +25,14 @@ sourceCompatibility = 1.8
dependencies {
api project(":gmhelper")
api 'berkeleydb:je:3.2.76'
// api 'com.fifesoft:rsyntaxtextarea:3.1.3'
api 'commons-io:commons-io:2.11.0'
api 'io.netty:netty-all:4.1.63.Final'
api 'org.antlr:antlr4:4.9.2'
api 'commons-codec:commons-codec:1.5'
api 'org.apache.logging.log4j:log4j-core:2.17.0'
api 'org.apache.logging.log4j:log4j-api:2.17.0'
api 'org.apache.logging.log4j:log4j-core:2.17.2'
api 'org.apache.logging.log4j:log4j-api:2.17.2'
//api 'org.apache.velocity:velocity-engine-core:2.3'
api 'org.rocksdb:rocksdbjni:6.22.1'

View File

@ -21,4 +21,5 @@ public abstract class JSEngine implements ScriptEngine {
*/
public abstract ContractResult loadContract(
Contract contract, ContractNode contractNode, boolean isInsnLim);
}

View File

@ -55,11 +55,10 @@ public class ServiceServer extends Thread {
public void run() {
EventLoopGroup bossGroup = new NioEventLoopGroup(1);
EventLoopGroup workerGroup = new NioEventLoopGroup();
ServerBootstrap b = new ServerBootstrap();
b.option(ChannelOption.ALLOCATOR, PooledByteBufAllocator.DEFAULT);
b.group(bossGroup, workerGroup)
b.group(bossGroup)
.channel(NioServerSocketChannel.class)
.option(ChannelOption.SO_BACKLOG, 100)
.option(ChannelOption.SO_REUSEADDR, false)

View File

@ -1,5 +1,6 @@
package org.bdware.sc.node;
import com.google.gson.JsonElement;
import org.bdware.sc.bean.ContractExecType;
import org.bdware.sc.py.bean.PYPackage;
@ -18,6 +19,7 @@ public class ContractManifest {
private List<Permission> permissions;
public boolean startAtUnpack;
public String sourcePath;
public JsonElement createParam;
public List<PYPackage> getPyDependences() {
return pyDependences;

View File

@ -3,5 +3,6 @@ package org.bdware.sc.bean;
public enum DefaultRouteRule {
byRequester,
byArgHash,
byTarget;
byTarget,
byFunc;
}

View File

@ -9,6 +9,8 @@ import java.io.Serializable;
public class RouteInfo implements Serializable {
public DefaultRouteRule useDefault;
public String funcName;
public static RouteInfo create(AnnotationNode annotationNode, ContractNode contractNode) {
RouteInfo info = new RouteInfo();
info.useDefault = null;