public static interface XchainOuterClass.InternalBlockOrBuilder
extends com.google.protobuf.MessageLiteOrBuilder
| 限定符和类型 | 方法和说明 |
|---|---|
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
optional bytes blockid = 3; |
long |
getCurBlockNum()
optional int64 curBlockNum = 17; |
long |
getCurTerm()
optional 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
optional int64 height = 9; |
boolean |
getInTrunk()
下面的属性会动态变化
If the block is on the trunk
optional bool in_trunk = 14; |
Chainedbft.QuorumCert |
getJustify()
Justify used in chained-bft
optional .pb.QuorumCert Justify = 20; |
com.google.protobuf.ByteString |
getMerkleRoot()
The Merkle Tree root
optional 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
optional bytes next_hash = 15; |
int |
getNonce()
Random number used to avoid replay attacks
optional int32 nonce = 2; |
com.google.protobuf.ByteString |
getPreHash()
pre_hash is the parent blockid of the block
optional bytes pre_hash = 4; |
com.google.protobuf.ByteString |
getProposer()
The miner id
optional bytes proposer = 5; |
com.google.protobuf.ByteString |
getPubkey()
The pk of the miner
optional bytes pubkey = 7; |
com.google.protobuf.ByteString |
getSign()
The sign which miner signed: blockid + nonce + timestamp
optional bytes sign = 6; |
int |
getTargetBits()
optional int32 targetBits = 19; |
long |
getTimestamp()
Timestamp of the block
optional 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; |
int |
getTxCount()
The transaction count of the block
optional int32 tx_count = 12; |
int |
getVersion()
block version
optional int32 version = 1; |
boolean |
hasJustify()
Justify used in chained-bft
optional .pb.QuorumCert Justify = 20; |
int getVersion()
block version
optional int32 version = 1;int getNonce()
Random number used to avoid replay attacks
optional int32 nonce = 2;com.google.protobuf.ByteString getBlockid()
blockid generate the hash sign of the block used by sha256
optional bytes blockid = 3;com.google.protobuf.ByteString getPreHash()
pre_hash is the parent blockid of the block
optional bytes pre_hash = 4;com.google.protobuf.ByteString getProposer()
The miner id
optional bytes proposer = 5;com.google.protobuf.ByteString getSign()
The sign which miner signed: blockid + nonce + timestamp
optional bytes sign = 6;com.google.protobuf.ByteString getPubkey()
The pk of the miner
optional bytes pubkey = 7;com.google.protobuf.ByteString getMerkleRoot()
The Merkle Tree root
optional bytes merkle_root = 8;long getHeight()
The height of the blockchain
optional int64 height = 9;long getTimestamp()
Timestamp of the block
optional 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;int getTxCount()
The transaction count of the block
optional 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;long getCurTerm()
optional int64 curTerm = 16;long getCurBlockNum()
optional 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()
optional int32 targetBits = 19;boolean hasJustify()
Justify used in chained-bft
optional .pb.QuorumCert Justify = 20;Chainedbft.QuorumCert getJustify()
Justify used in chained-bft
optional .pb.QuorumCert Justify = 20;boolean getInTrunk()
下面的属性会动态变化 If the block is on the trunk
optional bool in_trunk = 14;com.google.protobuf.ByteString getNextHash()
Next next block which on trunk
optional bytes next_hash = 15;Copyright © 2020. All rights reserved.