Skip to content

Commit 409530d

Browse files
committed
PR Review: order db retrieved block range root by start & end
Instead of rowid, this is more consistent accross nodes.
1 parent 1789a99 commit 409530d

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

mithril-aggregator/src/database/provider/block_range_root/get_block_range_root.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,6 @@ impl<'client> Provider<'client> for GetBlockRangeRootProvider<'client> {
2929
let aliases = SourceAlias::new(&[("{:block_range_root:}", "block_range_root")]);
3030
let projection = Self::Entity::get_projection().expand(aliases);
3131

32-
format!("select {projection} from block_range_root where {condition} order by rowid")
32+
format!("select {projection} from block_range_root where {condition} order by start, end")
3333
}
3434
}

mithril-signer/src/database/provider/block_range_root/get_block_range_root.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,6 @@ impl<'client> Provider<'client> for GetBlockRangeRootProvider<'client> {
2929
let aliases = SourceAlias::new(&[("{:block_range_root:}", "block_range_root")]);
3030
let projection = Self::Entity::get_projection().expand(aliases);
3131

32-
format!("select {projection} from block_range_root where {condition} order by rowid")
32+
format!("select {projection} from block_range_root where {condition} order by start, end")
3333
}
3434
}

0 commit comments

Comments
 (0)