public static interface XchainOuterClass.InternalBlockOrBuilder
extends com.google.protobuf.MessageOrBuilder
| 限定符和类型 | 方法和说明 |
|---|---|
boolean |
containsFailedTxs(String key)
txid -> failed reason
map<string, string> failed_txs = 18; |
com.google.protobuf.ByteString |
getBlockid()
blockid generate the hash sign of the block used by sha256
bytes blockid = 3; |
long |
getCurBlockNum()
int64 curBlockNum = 17; |
long |
getCurTerm()
int64 curTerm = 16; |
Map<String,String> |
getFailedTxs()
已过时。
|
int |
getFailedTxsCount()
txid -> failed reason
map<string, string> failed_txs = 18; |
Map<String,String> |
getFailedTxsMap()
txid -> failed reason
map<string, string> failed_txs = 18; |
String |
getFailedTxsOrDefault(String key,
String defaultValue)
txid -> failed reason
map<string, string> failed_txs = 18; |
String |
getFailedTxsOrThrow(String key)
txid -> failed reason
map<string, string> failed_txs = 18; |
long |
getHeight()
The height of the blockchain
int64 height = 9; |
boolean |
getInTrunk()
下面的属性会动态变化
If the block is on the trunk
bool in_trunk = 14; |
Chainedbft.QuorumCert |
getJustify()
Justify used in chained-bft
.pb.QuorumCert Justify = 20; |
Chainedbft.QuorumCertOrBuilder |
getJustifyOrBuilder()
Justify used in chained-bft
.pb.QuorumCert Justify = 20; |
com.google.protobuf.ByteString |
getMerkleRoot()
The Merkle Tree root
bytes merkle_root = 8; |
com.google.protobuf.ByteString |
getMerkleTree(int index)
所有交易hash的merkle tree
repeated bytes merkle_tree = 13; |
int |
getMerkleTreeCount()
所有交易hash的merkle tree
repeated bytes merkle_tree = 13; |
List<com.google.protobuf.ByteString> |
getMerkleTreeList()
所有交易hash的merkle tree
repeated bytes merkle_tree = 13; |
com.google.protobuf.ByteString |
getNextHash()
Next next block which on trunk
bytes next_hash = 15; |
int |
getNonce()
Random number used to avoid replay attacks
int32 nonce = 2; |
com.google.protobuf.ByteString |
getPreHash()
pre_hash is the parent blockid of the block
bytes pre_hash = 4; |
com.google.protobuf.ByteString |
getProposer()
The miner id
bytes proposer = 5; |
com.google.protobuf.ByteString |
getPubkey()
The pk of the miner
bytes pubkey = 7; |
com.google.protobuf.ByteString |
getSign()
The sign which miner signed: blockid + nonce + timestamp
bytes sign = 6; |
int |
getTargetBits()
int32 targetBits = 19; |
long |
getTimestamp()
Timestamp of the block
int64 timestamp = 10; |
XchainOuterClass.Transaction |
getTransactions(int index)
Transactions of the block, only txid stored on kv, the detail information
stored in another table
repeated .pb.Transaction transactions = 11; |
int |
getTransactionsCount()
Transactions of the block, only txid stored on kv, the detail information
stored in another table
repeated .pb.Transaction transactions = 11; |
List<XchainOuterClass.Transaction> |
getTransactionsList()
Transactions of the block, only txid stored on kv, the detail information
stored in another table
repeated .pb.Transaction transactions = 11; |
XchainOuterClass.TransactionOrBuilder |
getTransactionsOrBuilder(int index)
Transactions of the block, only txid stored on kv, the detail information
stored in another table
repeated .pb.Transaction transactions = 11; |
List<? extends XchainOuterClass.TransactionOrBuilder> |
getTransactionsOrBuilderList()
Transactions of the block, only txid stored on kv, the detail information
stored in another table
repeated .pb.Transaction transactions = 11; |
int |
getTxCount()
The transaction count of the block
int32 tx_count = 12; |
int |
getVersion()
block version
int32 version = 1; |
boolean |
hasJustify()
Justify used in chained-bft
.pb.QuorumCert Justify = 20; |
int getVersion()
block version
int32 version = 1;int getNonce()
Random number used to avoid replay attacks
int32 nonce = 2;com.google.protobuf.ByteString getBlockid()
blockid generate the hash sign of the block used by sha256
bytes blockid = 3;com.google.protobuf.ByteString getPreHash()
pre_hash is the parent blockid of the block
bytes pre_hash = 4;com.google.protobuf.ByteString getProposer()
The miner id
bytes proposer = 5;com.google.protobuf.ByteString getSign()
The sign which miner signed: blockid + nonce + timestamp
bytes sign = 6;com.google.protobuf.ByteString getPubkey()
The pk of the miner
bytes pubkey = 7;com.google.protobuf.ByteString getMerkleRoot()
The Merkle Tree root
bytes merkle_root = 8;long getHeight()
The height of the blockchain
int64 height = 9;long getTimestamp()
Timestamp of the block
int64 timestamp = 10;List<XchainOuterClass.Transaction> getTransactionsList()
Transactions of the block, only txid stored on kv, the detail information stored in another table
repeated .pb.Transaction transactions = 11;XchainOuterClass.Transaction getTransactions(int index)
Transactions of the block, only txid stored on kv, the detail information stored in another table
repeated .pb.Transaction transactions = 11;int getTransactionsCount()
Transactions of the block, only txid stored on kv, the detail information stored in another table
repeated .pb.Transaction transactions = 11;List<? extends XchainOuterClass.TransactionOrBuilder> getTransactionsOrBuilderList()
Transactions of the block, only txid stored on kv, the detail information stored in another table
repeated .pb.Transaction transactions = 11;XchainOuterClass.TransactionOrBuilder getTransactionsOrBuilder(int index)
Transactions of the block, only txid stored on kv, the detail information stored in another table
repeated .pb.Transaction transactions = 11;int getTxCount()
The transaction count of the block
int32 tx_count = 12;List<com.google.protobuf.ByteString> getMerkleTreeList()
所有交易hash的merkle tree
repeated bytes merkle_tree = 13;int getMerkleTreeCount()
所有交易hash的merkle tree
repeated bytes merkle_tree = 13;com.google.protobuf.ByteString getMerkleTree(int index)
所有交易hash的merkle tree
repeated bytes merkle_tree = 13;index - The index of the element to return.long getCurTerm()
int64 curTerm = 16;long getCurBlockNum()
int64 curBlockNum = 17;int getFailedTxsCount()
txid -> failed reason
map<string, string> failed_txs = 18;boolean containsFailedTxs(String key)
txid -> failed reason
map<string, string> failed_txs = 18;@Deprecated Map<String,String> getFailedTxs()
getFailedTxsMap() instead.Map<String,String> getFailedTxsMap()
txid -> failed reason
map<string, string> failed_txs = 18;String getFailedTxsOrDefault(String key, String defaultValue)
txid -> failed reason
map<string, string> failed_txs = 18;String getFailedTxsOrThrow(String key)
txid -> failed reason
map<string, string> failed_txs = 18;int getTargetBits()
int32 targetBits = 19;boolean hasJustify()
Justify used in chained-bft
.pb.QuorumCert Justify = 20;Chainedbft.QuorumCert getJustify()
Justify used in chained-bft
.pb.QuorumCert Justify = 20;Chainedbft.QuorumCertOrBuilder getJustifyOrBuilder()
Justify used in chained-bft
.pb.QuorumCert Justify = 20;boolean getInTrunk()
下面的属性会动态变化 If the block is on the trunk
bool in_trunk = 14;com.google.protobuf.ByteString getNextHash()
Next next block which on trunk
bytes next_hash = 15;Copyright © 2022. All rights reserved.