nimbus-eth1/nimbus/p2p/chain
Jordan Hrycaj cea2a83b0a
Update/clarify tx validation (#917)
details:
  1. The check for cumulativeGasUsed + tx.gasLimit <= header.gasLimit
     makes neither sense nor is it part of the Eip1559 specs. Nevertheless
     a check tx.gasLimit <= header.gasLimit is added to satisfy some
     unit test (see comments in validateTransaction() body.)
  2. As a replacement check for the one removed in 1, a check for
     cumulativeGasUsed + gasBurned <= header.gasLimit has been added
     (see comments in processTransactionImpl() body.)
  3. Prototypes for processTransaction() variants have been cleaned up and
     commented.

why:
  Detail 1. in particular produces an error for tightly packed blocks when
  the last tx in the list has a generous gasLimit.
2022-01-10 09:04:06 +00:00
..
chain_desc.nim Update/clarify tx validation (#917) 2022-01-10 09:04:06 +00:00
chain_helpers.nim Feature/implement poa processing (#748) 2021-07-14 16:13:27 +01:00
chain_misc.nim Arrow Glacier fork 2021-12-10 13:40:51 +00:00
persist_blocks.nim Jordan/pow cache management (#888) 2021-12-10 08:49:57 +00:00