Fix bug
This commit is contained in:
@@ -124,21 +124,21 @@ public final class AccountingChainGrpc {
|
||||
}
|
||||
|
||||
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(
|
||||
fullMethodName = SERVICE_NAME + '/' + "GetTransactionByHash",
|
||||
requestType = bdchain.api.grpc.GetTransactionByHashRequest.class,
|
||||
responseType = bdchain.api.grpc.Block.class,
|
||||
responseType = bdchain.api.grpc.Transaction.class,
|
||||
methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
|
||||
public static io.grpc.MethodDescriptor<bdchain.api.grpc.GetTransactionByHashRequest,
|
||||
bdchain.api.grpc.Block> getGetTransactionByHashMethod() {
|
||||
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.Transaction> getGetTransactionByHashMethod;
|
||||
if ((getGetTransactionByHashMethod = AccountingChainGrpc.getGetTransactionByHashMethod) == null) {
|
||||
synchronized (AccountingChainGrpc.class) {
|
||||
if ((getGetTransactionByHashMethod = AccountingChainGrpc.getGetTransactionByHashMethod) == null) {
|
||||
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)
|
||||
.setFullMethodName(generateFullMethodName(
|
||||
"bdchain.api.AccountingChain", "GetTransactionByHash"))
|
||||
@@ -146,7 +146,7 @@ public final class AccountingChainGrpc {
|
||||
.setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
|
||||
bdchain.api.grpc.GetTransactionByHashRequest.getDefaultInstance()))
|
||||
.setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
|
||||
bdchain.api.grpc.Block.getDefaultInstance()))
|
||||
bdchain.api.grpc.Transaction.getDefaultInstance()))
|
||||
.setSchemaDescriptor(new AccountingChainMethodDescriptorSupplier("GetTransactionByHash"))
|
||||
.build();
|
||||
}
|
||||
@@ -270,7 +270,7 @@ public final class AccountingChainGrpc {
|
||||
/**
|
||||
*/
|
||||
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);
|
||||
}
|
||||
|
||||
@@ -316,7 +316,7 @@ public final class AccountingChainGrpc {
|
||||
asyncUnaryCall(
|
||||
new MethodHandlers<
|
||||
bdchain.api.grpc.GetTransactionByHashRequest,
|
||||
bdchain.api.grpc.Block>(
|
||||
bdchain.api.grpc.Transaction>(
|
||||
this, METHODID_GET_TRANSACTION_BY_HASH)))
|
||||
.addMethod(
|
||||
getGetTransactionByBlockNumberAndIndexMethod(),
|
||||
@@ -381,7 +381,7 @@ public final class AccountingChainGrpc {
|
||||
/**
|
||||
*/
|
||||
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(
|
||||
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(
|
||||
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) {
|
||||
return futureUnaryCall(
|
||||
getChannel().newCall(getGetTransactionByHashMethod(), getCallOptions()), request);
|
||||
@@ -569,7 +569,7 @@ public final class AccountingChainGrpc {
|
||||
break;
|
||||
case METHODID_GET_TRANSACTION_BY_HASH:
|
||||
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;
|
||||
case METHODID_GET_TRANSACTION_BY_BLOCK_NUMBER_AND_INDEX:
|
||||
serviceImpl.getTransactionByBlockNumberAndIndex((bdchain.api.grpc.GetTransactionByBlockNumberAndIndexRequest) request,
|
||||
|
||||
Reference in New Issue
Block a user