erigon-pulse/cmd/devnet/requests
Leonard Chinonso 599fc24aed
Devnet Test for EIP1559 (#6938)
**Current Problem**

When X transactions are created, with M transactions out of them having
`gasFeeCap` greater than the current `baseFeePerGas` for the block, and
N transactions having `gasFeeCap` lower, all X transactions get added to
the yellow pool (baseFee) in the txpool and they never get mined.
However when X transactions all having `gasFeeCap` higher than the
`baseFeePerGas` are created, they all get added to the green pool
(pending) in the txpool and thus get mined.

This phenomenon can be inspected in the
`signEIP1559TxsLowerAndHigherThanBaseFee2` function where the number of
transactions that should have `gasFeeCap` higher than and lower than the
current `baseFeePerGas` is specified in its parameter - `func
signEIP1559TxsLowerAndHigherThanBaseFee2(amountLower, amountHigher
int...`.
When `amountLower` is set as `0`, all transactions created from
`amountHigher` will be mined because they have `gasFeeCap` >
`baseFeePerGas`. When `amountLower` has a value > `0`, all the
transactions created (including transactions created with
`amountHigher`) will go to the yellow pool (baseFee) and thus do not get
mined.
2023-03-02 10:25:11 +00:00
..
account.go reference hash, address, and chain config from lib (#6536) 2023-01-13 18:12:18 +00:00
admin.go Implemented mining of contract transactions on the devnet tool (#6102) 2022-11-22 20:28:53 +07:00
block.go Devnet Test for EIP1559 (#6938) 2023-03-02 10:25:11 +00:00
event.go Reorganization the devnet subscription services (#6331) 2023-01-10 17:43:58 +00:00
mock_request.go Setup calls for rpc testing (#5661) 2022-10-11 13:34:32 +01:00
request_generator_test.go reference hash, address, and chain config from lib (#6536) 2023-01-13 18:12:18 +00:00
request_generator.go Devnet Test for EIP1559 (#6938) 2023-03-02 10:25:11 +00:00
tx.go Setup web socket endpoints to listen for new transactions after sending (#5940) 2022-11-03 09:45:36 +07:00