1. 08 8月, 2021 1 次提交
    • M
      core: check if sender is EOA (#23303) · 0658712f
      Martin Holst Swende 提交于
      This adds a check to verify that a sender-account does not have code, which means that the codehash is either `emptyCodeHash` _OR_ not present. The latter occurs IFF the sender did not previously exist, a situation which can only occur with zero cost gasprices. 
      0658712f
  2. 22 7月, 2021 1 次提交
  3. 16 6月, 2021 1 次提交
  4. 08 6月, 2021 1 次提交
  5. 31 5月, 2021 1 次提交
  6. 21 5月, 2021 1 次提交
    • M
      EIP-1559: miner changes (#22896) · a6c46278
      Martin Holst Swende 提交于
      * core/types, miner: create TxWithMinerFee wrapper, add EIP-1559 support to TransactionsByMinerFeeAndNonce
      
      miner: set base fee when creating a new header, handle gas limit, log miner fees
      
      * all: rename to NewTransactionsByPriceAndNonce
      
      * core/types, miner: rename to NewTransactionsByPriceAndNonce + EffectiveTip
      
      miner: activate 1559 for testGenerateBlockAndImport tests
      
      * core,miner: revert naming to TransactionsByPriceAndTime
      
      * core/types/transaction: update effective tip calculation logic
      
      * miner: update aleut to london
      
      * core/types/transaction_test: use correct signer for 1559 txs + add back sender check
      
      * miner/worker: calculate gas target from gas limit
      
      * core, miner: fix block  gas limits for 1559
      Co-authored-by: NAnsgar Dietrichs <adietrichs@gmail.com>
      Co-authored-by: Nlightclient@protonmail.com <lightclient@protonmail.com>
      a6c46278
  7. 18 5月, 2021 1 次提交
  8. 17 5月, 2021 1 次提交
  9. 02 2月, 2021 1 次提交
  10. 04 12月, 2020 1 次提交
    • M
      core: improve contextual information on core errors (#21869) · 7770e41c
      Martin Holst Swende 提交于
      A lot of times when we hit 'core' errors, example: invalid tx, the information provided is
      insufficient. We miss several pieces of information: what account has nonce too high,
      and what transaction in that block was offending?
      
      This PR adds that information, using the new type of wrapped errors.
      It also adds a testcase which (partly) verifies the output from the errors.
      
      The first commit changes all usage of direct equality-checks on core errors, into
      using errors.Is. The second commit adds contextual information. This wraps most
      of the core errors with more information, and also wraps it one more time in
      stateprocessor, to further provide tx index and tx hash, if such a tx is encoutered in
      a block. The third commit uses the chainmaker to try to generate chains with such
      errors in them, thus triggering the errors and checking that the generated string meets
      expectations.
      7770e41c