@@ -975,6 +975,7 @@ pub mod NackErrorCodes {
975
975
pub const InvalidMessage : u32 = 5 ;
976
976
pub const NoSuchDB : u32 = 6 ;
977
977
pub const StaleVersion : u32 = 7 ;
978
+ pub const StaleView : u32 = 8 ;
978
979
}
979
980
980
981
#[ derive( Debug , Clone , PartialEq ) ]
@@ -997,7 +998,9 @@ pub struct NatPunchData {
997
998
/// Inform the remote peer of (a page of) the list of stacker DB contracts this node supports
998
999
#[ derive( Debug , Clone , PartialEq ) ]
999
1000
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).
1001
1004
pub rc_consensus_hash : ConsensusHash ,
1002
1005
/// list of smart contracts that we index.
1003
1006
/// there can be as many as 256 entries.
@@ -1009,7 +1012,7 @@ pub struct StackerDBHandshakeData {
1009
1012
pub struct StackerDBGetChunkInvData {
1010
1013
/// smart contract being used to determine chunk quantity and order
1011
1014
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
1013
1016
pub rc_consensus_hash : ConsensusHash ,
1014
1017
}
1015
1018
@@ -1028,7 +1031,7 @@ pub struct StackerDBChunkInvData {
1028
1031
pub struct StackerDBGetChunkData {
1029
1032
/// smart contract being used to determine slot quantity and order
1030
1033
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
1032
1035
pub rc_consensus_hash : ConsensusHash ,
1033
1036
/// slot ID
1034
1037
pub slot_id : u32 ,
@@ -1041,7 +1044,7 @@ pub struct StackerDBGetChunkData {
1041
1044
pub struct StackerDBPushChunkData {
1042
1045
/// smart contract being used to determine chunk quantity and order
1043
1046
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
1045
1048
pub rc_consensus_hash : ConsensusHash ,
1046
1049
/// the pushed chunk
1047
1050
pub chunk_data : StackerDBChunkData ,
0 commit comments