@@ -553,14 +553,12 @@ RejectCodeTypePrefix {
553
553
NotLatestSortitionWinner = 10 ,
554
554
/// The block does not confirm the expected parent block
555
555
InvalidParentBlock = 11 ,
556
- /// The block does not confirm the expected parent tenure
557
- InvalidParentTenure = 12 ,
558
556
/// The block contains a block found tenure change, but we've already seen
559
557
/// a block found
560
- DuplicateBlockFound = 13 ,
558
+ DuplicateBlockFound = 12 ,
561
559
/// The block attempted a tenure extend but the burn view has not changed
562
560
/// and not enough time has passed for a time-based tenure extend
563
- InvalidTenureExtend = 14
561
+ InvalidTenureExtend = 13
564
562
} ) ;
565
563
566
564
impl TryFrom < u8 > for RejectCodeTypePrefix {
@@ -587,7 +585,6 @@ impl From<&RejectCode> for RejectCodeTypePrefix {
587
585
RejectCode :: InvalidMiner => RejectCodeTypePrefix :: InvalidMiner ,
588
586
RejectCode :: NotLatestSortitionWinner => RejectCodeTypePrefix :: NotLatestSortitionWinner ,
589
587
RejectCode :: InvalidParentBlock => RejectCodeTypePrefix :: InvalidParentBlock ,
590
- RejectCode :: InvalidParentTenure => RejectCodeTypePrefix :: InvalidParentTenure ,
591
588
RejectCode :: DuplicateBlockFound => RejectCodeTypePrefix :: DuplicateBlockFound ,
592
589
RejectCode :: InvalidTenureExtend => RejectCodeTypePrefix :: InvalidTenureExtend ,
593
590
}
@@ -622,8 +619,6 @@ pub enum RejectCode {
622
619
NotLatestSortitionWinner ,
623
620
/// The block does not confirm the expected parent block
624
621
InvalidParentBlock ,
625
- /// The block does not confirm the expected parent tenure
626
- InvalidParentTenure ,
627
622
/// The block contains a block found tenure change, but we've already seen
628
623
/// a block found
629
624
DuplicateBlockFound ,
@@ -1132,7 +1127,6 @@ impl StacksMessageCodec for RejectCode {
1132
1127
| RejectCode :: InvalidMiner
1133
1128
| RejectCode :: NotLatestSortitionWinner
1134
1129
| RejectCode :: InvalidParentBlock
1135
- | RejectCode :: InvalidParentTenure
1136
1130
| RejectCode :: DuplicateBlockFound
1137
1131
| RejectCode :: InvalidTenureExtend => {
1138
1132
// No additional data to serialize / deserialize
@@ -1166,7 +1160,6 @@ impl StacksMessageCodec for RejectCode {
1166
1160
RejectCodeTypePrefix :: InvalidMiner => RejectCode :: InvalidMiner ,
1167
1161
RejectCodeTypePrefix :: NotLatestSortitionWinner => RejectCode :: NotLatestSortitionWinner ,
1168
1162
RejectCodeTypePrefix :: InvalidParentBlock => RejectCode :: InvalidParentBlock ,
1169
- RejectCodeTypePrefix :: InvalidParentTenure => RejectCode :: InvalidParentTenure ,
1170
1163
RejectCodeTypePrefix :: DuplicateBlockFound => RejectCode :: DuplicateBlockFound ,
1171
1164
RejectCodeTypePrefix :: InvalidTenureExtend => RejectCode :: InvalidTenureExtend ,
1172
1165
} ;
@@ -1202,7 +1195,7 @@ impl std::fmt::Display for RejectCode {
1202
1195
RejectCode :: ReorgNotAllowed => {
1203
1196
write ! (
1204
1197
f,
1205
- "The block attempted to reorg the previous tenure but was not allowed."
1198
+ "The block attempted to reorg the previous tenure(s) but was not allowed."
1206
1199
)
1207
1200
}
1208
1201
RejectCode :: InvalidBitvec => {
@@ -1226,9 +1219,6 @@ impl std::fmt::Display for RejectCode {
1226
1219
RejectCode :: InvalidParentBlock => {
1227
1220
write ! ( f, "The block does not confirm the expected parent block." )
1228
1221
}
1229
- RejectCode :: InvalidParentTenure => {
1230
- write ! ( f, "The block does not confirm the expected parent tenure." )
1231
- }
1232
1222
RejectCode :: DuplicateBlockFound => {
1233
1223
write ! (
1234
1224
f,
0 commit comments