Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix the limit for TX pool contract creation size #1345

Merged
merged 4 commits into from
Mar 30, 2023
Merged
Changes from 2 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
6 changes: 3 additions & 3 deletions txpool/txpool_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -1750,12 +1750,12 @@ func TestPermissionSmartContractDeployment(t *testing.T) {
)
})

t.Run("Input larger then the MaxInitCodeSize", func(t *testing.T) {
t.Run("Input larger then the TxPoolMaxInitCodeSize", func(t *testing.T) {
vcastellm marked this conversation as resolved.
Show resolved Hide resolved
t.Parallel()
pool := setupPool()
pool.forks.EIP158 = true

input := make([]byte, state.SpuriousDragonMaxCodeSize+1)
input := make([]byte, state.TxPoolMaxInitCodeSize+1)
_, err := rand.Read(input)
require.NoError(t, err)

Expand All @@ -1769,7 +1769,7 @@ func TestPermissionSmartContractDeployment(t *testing.T) {
)
})

t.Run("Input the same as MaxInitCodeSize", func(t *testing.T) {
t.Run("Input the same as TxPoolMaxInitCodeSize", func(t *testing.T) {
t.Parallel()
pool := setupPool()
pool.forks.EIP158 = true
Expand Down