Skip to content

Commit 2842c13

Browse files
core/txpool/blobpool: adjust slot size for cell proof transactions
1 parent 0200238 commit 2842c13

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

core/txpool/blobpool/blobpool_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1000,7 +1000,7 @@ func TestOpenCap(t *testing.T) {
10001000

10011001
keep = []common.Address{addr1, addr3}
10021002
drop = []common.Address{addr2}
1003-
size = uint64(2 * (txAvgSize + blobSize))
1003+
size = uint64(2 * (txAvgSize + blobSize + txBlobOverhead))
10041004
)
10051005
store.Put(blob1)
10061006
store.Put(blob2)
@@ -1009,7 +1009,7 @@ func TestOpenCap(t *testing.T) {
10091009

10101010
// Verify pool capping twice: first by reducing the data cap, then restarting
10111011
// 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)} {
10131013
// Create a blob pool out of the pre-seeded data, but cap it to 2 blob transaction
10141014
statedb, _ := state.New(types.EmptyRootHash, state.NewDatabaseForTesting())
10151015
statedb.AddBalance(addr1, uint256.NewInt(1_000_000_000), tracing.BalanceChangeUnspecified)

0 commit comments

Comments
 (0)