mirror of
https://gitee.com/BDWare/common
synced 2025-01-10 09:54:13 +00:00
merge pbft algorithm
This commit is contained in:
parent
9b1ca64af9
commit
022b1d3902
@ -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:
|
||||
|
Loading…
Reference in New Issue
Block a user