This commit is contained in:
CaiHQ 2022-05-27 15:27:56 +08:00
parent 34cedb8a13
commit f74c4f040f
2 changed files with 3 additions and 1 deletions

View File

@ -66,6 +66,7 @@ public class ServiceServer extends Thread {
new ChannelInitializer<SocketChannel>() {
@Override
protected void initChannel(SocketChannel arg0) {
LOGGER.info("Connected:" + arg0.remoteAddress() + " " + arg0.localAddress());
arg0.pipeline()
.addLast(new LengthFieldBasedFrameCodec())
.addLast(new AsyncInboundHandler(ServiceServer.this));

View File

@ -11,7 +11,8 @@ public enum ContractExecType implements Serializable {
RequestAllResponseAll,
Sharding,//分片执行模式
SelfAdaptiveSharding,// self-adaptive sharding
PBFT; //PBFT
PBFT, //PBFT
RAFT;
public static ContractExecType getContractTypeByInt(int i) {