File tree Expand file tree Collapse file tree 3 files changed +9
-12
lines changed
crates/op-rbuilder/src/tests Expand file tree Collapse file tree 3 files changed +9
-12
lines changed Original file line number Diff line number Diff line change @@ -105,7 +105,7 @@ async fn block_fill(rbuilder: LocalInstance) -> eyre::Result<()> {
105
105
"unfit tx should not be in block"
106
106
) ;
107
107
assert ! (
108
- driver. latest_full( ) . await ?. transactions. len( ) == 4 ,
108
+ driver. latest_full( ) . await ?. transactions. len( ) == 7 ,
109
109
"builder + deposit + 2 valid txs should be in the block"
110
110
) ;
111
111
Original file line number Diff line number Diff line change @@ -50,8 +50,8 @@ async fn monitor_transaction_gc(rbuilder: LocalInstance) -> eyre::Result<()> {
50
50
}
51
51
52
52
if_flashblocks ! {
53
- // flashblocks should include three transactions (deposit + 2 builder txs)
54
- assert_eq!( generated_block. transactions. len( ) , 3 ) ;
53
+ // flashblocks should include five transactions (deposit + 4 builder txs)
54
+ assert_eq!( generated_block. transactions. len( ) , 5 ) ;
55
55
}
56
56
57
57
// since we created the 10 transactions with increasing block ranges, as we generate blocks
Original file line number Diff line number Diff line change @@ -41,12 +41,11 @@ async fn chain_produces_blocks(rbuilder: LocalInstance) -> eyre::Result<()> {
41
41
}
42
42
43
43
if_flashblocks ! {
44
- // in flashblocks we add an additional transaction on the first
45
- // flashblocks and then one on the last flashblock
44
+ // in flashblocks we add an additional transaction each flashblock
46
45
assert_eq!(
47
46
transactions. len( ) ,
48
- 3 ,
49
- "Empty blocks should have exactly three transactions"
47
+ 5 ,
48
+ "Empty blocks should have exactly four transactions"
50
49
) ;
51
50
}
52
51
}
@@ -81,14 +80,12 @@ async fn chain_produces_blocks(rbuilder: LocalInstance) -> eyre::Result<()> {
81
80
}
82
81
83
82
if_flashblocks ! {
84
- // in flashblocks we add an additional transaction on the first
85
- // flashblocks and then one on the last flashblock, so it will have
86
- // one more transaction than the standard builder
83
+ // in flashblocks we add an additional transaction each flashblock
87
84
assert_eq!(
88
85
txs. len( ) ,
89
- 3 + count,
86
+ 5 + count,
90
87
"Block should have {} transactions" ,
91
- 3 + count
88
+ 5 + count
92
89
) ;
93
90
}
94
91
You can’t perform that action at this time.
0 commit comments