public static interface LedgerInfoOuterClass.LedgerInfoOrBuilder
extends com.google.protobuf.MessageOrBuilder
| Modifier and Type | Method and Description |
|---|---|
com.google.protobuf.ByteString |
getConsensusBlockId()
The block id of the last committed block corresponding to this ledger info.
|
com.google.protobuf.ByteString |
getConsensusDataHash()
Hash of consensus-specific data that is opaque to all parts of the system
other than consensus.
|
long |
getEpochNum()
Epoch number corresponds to the set of validators that are active for this
ledger info.
|
long |
getTimestampUsecs()
Timestamp that represents the microseconds since the epoch (unix time) that is
generated by the proposer of the block.
|
com.google.protobuf.ByteString |
getTransactionAccumulatorHash()
Root hash of transaction accumulator at this version
|
long |
getVersion()
Current latest version of the system
|
findInitializationErrors, getAllFields, getDefaultInstanceForType, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneoflong getVersion()
Current latest version of the system
uint64 version = 1;com.google.protobuf.ByteString getTransactionAccumulatorHash()
Root hash of transaction accumulator at this version
bytes transaction_accumulator_hash = 2;com.google.protobuf.ByteString getConsensusDataHash()
Hash of consensus-specific data that is opaque to all parts of the system other than consensus. This is needed to verify signatures because consensus signing includes this hash
bytes consensus_data_hash = 3;com.google.protobuf.ByteString getConsensusBlockId()
The block id of the last committed block corresponding to this ledger info. This field is not particularly interesting to the clients, but can be used by the validators for synchronization.
bytes consensus_block_id = 4;long getEpochNum()
Epoch number corresponds to the set of validators that are active for this ledger info. The main motivation for keeping the epoch number in the LedgerInfo is to ensure that the client has enough information to verify that the signatures for this info are coming from the validators that indeed form a quorum. Without epoch number a potential attack could reuse the signatures from the validators in one epoch in order to sign the wrong info belonging to another epoch, in which these validators do not form a quorum. The very first epoch number is 0.
uint64 epoch_num = 5;long getTimestampUsecs()
Timestamp that represents the microseconds since the epoch (unix time) that is generated by the proposer of the block. This is strictly increasing with every block. If a client reads a timestamp > the one they specified for transaction expiration time, they can be certain that their transaction will never be included in a block in the future (assuming that their transaction has not yet been included)
uint64 timestamp_usecs = 6;Copyright © 2019. All rights reserved.