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 69eb7ac commit 3430a81Copy full SHA for 3430a81
stackslib/src/net/api/get_tenures_fork_info.rs
@@ -237,7 +237,9 @@ impl RPCRequestHandler for GetTenuresForkInfo {
237
if height_bound >= cursor.block_height {
238
return Err(ChainError::NotInSameFork);
239
}
240
-
+ cursor =
241
+ SortitionDB::get_block_snapshot(sortdb.conn(), &cursor.parent_sortition_id)?
242
+ .ok_or_else(|| ChainError::NoSuchBlockError)?;
243
if cursor.sortition
244
|| chainstate
245
.nakamoto_blocks_db()
@@ -250,10 +252,6 @@ impl RPCRequestHandler for GetTenuresForkInfo {
250
252
&network.stacks_tip.block_id(),
251
253
)?);
254
- cursor =
255
- SortitionDB::get_block_snapshot(sortdb.conn(), &cursor.parent_sortition_id)?
256
- .ok_or_else(|| ChainError::NoSuchBlockError)?;
257
258
259
Ok(results)
0 commit comments