public static final class XchainOuterClass.InternalBlock extends com.google.protobuf.GeneratedMessageV3 implements XchainOuterClass.InternalBlockOrBuilder
The internal block structProtobuf type
pb.InternalBlock| 限定符和类型 | 类和说明 |
|---|---|
static class |
XchainOuterClass.InternalBlock.Builder
The internal block struct
Protobuf type
pb.InternalBlock |
com.google.protobuf.GeneratedMessageV3.BuilderParent, com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage,BuilderType extends com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageType,BuilderType>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage>, com.google.protobuf.GeneratedMessageV3.ExtendableMessageOrBuilder<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage>, com.google.protobuf.GeneratedMessageV3.FieldAccessorTable, com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter| 限定符和类型 | 字段和说明 |
|---|---|
static int |
BLOCKID_FIELD_NUMBER |
static int |
CURBLOCKNUM_FIELD_NUMBER |
static int |
CURTERM_FIELD_NUMBER |
static int |
FAILED_TXS_FIELD_NUMBER |
static int |
HEIGHT_FIELD_NUMBER |
static int |
IN_TRUNK_FIELD_NUMBER |
static int |
JUSTIFY_FIELD_NUMBER |
static int |
MERKLE_ROOT_FIELD_NUMBER |
static int |
MERKLE_TREE_FIELD_NUMBER |
static int |
NEXT_HASH_FIELD_NUMBER |
static int |
NONCE_FIELD_NUMBER |
static int |
PRE_HASH_FIELD_NUMBER |
static int |
PROPOSER_FIELD_NUMBER |
static int |
PUBKEY_FIELD_NUMBER |
static int |
SIGN_FIELD_NUMBER |
static int |
TARGETBITS_FIELD_NUMBER |
static int |
TIMESTAMP_FIELD_NUMBER |
static int |
TRANSACTIONS_FIELD_NUMBER |
static int |
TX_COUNT_FIELD_NUMBER |
static int |
VERSION_FIELD_NUMBER |
| 限定符和类型 | 方法和说明 |
|---|---|
boolean |
containsFailedTxs(String key)
txid -> failed reason
map<string, string> failed_txs = 18; |
boolean |
equals(Object obj) |
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; |
static XchainOuterClass.InternalBlock |
getDefaultInstance() |
XchainOuterClass.InternalBlock |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
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.Parser<XchainOuterClass.InternalBlock> |
getParserForType() |
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; |
int |
getSerializedSize() |
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; |
com.google.protobuf.UnknownFieldSet |
getUnknownFields() |
int |
getVersion()
block version
int32 version = 1; |
int |
hashCode() |
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) |
boolean |
isInitialized() |
static XchainOuterClass.InternalBlock.Builder |
newBuilder() |
static XchainOuterClass.InternalBlock.Builder |
newBuilder(XchainOuterClass.InternalBlock prototype) |
XchainOuterClass.InternalBlock.Builder |
newBuilderForType() |
protected XchainOuterClass.InternalBlock.Builder |
newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) |
protected Object |
newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused) |
static XchainOuterClass.InternalBlock |
parseDelimitedFrom(InputStream input) |
static XchainOuterClass.InternalBlock |
parseDelimitedFrom(InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static XchainOuterClass.InternalBlock |
parseFrom(byte[] data) |
static XchainOuterClass.InternalBlock |
parseFrom(byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static XchainOuterClass.InternalBlock |
parseFrom(ByteBuffer data) |
static XchainOuterClass.InternalBlock |
parseFrom(ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static XchainOuterClass.InternalBlock |
parseFrom(com.google.protobuf.ByteString data) |
static XchainOuterClass.InternalBlock |
parseFrom(com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static XchainOuterClass.InternalBlock |
parseFrom(com.google.protobuf.CodedInputStream input) |
static XchainOuterClass.InternalBlock |
parseFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static XchainOuterClass.InternalBlock |
parseFrom(InputStream input) |
static XchainOuterClass.InternalBlock |
parseFrom(InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static com.google.protobuf.Parser<XchainOuterClass.InternalBlock> |
parser() |
XchainOuterClass.InternalBlock.Builder |
toBuilder() |
void |
writeTo(com.google.protobuf.CodedOutputStream output) |
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, hasField, hasOneof, makeExtensionsImmutable, mergeFromAndMakeImmutableInternal, mutableCopy, mutableCopy, mutableCopy, mutableCopy, mutableCopy, newBooleanList, newBuilderForType, newDoubleList, newFloatList, newIntList, newLongList, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTagfindInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toStringaddAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeTopublic static final int VERSION_FIELD_NUMBER
public static final int NONCE_FIELD_NUMBER
public static final int BLOCKID_FIELD_NUMBER
public static final int PRE_HASH_FIELD_NUMBER
public static final int PROPOSER_FIELD_NUMBER
public static final int SIGN_FIELD_NUMBER
public static final int PUBKEY_FIELD_NUMBER
public static final int MERKLE_ROOT_FIELD_NUMBER
public static final int HEIGHT_FIELD_NUMBER
public static final int TIMESTAMP_FIELD_NUMBER
public static final int TRANSACTIONS_FIELD_NUMBER
public static final int TX_COUNT_FIELD_NUMBER
public static final int MERKLE_TREE_FIELD_NUMBER
public static final int CURTERM_FIELD_NUMBER
public static final int CURBLOCKNUM_FIELD_NUMBER
public static final int FAILED_TXS_FIELD_NUMBER
public static final int TARGETBITS_FIELD_NUMBER
public static final int JUSTIFY_FIELD_NUMBER
public static final int IN_TRUNK_FIELD_NUMBER
public static final int NEXT_HASH_FIELD_NUMBER
protected Object newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
newInstance 在类中 com.google.protobuf.GeneratedMessageV3public final com.google.protobuf.UnknownFieldSet getUnknownFields()
getUnknownFields 在接口中 com.google.protobuf.MessageOrBuildergetUnknownFields 在类中 com.google.protobuf.GeneratedMessageV3public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.MapField internalGetMapField(int number)
internalGetMapField 在类中 com.google.protobuf.GeneratedMessageV3protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable 在类中 com.google.protobuf.GeneratedMessageV3public int getVersion()
block version
int32 version = 1;getVersion 在接口中 XchainOuterClass.InternalBlockOrBuilderpublic int getNonce()
Random number used to avoid replay attacks
int32 nonce = 2;getNonce 在接口中 XchainOuterClass.InternalBlockOrBuilderpublic com.google.protobuf.ByteString getBlockid()
blockid generate the hash sign of the block used by sha256
bytes blockid = 3;getBlockid 在接口中 XchainOuterClass.InternalBlockOrBuilderpublic com.google.protobuf.ByteString getPreHash()
pre_hash is the parent blockid of the block
bytes pre_hash = 4;getPreHash 在接口中 XchainOuterClass.InternalBlockOrBuilderpublic com.google.protobuf.ByteString getProposer()
The miner id
bytes proposer = 5;getProposer 在接口中 XchainOuterClass.InternalBlockOrBuilderpublic com.google.protobuf.ByteString getSign()
The sign which miner signed: blockid + nonce + timestamp
bytes sign = 6;getSign 在接口中 XchainOuterClass.InternalBlockOrBuilderpublic com.google.protobuf.ByteString getPubkey()
The pk of the miner
bytes pubkey = 7;getPubkey 在接口中 XchainOuterClass.InternalBlockOrBuilderpublic com.google.protobuf.ByteString getMerkleRoot()
The Merkle Tree root
bytes merkle_root = 8;getMerkleRoot 在接口中 XchainOuterClass.InternalBlockOrBuilderpublic long getHeight()
The height of the blockchain
int64 height = 9;getHeight 在接口中 XchainOuterClass.InternalBlockOrBuilderpublic long getTimestamp()
Timestamp of the block
int64 timestamp = 10;getTimestamp 在接口中 XchainOuterClass.InternalBlockOrBuilderpublic 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 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 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.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 int getTxCount()
The transaction count of the block
int32 tx_count = 12;getTxCount 在接口中 XchainOuterClass.InternalBlockOrBuilderpublic 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 long getCurTerm()
int64 curTerm = 16;getCurTerm 在接口中 XchainOuterClass.InternalBlockOrBuilderpublic long getCurBlockNum()
int64 curBlockNum = 17;getCurBlockNum 在接口中 XchainOuterClass.InternalBlockOrBuilderpublic 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 int getTargetBits()
int32 targetBits = 19;getTargetBits 在接口中 XchainOuterClass.InternalBlockOrBuilderpublic 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 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 com.google.protobuf.ByteString getNextHash()
Next next block which on trunk
bytes next_hash = 15;getNextHash 在接口中 XchainOuterClass.InternalBlockOrBuilderpublic final boolean isInitialized()
isInitialized 在接口中 com.google.protobuf.MessageLiteOrBuilderisInitialized 在类中 com.google.protobuf.GeneratedMessageV3public void writeTo(com.google.protobuf.CodedOutputStream output)
throws IOException
writeTo 在接口中 com.google.protobuf.MessageLitewriteTo 在类中 com.google.protobuf.GeneratedMessageV3IOExceptionpublic int getSerializedSize()
getSerializedSize 在接口中 com.google.protobuf.MessageLitegetSerializedSize 在类中 com.google.protobuf.GeneratedMessageV3public boolean equals(Object obj)
equals 在接口中 com.google.protobuf.Messageequals 在类中 com.google.protobuf.AbstractMessagepublic int hashCode()
hashCode 在接口中 com.google.protobuf.MessagehashCode 在类中 com.google.protobuf.AbstractMessagepublic static XchainOuterClass.InternalBlock parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static XchainOuterClass.InternalBlock parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static XchainOuterClass.InternalBlock parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static XchainOuterClass.InternalBlock parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static XchainOuterClass.InternalBlock parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static XchainOuterClass.InternalBlock parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static XchainOuterClass.InternalBlock parseFrom(InputStream input) throws IOException
IOExceptionpublic static XchainOuterClass.InternalBlock parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic static XchainOuterClass.InternalBlock parseDelimitedFrom(InputStream input) throws IOException
IOExceptionpublic static XchainOuterClass.InternalBlock parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic static XchainOuterClass.InternalBlock parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
IOExceptionpublic static XchainOuterClass.InternalBlock parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic XchainOuterClass.InternalBlock.Builder newBuilderForType()
newBuilderForType 在接口中 com.google.protobuf.MessagenewBuilderForType 在接口中 com.google.protobuf.MessageLitepublic static XchainOuterClass.InternalBlock.Builder newBuilder()
public static XchainOuterClass.InternalBlock.Builder newBuilder(XchainOuterClass.InternalBlock prototype)
public XchainOuterClass.InternalBlock.Builder toBuilder()
toBuilder 在接口中 com.google.protobuf.MessagetoBuilder 在接口中 com.google.protobuf.MessageLiteprotected XchainOuterClass.InternalBlock.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
newBuilderForType 在类中 com.google.protobuf.GeneratedMessageV3public static XchainOuterClass.InternalBlock getDefaultInstance()
public static com.google.protobuf.Parser<XchainOuterClass.InternalBlock> parser()
public com.google.protobuf.Parser<XchainOuterClass.InternalBlock> getParserForType()
getParserForType 在接口中 com.google.protobuf.MessagegetParserForType 在接口中 com.google.protobuf.MessageLitegetParserForType 在类中 com.google.protobuf.GeneratedMessageV3public XchainOuterClass.InternalBlock getDefaultInstanceForType()
getDefaultInstanceForType 在接口中 com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType 在接口中 com.google.protobuf.MessageOrBuilderCopyright © 2022. All rights reserved.