Update gRPC API
This commit is contained in:
@@ -1,8 +1,11 @@
|
||||
package bdchain.api;
|
||||
|
||||
import bdchain.api.grpc.*;
|
||||
import bdchain.api.grpc.TransactionLedgerGrpc.TransactionLedgerBlockingStub;
|
||||
import bdchain.api.grpc.TransactionLedgerGrpc.TransactionLedgerFutureStub;
|
||||
import bdchain.api.grpc.common.ClientVersionResponse;
|
||||
import bdchain.api.grpc.common.TransactionType;
|
||||
import bdchain.api.grpc.txledger.*;
|
||||
import bdchain.api.grpc.txledger.TransactionLedgerGrpc.TransactionLedgerBlockingStub;
|
||||
import bdchain.api.grpc.txledger.TransactionLedgerGrpc.TransactionLedgerFutureStub;
|
||||
import com.google.common.util.concurrent.ListenableFuture;
|
||||
import com.google.protobuf.ByteString;
|
||||
import com.google.protobuf.Empty;
|
||||
@@ -14,12 +17,12 @@ import java.util.concurrent.TimeUnit;
|
||||
import java.util.logging.Level;
|
||||
import java.util.logging.Logger;
|
||||
|
||||
// import bdchain.api.grpc.TransactionLedgerGrpc.TransactionLedgerStub;
|
||||
// import bdchain.api.grpc.txledger.TransactionLedgerGrpc.TransactionLedgerStub;
|
||||
|
||||
/**
|
||||
* 事务账本客户端
|
||||
*
|
||||
* <p>如有更灵活的需求可直接使用{@link bdchain.api.grpc.TransactionLedgerGrpc}类。
|
||||
* <p>如有更灵活的需求可直接使用{@link bdchain.api.grpc.txledger.TransactionLedgerGrpc}类。
|
||||
*
|
||||
* @see <a href="https://phabricator.internetapi.cn/w/public/bdchain/grpc-api/#api">事务账本API</a>
|
||||
* @author nex
|
||||
@@ -159,7 +162,7 @@ public class TransactionLedgerClient {
|
||||
* (非阻塞)
|
||||
*/
|
||||
public ListenableFuture<SendTransactionResponse> sendTransaction(
|
||||
String ledger, TransactionType type, String from, String to, byte[] data) {
|
||||
String ledger, TransactionType type, String from, String to, byte[] data) {
|
||||
|
||||
info(
|
||||
"*** sendTransaction: ledger={0} type={1} from={2} to={3} data={4}",
|
||||
|
||||
Reference in New Issue
Block a user