接口 CommonProto.BlockOrBuilder

所有超级接口:
com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder
所有已知实现类:
CommonProto.Block, CommonProto.Block.Builder
封闭类:
CommonProto

public static interface CommonProto.BlockOrBuilder extends com.google.protobuf.MessageOrBuilder
  • 方法详细资料

    • getHash

      com.google.protobuf.ByteString getHash()
       区块的哈希,当区块处于待确认状态时为`null`
       
      bytes hash = 1;
      返回:
      The hash.
    • getCreator

      com.google.protobuf.ByteString getCreator()
       产块者账户地址
       
      bytes creator = 2;
      返回:
      The creator.
    • getNonce

      long getNonce()
       这个区块之前产块者产生的区块数量
       
      uint64 nonce = 3;
      返回:
      The nonce.
    • getParentHashesList

      List<com.google.protobuf.ByteString> getParentHashesList()
       父区块的哈希
       
      repeated bytes parent_hashes = 4;
      返回:
      A list containing the parentHashes.
    • getParentHashesCount

      int getParentHashesCount()
       父区块的哈希
       
      repeated bytes parent_hashes = 4;
      返回:
      The count of parentHashes.
    • getParentHashes

      com.google.protobuf.ByteString getParentHashes(int index)
       父区块的哈希
       
      repeated bytes parent_hashes = 4;
      参数:
      index - The index of the element to return.
      返回:
      The parentHashes at the given index.
    • getWitnessesList

      List<com.google.protobuf.ByteString> getWitnessesList()
       见证者账户地址
       
      repeated bytes witnesses = 5;
      返回:
      A list containing the witnesses.
    • getWitnessesCount

      int getWitnessesCount()
       见证者账户地址
       
      repeated bytes witnesses = 5;
      返回:
      The count of witnesses.
    • getWitnesses

      com.google.protobuf.ByteString getWitnesses(int index)
       见证者账户地址
       
      repeated bytes witnesses = 5;
      参数:
      index - The index of the element to return.
      返回:
      The witnesses at the given index.
    • getTimestamp

      long getTimestamp()
       区块产生时的 UNIX 时间戳,单位为秒
       
      int64 timestamp = 6;
      返回:
      The timestamp.
    • getSize

      long getSize()
       区块大小的字节数
       
      uint64 size = 7;
      返回:
      The size.
    • getTransactionCount

      int getTransactionCount()
       区块包含的事务数量
       
      uint32 transaction_count = 8;
      返回:
      The transactionCount.
    • getTransactionsRoot

      com.google.protobuf.ByteString getTransactionsRoot()
       区块的事务默克尔树根
       
      bytes transactions_root = 9;
      返回:
      The transactionsRoot.
    • getTransactionsList

      List<CommonProto.Transaction> getTransactionsList()
       事务对象的数组,或为空
       
      repeated .bdware.bdledger.api.Transaction transactions = 10;
    • getTransactions

      CommonProto.Transaction getTransactions(int index)
       事务对象的数组,或为空
       
      repeated .bdware.bdledger.api.Transaction transactions = 10;
    • getTransactionsCount

      int getTransactionsCount()
       事务对象的数组,或为空
       
      repeated .bdware.bdledger.api.Transaction transactions = 10;
    • getTransactionsOrBuilderList

      List<? extends CommonProto.TransactionOrBuilder> getTransactionsOrBuilderList()
       事务对象的数组,或为空
       
      repeated .bdware.bdledger.api.Transaction transactions = 10;
    • getTransactionsOrBuilder

      CommonProto.TransactionOrBuilder getTransactionsOrBuilder(int index)
       事务对象的数组,或为空
       
      repeated .bdware.bdledger.api.Transaction transactions = 10;
    • getTransactionHashesList

      List<com.google.protobuf.ByteString> getTransactionHashesList()
       20字节的交易哈希的数组,或为空
       
      repeated bytes transaction_hashes = 11;
      返回:
      A list containing the transactionHashes.
    • getTransactionHashesCount

      int getTransactionHashesCount()
       20字节的交易哈希的数组,或为空
       
      repeated bytes transaction_hashes = 11;
      返回:
      The count of transactionHashes.
    • getTransactionHashes

      com.google.protobuf.ByteString getTransactionHashes(int index)
       20字节的交易哈希的数组,或为空
       
      repeated bytes transaction_hashes = 11;
      参数:
      index - The index of the element to return.
      返回:
      The transactionHashes at the given index.