(t *testing.T)
| 415 | } |
| 416 | |
| 417 | func TestNegativeValue(t *testing.T) { |
| 418 | t.Parallel() |
| 419 | |
| 420 | pool, key := setupPool() |
| 421 | defer pool.Close() |
| 422 | |
| 423 | tx, _ := types.SignTx(types.NewTransaction(0, common.Address{}, big.NewInt(-1), 100, big.NewInt(1), nil), types.HomesteadSigner{}, key) |
| 424 | from, _ := deriveSender(tx) |
| 425 | testAddBalance(pool, from, big.NewInt(1)) |
| 426 | if err := pool.addRemote(tx); err != txpool.ErrNegativeValue { |
| 427 | t.Error("expected", txpool.ErrNegativeValue, "got", err) |
| 428 | } |
| 429 | } |
| 430 | |
| 431 | func TestTipAboveFeeCap(t *testing.T) { |
| 432 | t.Parallel() |
nothing calls this directly
no test coverage detected