Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 15 additions & 5 deletions sequencer/src/api.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5160,12 +5160,19 @@ mod test {
)
.await
.unwrap();
let mut tx = ds.write().await?;
let mut tx = ds.read().await?;

let (state, leaf) =
reconstruct_state(&instance, &mut tx, node_block_height - 1, to_view, &[], &[])
.await
.unwrap();
let (state, leaf) = reconstruct_state(
&instance,
&ds,
&mut tx,
node_block_height - 1,
to_view,
&[],
&[],
)
.await
.unwrap();
assert_eq!(leaf.view_number(), to_view);
assert!(
state
Expand All @@ -5179,6 +5186,7 @@ mod test {
// Reconstruct fee state
let (state, leaf) = reconstruct_state(
&instance,
&ds,
&mut tx,
node_block_height - 1,
to_view,
Expand Down Expand Up @@ -5206,6 +5214,7 @@ mod test {

let (state, leaf) = reconstruct_state(
&instance,
&ds,
&mut tx,
node_block_height - 1,
to_view,
Expand Down Expand Up @@ -5250,6 +5259,7 @@ mod test {

let (state, leaf) = reconstruct_state(
&instance,
&ds,
&mut tx,
node_block_height - 1,
to_view,
Expand Down
Loading