(nonce uint64, gaslimit uint64, gasprice *big.Int, key *ecdsa.PrivateKey)
| 75 | } |
| 76 | |
| 77 | func pricedTransaction(nonce uint64, gaslimit uint64, gasprice *big.Int, key *ecdsa.PrivateKey) *types.Transaction { |
| 78 | tx, _ := types.SignTx(types.NewTransaction(nonce, common.Address{}, big.NewInt(100), gaslimit, gasprice, nil), types.HomesteadSigner{}, key) |
| 79 | return tx |
| 80 | } |
| 81 | |
| 82 | func setupTxPool() (*TxPool, *ecdsa.PrivateKey) { |
| 83 | statedb, _ := state.New(common.Hash{}, state.NewDatabase(database.NewMemDatabase())) |
no test coverage detected