public static final class XchainOuterClass.InternalBlock.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<XchainOuterClass.InternalBlock.Builder> implements XchainOuterClass.InternalBlockOrBuilder
The internal block structProtobuf type
pb.InternalBlock| 限定符和类型 | 方法和说明 |
|---|---|
XchainOuterClass.InternalBlock.Builder |
addAllMerkleTree(Iterable<? extends com.google.protobuf.ByteString> values)
所有交易hash的merkle tree
repeated bytes merkle_tree = 13; |
XchainOuterClass.InternalBlock.Builder |
addAllTransactions(Iterable<? extends XchainOuterClass.Transaction> values)
Transactions of the block, only txid stored on kv, the detail information
stored in another table
repeated .pb.Transaction transactions = 11; |
XchainOuterClass.InternalBlock.Builder |
addMerkleTree(com.google.protobuf.ByteString value)
所有交易hash的merkle tree
repeated bytes merkle_tree = 13; |
XchainOuterClass.InternalBlock.Builder |
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
XchainOuterClass.InternalBlock.Builder |
addTransactions(int index,
XchainOuterClass.Transaction.Builder builderForValue)
Transactions of the block, only txid stored on kv, the detail information
stored in another table
repeated .pb.Transaction transactions = 11; |
XchainOuterClass.InternalBlock.Builder |
addTransactions(int index,
XchainOuterClass.Transaction value)
Transactions of the block, only txid stored on kv, the detail information
stored in another table
repeated .pb.Transaction transactions = 11; |
XchainOuterClass.InternalBlock.Builder |
addTransactions(XchainOuterClass.Transaction.Builder builderForValue)
Transactions of the block, only txid stored on kv, the detail information
stored in another table
repeated .pb.Transaction transactions = 11; |
XchainOuterClass.InternalBlock.Builder |
addTransactions(XchainOuterClass.Transaction value)
Transactions of the block, only txid stored on kv, the detail information
stored in another table
repeated .pb.Transaction transactions = 11; |
XchainOuterClass.Transaction.Builder |
addTransactionsBuilder()
Transactions of the block, only txid stored on kv, the detail information
stored in another table
repeated .pb.Transaction transactions = 11; |
XchainOuterClass.Transaction.Builder |
addTransactionsBuilder(int index)
Transactions of the block, only txid stored on kv, the detail information
stored in another table
repeated .pb.Transaction transactions = 11; |
XchainOuterClass.InternalBlock |
build() |
XchainOuterClass.InternalBlock |
buildPartial() |
XchainOuterClass.InternalBlock.Builder |
clear() |
XchainOuterClass.InternalBlock.Builder |
clearBlockid()
blockid generate the hash sign of the block used by sha256
bytes blockid = 3; |
XchainOuterClass.InternalBlock.Builder |
clearCurBlockNum()
int64 curBlockNum = 17; |
XchainOuterClass.InternalBlock.Builder |
clearCurTerm()
int64 curTerm = 16; |
XchainOuterClass.InternalBlock.Builder |
clearFailedTxs() |
XchainOuterClass.InternalBlock.Builder |
clearField(com.google.protobuf.Descriptors.FieldDescriptor field) |
XchainOuterClass.InternalBlock.Builder |
clearHeight()
The height of the blockchain
int64 height = 9; |
XchainOuterClass.InternalBlock.Builder |
clearInTrunk()
下面的属性会动态变化
If the block is on the trunk
bool in_trunk = 14; |
XchainOuterClass.InternalBlock.Builder |
clearJustify()
Justify used in chained-bft
.pb.QuorumCert Justify = 20; |
XchainOuterClass.InternalBlock.Builder |
clearMerkleRoot()
The Merkle Tree root
bytes merkle_root = 8; |
XchainOuterClass.InternalBlock.Builder |
clearMerkleTree()
所有交易hash的merkle tree
repeated bytes merkle_tree = 13; |
XchainOuterClass.InternalBlock.Builder |
clearNextHash()
Next next block which on trunk
bytes next_hash = 15; |
XchainOuterClass.InternalBlock.Builder |
clearNonce()
Random number used to avoid replay attacks
int32 nonce = 2; |
XchainOuterClass.InternalBlock.Builder |
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) |
XchainOuterClass.InternalBlock.Builder |
clearPreHash()
pre_hash is the parent blockid of the block
bytes pre_hash = 4; |
XchainOuterClass.InternalBlock.Builder |
clearProposer()
The miner id
bytes proposer = 5; |
XchainOuterClass.InternalBlock.Builder |
clearPubkey()
The pk of the miner
bytes pubkey = 7; |
XchainOuterClass.InternalBlock.Builder |
clearSign()
The sign which miner signed: blockid + nonce + timestamp
bytes sign = 6; |
XchainOuterClass.InternalBlock.Builder |
clearTargetBits()
int32 targetBits = 19; |
XchainOuterClass.InternalBlock.Builder |
clearTimestamp()
Timestamp of the block
int64 timestamp = 10; |
XchainOuterClass.InternalBlock.Builder |
clearTransactions()
Transactions of the block, only txid stored on kv, the detail information
stored in another table
repeated .pb.Transaction transactions = 11; |
XchainOuterClass.InternalBlock.Builder |
clearTxCount()
The transaction count of the block
int32 tx_count = 12; |
XchainOuterClass.InternalBlock.Builder |
clearVersion()
block version
int32 version = 1; |
XchainOuterClass.InternalBlock.Builder |
clone() |
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; |
XchainOuterClass.InternalBlock |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
com.google.protobuf.Descriptors.Descriptor |
getDescriptorForType() |
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.QuorumCert.Builder |
getJustifyBuilder()
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; |
Map<String,String> |
getMutableFailedTxs()
已过时。
|
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; |
XchainOuterClass.Transaction.Builder |
getTransactionsBuilder(int index)
Transactions of the block, only txid stored on kv, the detail information
stored in another table
repeated .pb.Transaction transactions = 11; |
List<XchainOuterClass.Transaction.Builder> |
getTransactionsBuilderList()
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; |
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
protected com.google.protobuf.MapField |
internalGetMapField(int number) |
protected com.google.protobuf.MapField |
internalGetMutableMapField(int number) |
boolean |
isInitialized() |
XchainOuterClass.InternalBlock.Builder |
mergeFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
XchainOuterClass.InternalBlock.Builder |
mergeFrom(com.google.protobuf.Message other) |
XchainOuterClass.InternalBlock.Builder |
mergeFrom(XchainOuterClass.InternalBlock other) |
XchainOuterClass.InternalBlock.Builder |
mergeJustify(Chainedbft.QuorumCert value)
Justify used in chained-bft
.pb.QuorumCert Justify = 20; |
XchainOuterClass.InternalBlock.Builder |
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
XchainOuterClass.InternalBlock.Builder |
putAllFailedTxs(Map<String,String> values)
txid -> failed reason
map<string, string> failed_txs = 18; |
XchainOuterClass.InternalBlock.Builder |
putFailedTxs(String key,
String value)
txid -> failed reason
map<string, string> failed_txs = 18; |
XchainOuterClass.InternalBlock.Builder |
removeFailedTxs(String key)
txid -> failed reason
map<string, string> failed_txs = 18; |
XchainOuterClass.InternalBlock.Builder |
removeTransactions(int index)
Transactions of the block, only txid stored on kv, the detail information
stored in another table
repeated .pb.Transaction transactions = 11; |
XchainOuterClass.InternalBlock.Builder |
setBlockid(com.google.protobuf.ByteString value)
blockid generate the hash sign of the block used by sha256
bytes blockid = 3; |
XchainOuterClass.InternalBlock.Builder |
setCurBlockNum(long value)
int64 curBlockNum = 17; |
XchainOuterClass.InternalBlock.Builder |
setCurTerm(long value)
int64 curTerm = 16; |
XchainOuterClass.InternalBlock.Builder |
setField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
XchainOuterClass.InternalBlock.Builder |
setHeight(long value)
The height of the blockchain
int64 height = 9; |
XchainOuterClass.InternalBlock.Builder |
setInTrunk(boolean value)
下面的属性会动态变化
If the block is on the trunk
bool in_trunk = 14; |
XchainOuterClass.InternalBlock.Builder |
setJustify(Chainedbft.QuorumCert.Builder builderForValue)
Justify used in chained-bft
.pb.QuorumCert Justify = 20; |
XchainOuterClass.InternalBlock.Builder |
setJustify(Chainedbft.QuorumCert value)
Justify used in chained-bft
.pb.QuorumCert Justify = 20; |
XchainOuterClass.InternalBlock.Builder |
setMerkleRoot(com.google.protobuf.ByteString value)
The Merkle Tree root
bytes merkle_root = 8; |
XchainOuterClass.InternalBlock.Builder |
setMerkleTree(int index,
com.google.protobuf.ByteString value)
所有交易hash的merkle tree
repeated bytes merkle_tree = 13; |
XchainOuterClass.InternalBlock.Builder |
setNextHash(com.google.protobuf.ByteString value)
Next next block which on trunk
bytes next_hash = 15; |
XchainOuterClass.InternalBlock.Builder |
setNonce(int value)
Random number used to avoid replay attacks
int32 nonce = 2; |
XchainOuterClass.InternalBlock.Builder |
setPreHash(com.google.protobuf.ByteString value)
pre_hash is the parent blockid of the block
bytes pre_hash = 4; |
XchainOuterClass.InternalBlock.Builder |
setProposer(com.google.protobuf.ByteString value)
The miner id
bytes proposer = 5; |
XchainOuterClass.InternalBlock.Builder |
setPubkey(com.google.protobuf.ByteString value)
The pk of the miner
bytes pubkey = 7; |
XchainOuterClass.InternalBlock.Builder |
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
int index,
Object value) |
XchainOuterClass.InternalBlock.Builder |
setSign(com.google.protobuf.ByteString value)
The sign which miner signed: blockid + nonce + timestamp
bytes sign = 6; |
XchainOuterClass.InternalBlock.Builder |
setTargetBits(int value)
int32 targetBits = 19; |
XchainOuterClass.InternalBlock.Builder |
setTimestamp(long value)
Timestamp of the block
int64 timestamp = 10; |
XchainOuterClass.InternalBlock.Builder |
setTransactions(int index,
XchainOuterClass.Transaction.Builder builderForValue)
Transactions of the block, only txid stored on kv, the detail information
stored in another table
repeated .pb.Transaction transactions = 11; |
XchainOuterClass.InternalBlock.Builder |
setTransactions(int index,
XchainOuterClass.Transaction value)
Transactions of the block, only txid stored on kv, the detail information
stored in another table
repeated .pb.Transaction transactions = 11; |
XchainOuterClass.InternalBlock.Builder |
setTxCount(int value)
The transaction count of the block
int32 tx_count = 12; |
XchainOuterClass.InternalBlock.Builder |
setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
XchainOuterClass.InternalBlock.Builder |
setVersion(int value)
block version
int32 version = 1; |
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, isClean, markClean, newBuilderForField, onBuilt, onChanged, setUnknownFieldsProto3findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringaddAll, addAll, mergeFrom, newUninitializedMessageExceptionpublic static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.MapField internalGetMapField(int number)
internalGetMapField 在类中 com.google.protobuf.GeneratedMessageV3.Builder<XchainOuterClass.InternalBlock.Builder>protected com.google.protobuf.MapField internalGetMutableMapField(int number)
internalGetMutableMapField 在类中 com.google.protobuf.GeneratedMessageV3.Builder<XchainOuterClass.InternalBlock.Builder>protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable 在类中 com.google.protobuf.GeneratedMessageV3.Builder<XchainOuterClass.InternalBlock.Builder>public XchainOuterClass.InternalBlock.Builder clear()
clear 在接口中 com.google.protobuf.Message.Builderclear 在接口中 com.google.protobuf.MessageLite.Builderclear 在类中 com.google.protobuf.GeneratedMessageV3.Builder<XchainOuterClass.InternalBlock.Builder>public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
getDescriptorForType 在接口中 com.google.protobuf.Message.BuildergetDescriptorForType 在接口中 com.google.protobuf.MessageOrBuildergetDescriptorForType 在类中 com.google.protobuf.GeneratedMessageV3.Builder<XchainOuterClass.InternalBlock.Builder>public XchainOuterClass.InternalBlock getDefaultInstanceForType()
getDefaultInstanceForType 在接口中 com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType 在接口中 com.google.protobuf.MessageOrBuilderpublic XchainOuterClass.InternalBlock build()
build 在接口中 com.google.protobuf.Message.Builderbuild 在接口中 com.google.protobuf.MessageLite.Builderpublic XchainOuterClass.InternalBlock buildPartial()
buildPartial 在接口中 com.google.protobuf.Message.BuilderbuildPartial 在接口中 com.google.protobuf.MessageLite.Builderpublic XchainOuterClass.InternalBlock.Builder clone()
clone 在接口中 com.google.protobuf.Message.Builderclone 在接口中 com.google.protobuf.MessageLite.Builderclone 在类中 com.google.protobuf.GeneratedMessageV3.Builder<XchainOuterClass.InternalBlock.Builder>public XchainOuterClass.InternalBlock.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
setField 在接口中 com.google.protobuf.Message.BuildersetField 在类中 com.google.protobuf.GeneratedMessageV3.Builder<XchainOuterClass.InternalBlock.Builder>public XchainOuterClass.InternalBlock.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
clearField 在接口中 com.google.protobuf.Message.BuilderclearField 在类中 com.google.protobuf.GeneratedMessageV3.Builder<XchainOuterClass.InternalBlock.Builder>public XchainOuterClass.InternalBlock.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
clearOneof 在接口中 com.google.protobuf.Message.BuilderclearOneof 在类中 com.google.protobuf.GeneratedMessageV3.Builder<XchainOuterClass.InternalBlock.Builder>public XchainOuterClass.InternalBlock.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
setRepeatedField 在接口中 com.google.protobuf.Message.BuildersetRepeatedField 在类中 com.google.protobuf.GeneratedMessageV3.Builder<XchainOuterClass.InternalBlock.Builder>public XchainOuterClass.InternalBlock.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
addRepeatedField 在接口中 com.google.protobuf.Message.BuilderaddRepeatedField 在类中 com.google.protobuf.GeneratedMessageV3.Builder<XchainOuterClass.InternalBlock.Builder>public XchainOuterClass.InternalBlock.Builder mergeFrom(com.google.protobuf.Message other)
mergeFrom 在接口中 com.google.protobuf.Message.BuildermergeFrom 在类中 com.google.protobuf.AbstractMessage.Builder<XchainOuterClass.InternalBlock.Builder>public XchainOuterClass.InternalBlock.Builder mergeFrom(XchainOuterClass.InternalBlock other)
public final boolean isInitialized()
isInitialized 在接口中 com.google.protobuf.MessageLiteOrBuilderisInitialized 在类中 com.google.protobuf.GeneratedMessageV3.Builder<XchainOuterClass.InternalBlock.Builder>public XchainOuterClass.InternalBlock.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
mergeFrom 在接口中 com.google.protobuf.Message.BuildermergeFrom 在接口中 com.google.protobuf.MessageLite.BuildermergeFrom 在类中 com.google.protobuf.AbstractMessage.Builder<XchainOuterClass.InternalBlock.Builder>IOExceptionpublic int getVersion()
block version
int32 version = 1;getVersion 在接口中 XchainOuterClass.InternalBlockOrBuilderpublic XchainOuterClass.InternalBlock.Builder setVersion(int value)
block version
int32 version = 1;value - The version to set.public XchainOuterClass.InternalBlock.Builder clearVersion()
block version
int32 version = 1;public int getNonce()
Random number used to avoid replay attacks
int32 nonce = 2;getNonce 在接口中 XchainOuterClass.InternalBlockOrBuilderpublic XchainOuterClass.InternalBlock.Builder setNonce(int value)
Random number used to avoid replay attacks
int32 nonce = 2;value - The nonce to set.public XchainOuterClass.InternalBlock.Builder clearNonce()
Random number used to avoid replay attacks
int32 nonce = 2;public com.google.protobuf.ByteString getBlockid()
blockid generate the hash sign of the block used by sha256
bytes blockid = 3;getBlockid 在接口中 XchainOuterClass.InternalBlockOrBuilderpublic XchainOuterClass.InternalBlock.Builder setBlockid(com.google.protobuf.ByteString value)
blockid generate the hash sign of the block used by sha256
bytes blockid = 3;value - The blockid to set.public XchainOuterClass.InternalBlock.Builder clearBlockid()
blockid generate the hash sign of the block used by sha256
bytes blockid = 3;public com.google.protobuf.ByteString getPreHash()
pre_hash is the parent blockid of the block
bytes pre_hash = 4;getPreHash 在接口中 XchainOuterClass.InternalBlockOrBuilderpublic XchainOuterClass.InternalBlock.Builder setPreHash(com.google.protobuf.ByteString value)
pre_hash is the parent blockid of the block
bytes pre_hash = 4;value - The preHash to set.public XchainOuterClass.InternalBlock.Builder clearPreHash()
pre_hash is the parent blockid of the block
bytes pre_hash = 4;public com.google.protobuf.ByteString getProposer()
The miner id
bytes proposer = 5;getProposer 在接口中 XchainOuterClass.InternalBlockOrBuilderpublic XchainOuterClass.InternalBlock.Builder setProposer(com.google.protobuf.ByteString value)
The miner id
bytes proposer = 5;value - The proposer to set.public XchainOuterClass.InternalBlock.Builder clearProposer()
The miner id
bytes proposer = 5;public com.google.protobuf.ByteString getSign()
The sign which miner signed: blockid + nonce + timestamp
bytes sign = 6;getSign 在接口中 XchainOuterClass.InternalBlockOrBuilderpublic XchainOuterClass.InternalBlock.Builder setSign(com.google.protobuf.ByteString value)
The sign which miner signed: blockid + nonce + timestamp
bytes sign = 6;value - The sign to set.public XchainOuterClass.InternalBlock.Builder clearSign()
The sign which miner signed: blockid + nonce + timestamp
bytes sign = 6;public com.google.protobuf.ByteString getPubkey()
The pk of the miner
bytes pubkey = 7;getPubkey 在接口中 XchainOuterClass.InternalBlockOrBuilderpublic XchainOuterClass.InternalBlock.Builder setPubkey(com.google.protobuf.ByteString value)
The pk of the miner
bytes pubkey = 7;value - The pubkey to set.public XchainOuterClass.InternalBlock.Builder clearPubkey()
The pk of the miner
bytes pubkey = 7;public com.google.protobuf.ByteString getMerkleRoot()
The Merkle Tree root
bytes merkle_root = 8;getMerkleRoot 在接口中 XchainOuterClass.InternalBlockOrBuilderpublic XchainOuterClass.InternalBlock.Builder setMerkleRoot(com.google.protobuf.ByteString value)
The Merkle Tree root
bytes merkle_root = 8;value - The merkleRoot to set.public XchainOuterClass.InternalBlock.Builder clearMerkleRoot()
The Merkle Tree root
bytes merkle_root = 8;public long getHeight()
The height of the blockchain
int64 height = 9;getHeight 在接口中 XchainOuterClass.InternalBlockOrBuilderpublic XchainOuterClass.InternalBlock.Builder setHeight(long value)
The height of the blockchain
int64 height = 9;value - The height to set.public XchainOuterClass.InternalBlock.Builder clearHeight()
The height of the blockchain
int64 height = 9;public long getTimestamp()
Timestamp of the block
int64 timestamp = 10;getTimestamp 在接口中 XchainOuterClass.InternalBlockOrBuilderpublic XchainOuterClass.InternalBlock.Builder setTimestamp(long value)
Timestamp of the block
int64 timestamp = 10;value - The timestamp to set.public XchainOuterClass.InternalBlock.Builder clearTimestamp()
Timestamp of the block
int64 timestamp = 10;public 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;public int getTransactionsCount()
Transactions of the block, only txid stored on kv, the detail information stored in another table
repeated .pb.Transaction transactions = 11;public 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;public XchainOuterClass.InternalBlock.Builder setTransactions(int index, XchainOuterClass.Transaction value)
Transactions of the block, only txid stored on kv, the detail information stored in another table
repeated .pb.Transaction transactions = 11;public XchainOuterClass.InternalBlock.Builder setTransactions(int index, XchainOuterClass.Transaction.Builder builderForValue)
Transactions of the block, only txid stored on kv, the detail information stored in another table
repeated .pb.Transaction transactions = 11;public XchainOuterClass.InternalBlock.Builder addTransactions(XchainOuterClass.Transaction value)
Transactions of the block, only txid stored on kv, the detail information stored in another table
repeated .pb.Transaction transactions = 11;public XchainOuterClass.InternalBlock.Builder addTransactions(int index, XchainOuterClass.Transaction value)
Transactions of the block, only txid stored on kv, the detail information stored in another table
repeated .pb.Transaction transactions = 11;public XchainOuterClass.InternalBlock.Builder addTransactions(XchainOuterClass.Transaction.Builder builderForValue)
Transactions of the block, only txid stored on kv, the detail information stored in another table
repeated .pb.Transaction transactions = 11;public XchainOuterClass.InternalBlock.Builder addTransactions(int index, XchainOuterClass.Transaction.Builder builderForValue)
Transactions of the block, only txid stored on kv, the detail information stored in another table
repeated .pb.Transaction transactions = 11;public XchainOuterClass.InternalBlock.Builder addAllTransactions(Iterable<? extends XchainOuterClass.Transaction> values)
Transactions of the block, only txid stored on kv, the detail information stored in another table
repeated .pb.Transaction transactions = 11;public XchainOuterClass.InternalBlock.Builder clearTransactions()
Transactions of the block, only txid stored on kv, the detail information stored in another table
repeated .pb.Transaction transactions = 11;public XchainOuterClass.InternalBlock.Builder removeTransactions(int index)
Transactions of the block, only txid stored on kv, the detail information stored in another table
repeated .pb.Transaction transactions = 11;public XchainOuterClass.Transaction.Builder getTransactionsBuilder(int index)
Transactions of the block, only txid stored on kv, the detail information stored in another table
repeated .pb.Transaction transactions = 11;public 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;public 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;public XchainOuterClass.Transaction.Builder addTransactionsBuilder()
Transactions of the block, only txid stored on kv, the detail information stored in another table
repeated .pb.Transaction transactions = 11;public XchainOuterClass.Transaction.Builder addTransactionsBuilder(int index)
Transactions of the block, only txid stored on kv, the detail information stored in another table
repeated .pb.Transaction transactions = 11;public List<XchainOuterClass.Transaction.Builder> getTransactionsBuilderList()
Transactions of the block, only txid stored on kv, the detail information stored in another table
repeated .pb.Transaction transactions = 11;public int getTxCount()
The transaction count of the block
int32 tx_count = 12;getTxCount 在接口中 XchainOuterClass.InternalBlockOrBuilderpublic XchainOuterClass.InternalBlock.Builder setTxCount(int value)
The transaction count of the block
int32 tx_count = 12;value - The txCount to set.public XchainOuterClass.InternalBlock.Builder clearTxCount()
The transaction count of the block
int32 tx_count = 12;public List<com.google.protobuf.ByteString> getMerkleTreeList()
所有交易hash的merkle tree
repeated bytes merkle_tree = 13;getMerkleTreeList 在接口中 XchainOuterClass.InternalBlockOrBuilderpublic int getMerkleTreeCount()
所有交易hash的merkle tree
repeated bytes merkle_tree = 13;getMerkleTreeCount 在接口中 XchainOuterClass.InternalBlockOrBuilderpublic com.google.protobuf.ByteString getMerkleTree(int index)
所有交易hash的merkle tree
repeated bytes merkle_tree = 13;getMerkleTree 在接口中 XchainOuterClass.InternalBlockOrBuilderindex - The index of the element to return.public XchainOuterClass.InternalBlock.Builder setMerkleTree(int index, com.google.protobuf.ByteString value)
所有交易hash的merkle tree
repeated bytes merkle_tree = 13;index - The index to set the value at.value - The merkleTree to set.public XchainOuterClass.InternalBlock.Builder addMerkleTree(com.google.protobuf.ByteString value)
所有交易hash的merkle tree
repeated bytes merkle_tree = 13;value - The merkleTree to add.public XchainOuterClass.InternalBlock.Builder addAllMerkleTree(Iterable<? extends com.google.protobuf.ByteString> values)
所有交易hash的merkle tree
repeated bytes merkle_tree = 13;values - The merkleTree to add.public XchainOuterClass.InternalBlock.Builder clearMerkleTree()
所有交易hash的merkle tree
repeated bytes merkle_tree = 13;public long getCurTerm()
int64 curTerm = 16;getCurTerm 在接口中 XchainOuterClass.InternalBlockOrBuilderpublic XchainOuterClass.InternalBlock.Builder setCurTerm(long value)
int64 curTerm = 16;value - The curTerm to set.public XchainOuterClass.InternalBlock.Builder clearCurTerm()
int64 curTerm = 16;public long getCurBlockNum()
int64 curBlockNum = 17;getCurBlockNum 在接口中 XchainOuterClass.InternalBlockOrBuilderpublic XchainOuterClass.InternalBlock.Builder setCurBlockNum(long value)
int64 curBlockNum = 17;value - The curBlockNum to set.public XchainOuterClass.InternalBlock.Builder clearCurBlockNum()
int64 curBlockNum = 17;public int getFailedTxsCount()
XchainOuterClass.InternalBlockOrBuildertxid -> failed reason
map<string, string> failed_txs = 18;public boolean containsFailedTxs(String key)
txid -> failed reason
map<string, string> failed_txs = 18;@Deprecated public Map<String,String> getFailedTxs()
getFailedTxsMap() instead.public Map<String,String> getFailedTxsMap()
txid -> failed reason
map<string, string> failed_txs = 18;public String getFailedTxsOrDefault(String key, String defaultValue)
txid -> failed reason
map<string, string> failed_txs = 18;public String getFailedTxsOrThrow(String key)
txid -> failed reason
map<string, string> failed_txs = 18;public XchainOuterClass.InternalBlock.Builder clearFailedTxs()
public XchainOuterClass.InternalBlock.Builder removeFailedTxs(String key)
txid -> failed reason
map<string, string> failed_txs = 18;@Deprecated public Map<String,String> getMutableFailedTxs()
public XchainOuterClass.InternalBlock.Builder putFailedTxs(String key, String value)
txid -> failed reason
map<string, string> failed_txs = 18;public XchainOuterClass.InternalBlock.Builder putAllFailedTxs(Map<String,String> values)
txid -> failed reason
map<string, string> failed_txs = 18;public int getTargetBits()
int32 targetBits = 19;getTargetBits 在接口中 XchainOuterClass.InternalBlockOrBuilderpublic XchainOuterClass.InternalBlock.Builder setTargetBits(int value)
int32 targetBits = 19;value - The targetBits to set.public XchainOuterClass.InternalBlock.Builder clearTargetBits()
int32 targetBits = 19;public boolean hasJustify()
Justify used in chained-bft
.pb.QuorumCert Justify = 20;hasJustify 在接口中 XchainOuterClass.InternalBlockOrBuilderpublic Chainedbft.QuorumCert getJustify()
Justify used in chained-bft
.pb.QuorumCert Justify = 20;getJustify 在接口中 XchainOuterClass.InternalBlockOrBuilderpublic XchainOuterClass.InternalBlock.Builder setJustify(Chainedbft.QuorumCert value)
Justify used in chained-bft
.pb.QuorumCert Justify = 20;public XchainOuterClass.InternalBlock.Builder setJustify(Chainedbft.QuorumCert.Builder builderForValue)
Justify used in chained-bft
.pb.QuorumCert Justify = 20;public XchainOuterClass.InternalBlock.Builder mergeJustify(Chainedbft.QuorumCert value)
Justify used in chained-bft
.pb.QuorumCert Justify = 20;public XchainOuterClass.InternalBlock.Builder clearJustify()
Justify used in chained-bft
.pb.QuorumCert Justify = 20;public Chainedbft.QuorumCert.Builder getJustifyBuilder()
Justify used in chained-bft
.pb.QuorumCert Justify = 20;public Chainedbft.QuorumCertOrBuilder getJustifyOrBuilder()
Justify used in chained-bft
.pb.QuorumCert Justify = 20;public boolean getInTrunk()
下面的属性会动态变化 If the block is on the trunk
bool in_trunk = 14;getInTrunk 在接口中 XchainOuterClass.InternalBlockOrBuilderpublic XchainOuterClass.InternalBlock.Builder setInTrunk(boolean value)
下面的属性会动态变化 If the block is on the trunk
bool in_trunk = 14;value - The inTrunk to set.public XchainOuterClass.InternalBlock.Builder clearInTrunk()
下面的属性会动态变化 If the block is on the trunk
bool in_trunk = 14;public com.google.protobuf.ByteString getNextHash()
Next next block which on trunk
bytes next_hash = 15;getNextHash 在接口中 XchainOuterClass.InternalBlockOrBuilderpublic XchainOuterClass.InternalBlock.Builder setNextHash(com.google.protobuf.ByteString value)
Next next block which on trunk
bytes next_hash = 15;value - The nextHash to set.public XchainOuterClass.InternalBlock.Builder clearNextHash()
Next next block which on trunk
bytes next_hash = 15;public final XchainOuterClass.InternalBlock.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
setUnknownFields 在接口中 com.google.protobuf.Message.BuildersetUnknownFields 在类中 com.google.protobuf.GeneratedMessageV3.Builder<XchainOuterClass.InternalBlock.Builder>public final XchainOuterClass.InternalBlock.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
mergeUnknownFields 在接口中 com.google.protobuf.Message.BuildermergeUnknownFields 在类中 com.google.protobuf.GeneratedMessageV3.Builder<XchainOuterClass.InternalBlock.Builder>Copyright © 2022. All rights reserved.