We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5970a57 commit 5f83847Copy full SHA for 5f83847
stackslib/src/net/api/get_tenures_fork_info.rs
@@ -233,7 +233,6 @@ impl RPCRequestHandler for GetTenuresForkInfo {
233
)?);
234
let mut depth = 0;
235
while depth < DEPTH_LIMIT && cursor.consensus_hash != recurse_end {
236
- depth += 1;
237
if height_bound >= cursor.block_height {
238
return Err(ChainError::NotInSameFork);
239
}
@@ -252,6 +251,11 @@ impl RPCRequestHandler for GetTenuresForkInfo {
252
251
&network.stacks_tip.block_id(),
253
254
+ if cursor.sortition {
255
+ // don't count shadow blocks towards the depth, since there can be a large
256
+ // swath of them.
257
+ depth += 1;
258
+ }
259
260
261
Ok(results)
0 commit comments