mirror of
https://gitee.com/BDWare/common
synced 2026-02-15 00:59:29 +00:00
add debug port for cp
This commit is contained in:
@@ -41,6 +41,7 @@ public class Contract extends SM2Verifiable implements Serializable {
|
||||
private YjsType yjsType;
|
||||
|
||||
private SerializableJson createParam;
|
||||
private int remoteDebugPort = 0;
|
||||
|
||||
public int getShardingId() {
|
||||
return this.shardingId;
|
||||
@@ -232,9 +233,17 @@ public class Contract extends SM2Verifiable implements Serializable {
|
||||
createParam = new SerializableJson(ele);
|
||||
}
|
||||
|
||||
public void setRemoteDebugPort(int port) {
|
||||
remoteDebugPort = port;
|
||||
}
|
||||
|
||||
public JsonElement getCreateParam() {
|
||||
if (createParam != null)
|
||||
return createParam.getJsonElement();
|
||||
return null;
|
||||
}
|
||||
|
||||
public int getRemoteDebugPort() {
|
||||
return remoteDebugPort;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user