Fix bug
This commit is contained in:
parent
4a7a57c06e
commit
a278c24d0a
@ -124,21 +124,21 @@ public final class AccountingChainGrpc {
|
|||||||
}
|
}
|
||||||
|
|
||||||
private static volatile io.grpc.MethodDescriptor<bdchain.api.grpc.GetTransactionByHashRequest,
|
private static volatile io.grpc.MethodDescriptor<bdchain.api.grpc.GetTransactionByHashRequest,
|
||||||
bdchain.api.grpc.Block> getGetTransactionByHashMethod;
|
bdchain.api.grpc.Transaction> getGetTransactionByHashMethod;
|
||||||
|
|
||||||
@io.grpc.stub.annotations.RpcMethod(
|
@io.grpc.stub.annotations.RpcMethod(
|
||||||
fullMethodName = SERVICE_NAME + '/' + "GetTransactionByHash",
|
fullMethodName = SERVICE_NAME + '/' + "GetTransactionByHash",
|
||||||
requestType = bdchain.api.grpc.GetTransactionByHashRequest.class,
|
requestType = bdchain.api.grpc.GetTransactionByHashRequest.class,
|
||||||
responseType = bdchain.api.grpc.Block.class,
|
responseType = bdchain.api.grpc.Transaction.class,
|
||||||
methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
|
methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
|
||||||
public static io.grpc.MethodDescriptor<bdchain.api.grpc.GetTransactionByHashRequest,
|
public static io.grpc.MethodDescriptor<bdchain.api.grpc.GetTransactionByHashRequest,
|
||||||
bdchain.api.grpc.Block> getGetTransactionByHashMethod() {
|
bdchain.api.grpc.Transaction> getGetTransactionByHashMethod() {
|
||||||
io.grpc.MethodDescriptor<bdchain.api.grpc.GetTransactionByHashRequest, bdchain.api.grpc.Block> getGetTransactionByHashMethod;
|
io.grpc.MethodDescriptor<bdchain.api.grpc.GetTransactionByHashRequest, bdchain.api.grpc.Transaction> getGetTransactionByHashMethod;
|
||||||
if ((getGetTransactionByHashMethod = AccountingChainGrpc.getGetTransactionByHashMethod) == null) {
|
if ((getGetTransactionByHashMethod = AccountingChainGrpc.getGetTransactionByHashMethod) == null) {
|
||||||
synchronized (AccountingChainGrpc.class) {
|
synchronized (AccountingChainGrpc.class) {
|
||||||
if ((getGetTransactionByHashMethod = AccountingChainGrpc.getGetTransactionByHashMethod) == null) {
|
if ((getGetTransactionByHashMethod = AccountingChainGrpc.getGetTransactionByHashMethod) == null) {
|
||||||
AccountingChainGrpc.getGetTransactionByHashMethod = getGetTransactionByHashMethod =
|
AccountingChainGrpc.getGetTransactionByHashMethod = getGetTransactionByHashMethod =
|
||||||
io.grpc.MethodDescriptor.<bdchain.api.grpc.GetTransactionByHashRequest, bdchain.api.grpc.Block>newBuilder()
|
io.grpc.MethodDescriptor.<bdchain.api.grpc.GetTransactionByHashRequest, bdchain.api.grpc.Transaction>newBuilder()
|
||||||
.setType(io.grpc.MethodDescriptor.MethodType.UNARY)
|
.setType(io.grpc.MethodDescriptor.MethodType.UNARY)
|
||||||
.setFullMethodName(generateFullMethodName(
|
.setFullMethodName(generateFullMethodName(
|
||||||
"bdchain.api.AccountingChain", "GetTransactionByHash"))
|
"bdchain.api.AccountingChain", "GetTransactionByHash"))
|
||||||
@ -146,7 +146,7 @@ public final class AccountingChainGrpc {
|
|||||||
.setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
|
.setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
|
||||||
bdchain.api.grpc.GetTransactionByHashRequest.getDefaultInstance()))
|
bdchain.api.grpc.GetTransactionByHashRequest.getDefaultInstance()))
|
||||||
.setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
|
.setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
|
||||||
bdchain.api.grpc.Block.getDefaultInstance()))
|
bdchain.api.grpc.Transaction.getDefaultInstance()))
|
||||||
.setSchemaDescriptor(new AccountingChainMethodDescriptorSupplier("GetTransactionByHash"))
|
.setSchemaDescriptor(new AccountingChainMethodDescriptorSupplier("GetTransactionByHash"))
|
||||||
.build();
|
.build();
|
||||||
}
|
}
|
||||||
@ -270,7 +270,7 @@ public final class AccountingChainGrpc {
|
|||||||
/**
|
/**
|
||||||
*/
|
*/
|
||||||
public void getTransactionByHash(bdchain.api.grpc.GetTransactionByHashRequest request,
|
public void getTransactionByHash(bdchain.api.grpc.GetTransactionByHashRequest request,
|
||||||
io.grpc.stub.StreamObserver<bdchain.api.grpc.Block> responseObserver) {
|
io.grpc.stub.StreamObserver<bdchain.api.grpc.Transaction> responseObserver) {
|
||||||
asyncUnimplementedUnaryCall(getGetTransactionByHashMethod(), responseObserver);
|
asyncUnimplementedUnaryCall(getGetTransactionByHashMethod(), responseObserver);
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -316,7 +316,7 @@ public final class AccountingChainGrpc {
|
|||||||
asyncUnaryCall(
|
asyncUnaryCall(
|
||||||
new MethodHandlers<
|
new MethodHandlers<
|
||||||
bdchain.api.grpc.GetTransactionByHashRequest,
|
bdchain.api.grpc.GetTransactionByHashRequest,
|
||||||
bdchain.api.grpc.Block>(
|
bdchain.api.grpc.Transaction>(
|
||||||
this, METHODID_GET_TRANSACTION_BY_HASH)))
|
this, METHODID_GET_TRANSACTION_BY_HASH)))
|
||||||
.addMethod(
|
.addMethod(
|
||||||
getGetTransactionByBlockNumberAndIndexMethod(),
|
getGetTransactionByBlockNumberAndIndexMethod(),
|
||||||
@ -381,7 +381,7 @@ public final class AccountingChainGrpc {
|
|||||||
/**
|
/**
|
||||||
*/
|
*/
|
||||||
public void getTransactionByHash(bdchain.api.grpc.GetTransactionByHashRequest request,
|
public void getTransactionByHash(bdchain.api.grpc.GetTransactionByHashRequest request,
|
||||||
io.grpc.stub.StreamObserver<bdchain.api.grpc.Block> responseObserver) {
|
io.grpc.stub.StreamObserver<bdchain.api.grpc.Transaction> responseObserver) {
|
||||||
asyncUnaryCall(
|
asyncUnaryCall(
|
||||||
getChannel().newCall(getGetTransactionByHashMethod(), getCallOptions()), request, responseObserver);
|
getChannel().newCall(getGetTransactionByHashMethod(), getCallOptions()), request, responseObserver);
|
||||||
}
|
}
|
||||||
@ -444,7 +444,7 @@ public final class AccountingChainGrpc {
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
*/
|
*/
|
||||||
public bdchain.api.grpc.Block getTransactionByHash(bdchain.api.grpc.GetTransactionByHashRequest request) {
|
public bdchain.api.grpc.Transaction getTransactionByHash(bdchain.api.grpc.GetTransactionByHashRequest request) {
|
||||||
return blockingUnaryCall(
|
return blockingUnaryCall(
|
||||||
getChannel(), getGetTransactionByHashMethod(), getCallOptions(), request);
|
getChannel(), getGetTransactionByHashMethod(), getCallOptions(), request);
|
||||||
}
|
}
|
||||||
@ -508,7 +508,7 @@ public final class AccountingChainGrpc {
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
*/
|
*/
|
||||||
public com.google.common.util.concurrent.ListenableFuture<bdchain.api.grpc.Block> getTransactionByHash(
|
public com.google.common.util.concurrent.ListenableFuture<bdchain.api.grpc.Transaction> getTransactionByHash(
|
||||||
bdchain.api.grpc.GetTransactionByHashRequest request) {
|
bdchain.api.grpc.GetTransactionByHashRequest request) {
|
||||||
return futureUnaryCall(
|
return futureUnaryCall(
|
||||||
getChannel().newCall(getGetTransactionByHashMethod(), getCallOptions()), request);
|
getChannel().newCall(getGetTransactionByHashMethod(), getCallOptions()), request);
|
||||||
@ -569,7 +569,7 @@ public final class AccountingChainGrpc {
|
|||||||
break;
|
break;
|
||||||
case METHODID_GET_TRANSACTION_BY_HASH:
|
case METHODID_GET_TRANSACTION_BY_HASH:
|
||||||
serviceImpl.getTransactionByHash((bdchain.api.grpc.GetTransactionByHashRequest) request,
|
serviceImpl.getTransactionByHash((bdchain.api.grpc.GetTransactionByHashRequest) request,
|
||||||
(io.grpc.stub.StreamObserver<bdchain.api.grpc.Block>) responseObserver);
|
(io.grpc.stub.StreamObserver<bdchain.api.grpc.Transaction>) responseObserver);
|
||||||
break;
|
break;
|
||||||
case METHODID_GET_TRANSACTION_BY_BLOCK_NUMBER_AND_INDEX:
|
case METHODID_GET_TRANSACTION_BY_BLOCK_NUMBER_AND_INDEX:
|
||||||
serviceImpl.getTransactionByBlockNumberAndIndex((bdchain.api.grpc.GetTransactionByBlockNumberAndIndexRequest) request,
|
serviceImpl.getTransactionByBlockNumberAndIndex((bdchain.api.grpc.GetTransactionByBlockNumberAndIndexRequest) request,
|
||||||
|
@ -93,23 +93,23 @@ public final class AccountingChainProto {
|
|||||||
"k_number\030\002 \001(\004\022\r\n\005index\030\003 \001(\r\"]\n(GetTran" +
|
"k_number\030\002 \001(\004\022\r\n\005index\030\003 \001(\r\"]\n(GetTran" +
|
||||||
"sactionByBlockHashAndIndexRequest\022\016\n\006led" +
|
"sactionByBlockHashAndIndexRequest\022\016\n\006led" +
|
||||||
"ger\030\001 \001(\t\022\022\n\nblock_hash\030\002 \001(\014\022\r\n\005index\030\003" +
|
"ger\030\001 \001(\t\022\022\n\nblock_hash\030\002 \001(\014\022\r\n\005index\030\003" +
|
||||||
" \001(\r2\301\004\n\017AccountingChain\022P\n\013BlockNumber\022" +
|
" \001(\r2\307\004\n\017AccountingChain\022P\n\013BlockNumber\022" +
|
||||||
"\037.bdchain.api.BlockNumberRequest\032 .bdcha" +
|
"\037.bdchain.api.BlockNumberRequest\032 .bdcha" +
|
||||||
"in.api.BlockNumberResponse\022L\n\020GetBlockBy" +
|
"in.api.BlockNumberResponse\022L\n\020GetBlockBy" +
|
||||||
"Number\022$.bdchain.api.GetBlockByNumberReq" +
|
"Number\022$.bdchain.api.GetBlockByNumberReq" +
|
||||||
"uest\032\022.bdchain.api.Block\022H\n\016GetBlockByHa" +
|
"uest\032\022.bdchain.api.Block\022H\n\016GetBlockByHa" +
|
||||||
"sh\022\".bdchain.api.GetBlockByHashRequest\032\022" +
|
"sh\022\".bdchain.api.GetBlockByHashRequest\032\022" +
|
||||||
".bdchain.api.Block\022T\n\024GetTransactionByHa" +
|
".bdchain.api.Block\022Z\n\024GetTransactionByHa" +
|
||||||
"sh\022(.bdchain.api.GetTransactionByHashReq" +
|
"sh\022(.bdchain.api.GetTransactionByHashReq" +
|
||||||
"uest\032\022.bdchain.api.Block\022x\n#GetTransacti" +
|
"uest\032\030.bdchain.api.Transaction\022x\n#GetTra" +
|
||||||
"onByBlockNumberAndIndex\0227.bdchain.api.Ge" +
|
"nsactionByBlockNumberAndIndex\0227.bdchain." +
|
||||||
"tTransactionByBlockNumberAndIndexRequest" +
|
"api.GetTransactionByBlockNumberAndIndexR" +
|
||||||
"\032\030.bdchain.api.Transaction\022t\n!GetTransac" +
|
"equest\032\030.bdchain.api.Transaction\022t\n!GetT" +
|
||||||
"tionByBlockHashAndIndex\0225.bdchain.api.Ge" +
|
"ransactionByBlockHashAndIndex\0225.bdchain." +
|
||||||
"tTransactionByBlockHashAndIndexRequest\032\030" +
|
"api.GetTransactionByBlockHashAndIndexReq" +
|
||||||
".bdchain.api.TransactionB@\n\020bdchain.api." +
|
"uest\032\030.bdchain.api.TransactionB@\n\020bdchai" +
|
||||||
"grpcB\024AccountingChainProtoP\001Z\024bdchain/ap" +
|
"n.api.grpcB\024AccountingChainProtoP\001Z\024bdch" +
|
||||||
"i/ac_chainb\006proto3"
|
"ain/api/ac_chainb\006proto3"
|
||||||
};
|
};
|
||||||
com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner =
|
com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner =
|
||||||
new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() {
|
new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() {
|
||||||
|
Loading…
Reference in New Issue
Block a user