Skip to content

Commit b259ba3

Browse files
committed
fix: fix comments on rc_consensus_hash
1 parent 99c209c commit b259ba3

File tree

1 file changed

+7
-4
lines changed

1 file changed

+7
-4
lines changed

stackslib/src/net/mod.rs

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -975,6 +975,7 @@ pub mod NackErrorCodes {
975975
pub const InvalidMessage: u32 = 5;
976976
pub const NoSuchDB: u32 = 6;
977977
pub const StaleVersion: u32 = 7;
978+
pub const StaleView: u32 = 8;
978979
}
979980

980981
#[derive(Debug, Clone, PartialEq)]
@@ -997,7 +998,9 @@ pub struct NatPunchData {
997998
/// Inform the remote peer of (a page of) the list of stacker DB contracts this node supports
998999
#[derive(Debug, Clone, PartialEq)]
9991000
pub struct StackerDBHandshakeData {
1000-
/// current reward cycle ID
1001+
/// current reward cycle consensus hash (i.e. the consensus hash of the Stacks tip in the
1002+
/// current reward cycle, which commits to both the Stacks block tip and the underlying PoX
1003+
/// history).
10011004
pub rc_consensus_hash: ConsensusHash,
10021005
/// list of smart contracts that we index.
10031006
/// there can be as many as 256 entries.
@@ -1009,7 +1012,7 @@ pub struct StackerDBHandshakeData {
10091012
pub struct StackerDBGetChunkInvData {
10101013
/// smart contract being used to determine chunk quantity and order
10111014
pub contract_id: QualifiedContractIdentifier,
1012-
/// consensus hash of the sortition that started this reward cycle
1015+
/// consensus hash of the Stacks chain tip in this reward cycle
10131016
pub rc_consensus_hash: ConsensusHash,
10141017
}
10151018

@@ -1028,7 +1031,7 @@ pub struct StackerDBChunkInvData {
10281031
pub struct StackerDBGetChunkData {
10291032
/// smart contract being used to determine slot quantity and order
10301033
pub contract_id: QualifiedContractIdentifier,
1031-
/// consensus hash of the sortition that started this reward cycle
1034+
/// consensus hash of the Stacks chain tip in this reward cycle
10321035
pub rc_consensus_hash: ConsensusHash,
10331036
/// slot ID
10341037
pub slot_id: u32,
@@ -1041,7 +1044,7 @@ pub struct StackerDBGetChunkData {
10411044
pub struct StackerDBPushChunkData {
10421045
/// smart contract being used to determine chunk quantity and order
10431046
pub contract_id: QualifiedContractIdentifier,
1044-
/// consensus hash of the sortition that started this reward cycle
1047+
/// consensus hash of the Stacks chain tip in this reward cycle
10451048
pub rc_consensus_hash: ConsensusHash,
10461049
/// the pushed chunk
10471050
pub chunk_data: StackerDBChunkData,

0 commit comments

Comments
 (0)