Skip to content
Open
Show file tree
Hide file tree
Changes from all 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
25 changes: 25 additions & 0 deletions plugin/evm/gossip_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,9 @@ package evm

import (
"context"
"crypto/ecdsa"
"math/big"
"strings"
"testing"
"time"

Expand Down Expand Up @@ -110,3 +112,26 @@ func setupPoolWithConfig(t *testing.T, config *params.ChainConfig, fundedAddress

return txPool
}

func getValidEthTxs(key *ecdsa.PrivateKey, count int, gasPrice *big.Int) []*types.Transaction {
res := make([]*types.Transaction, count)

to := common.Address{}
amount := big.NewInt(0)
gasLimit := uint64(37000)

for i := 0; i < count; i++ {
tx, _ := types.SignTx(
types.NewTransaction(
uint64(i),
to,
amount,
gasLimit,
gasPrice,
[]byte(strings.Repeat("aaaaaaaaaa", 100))),
types.HomesteadSigner{}, key)
tx.SetTime(time.Now().Add(-1 * time.Minute))
res[i] = tx
}
return res
}
139 changes: 0 additions & 139 deletions plugin/evm/gossiper_eth_gossiping_test.go

This file was deleted.

3 changes: 1 addition & 2 deletions scripts/known_flakes.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,9 @@ TestChainIndexerWithChildren
TestClientCancelWebsocket
TestClientWebsocketLargeMessage
TestGolangBindings
TestMempoolEthTxsAppGossipHandling
TestResumeSyncAccountsTrieInterrupted
TestResyncNewRootAfterDeletes
TestTransactionSkipIndexing
TestVMShutdownWhileSyncing
TestWaitDeployedCornerCases
TestWebsocketLargeRead
TestWebsocketLargeRead
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sorry, unclear to me why there's a diff here

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

how weird

Loading