From edc2bca543bb969f3feaffa40383d2a775ee9ea6 Mon Sep 17 00:00:00 2001 From: Quentin Mc Gaw Date: Tue, 18 Feb 2025 13:47:48 +0100 Subject: [PATCH] Remove Test_sizedDataTransaction --- core/txpool/legacypool/legacypool_test.go | 18 ------------------ 1 file changed, 18 deletions(-) diff --git a/core/txpool/legacypool/legacypool_test.go b/core/txpool/legacypool/legacypool_test.go index 87f6ee19c2..289634994c 100644 --- a/core/txpool/legacypool/legacypool_test.go +++ b/core/txpool/legacypool/legacypool_test.go @@ -18,7 +18,6 @@ package legacypool import ( "crypto/ecdsa" - "crypto/elliptic" crand "crypto/rand" "errors" "fmt" @@ -1299,23 +1298,6 @@ func sizedDataTransaction(targetSize, nonce, gasLimit uint64, key *ecdsa.Private } } -func Test_sizedDataTransaction(t *testing.T) { - t.Skip("skipping this test which takes about one minute to complete") - const minSize uint64 = 98 - key, err := ecdsa.GenerateKey(elliptic.P256(), crand.Reader) - require.NoError(t, err) - for targetSize := minSize; targetSize < txMaxSize; targetSize++ { - const nonce = 1 - const gasLimit = 100000 - tx, err := sizedDataTransaction(targetSize, nonce, gasLimit, key) - if err != nil { // some sizes cannot be generated - t.Log(err) - continue - } - require.Equal(t, targetSize, tx.Size()) - } -} - func txSignatureLen(tx *types.Transaction) uint64 { v, r, s := tx.RawSignatureValues() empty := &types.LegacyTx{}