File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -1000,7 +1000,7 @@ func TestOpenCap(t *testing.T) {
1000
1000
1001
1001
keep = []common.Address {addr1 , addr3 }
1002
1002
drop = []common.Address {addr2 }
1003
- size = uint64 (2 * (txAvgSize + blobSize ))
1003
+ size = uint64 (2 * (txAvgSize + blobSize + txBlobOverhead ))
1004
1004
)
1005
1005
store .Put (blob1 )
1006
1006
store .Put (blob2 )
@@ -1009,7 +1009,7 @@ func TestOpenCap(t *testing.T) {
1009
1009
1010
1010
// Verify pool capping twice: first by reducing the data cap, then restarting
1011
1011
// with a high cap to ensure everything was persisted previously
1012
- for _ , datacap := range []uint64 {2 * (txAvgSize + blobSize ), 100 * (txAvgSize + blobSize )} {
1012
+ for _ , datacap := range []uint64 {2 * (txAvgSize + blobSize + txBlobOverhead ), 100 * (txAvgSize + blobSize + txBlobOverhead )} {
1013
1013
// Create a blob pool out of the pre-seeded data, but cap it to 2 blob transaction
1014
1014
statedb , _ := state .New (types .EmptyRootHash , state .NewDatabaseForTesting ())
1015
1015
statedb .AddBalance (addr1 , uint256 .NewInt (1_000_000_000 ), tracing .BalanceChangeUnspecified )
You can’t perform that action at this time.
0 commit comments