diff --git a/src/main/entry/org/bdware/sc/bean/ContractExecType.java b/src/main/entry/org/bdware/sc/bean/ContractExecType.java index 3ff7568..5d198cd 100644 --- a/src/main/entry/org/bdware/sc/bean/ContractExecType.java +++ b/src/main/entry/org/bdware/sc/bean/ContractExecType.java @@ -10,7 +10,9 @@ public enum ContractExecType implements Serializable { RequestAllResponseHalf, RequestAllResponseAll, Sharding,//分片执行模式 - SelfAdaptiveSharding; // self-adaptive sharding + SelfAdaptiveSharding,// self-adaptive sharding + PBFT; //PBFT + public static ContractExecType getContractTypeByInt(int i) { ContractExecType[] values = ContractExecType.values(); @@ -20,6 +22,10 @@ public enum ContractExecType implements Serializable { return ContractExecType.values()[i]; } + public boolean isUnit() { + return this != Sole; + } + public boolean needSeq() { switch (this) { case Sole: