1. 30 Jul, 2021 1 commit
    • Mark Tyneway's avatar
      l2geth: make block hashes deterministic · 11d46182
      Mark Tyneway authored
      The blockhashes can be non deterministic because there is not a global
      consensus in the existing deployment of the optimism network, instead
      each node runs with `--dev 0` meaning that it auto mines transactions
      itself. Previously, block hashes were non deterministic due to a
      different clique signing key being used but that was fixed so that
      a deterministic key is used for all nodes.
      
      This fixes the possibility of the block extradata being different which
      would result in different block hashes. The extradata is hard coded
      to be the same value as the release @eth-optimism/l2geth@0.4.6. In
      version 0.4.7, the underlying Dockerfile pulled in a patch release of
      the Go runtime which caused the extradata field to become different.
      The extradata field by default is the version of the software (which
      cannot change until the next regenesis), "geth", the go runtime version
      and the operating system.
      
      This will require a resync to make block hashes deterministic across the
      network.
      11d46182
  2. 28 Jul, 2021 2 commits
  3. 26 Jul, 2021 3 commits
  4. 20 Jul, 2021 7 commits
  5. 16 Jul, 2021 1 commit
  6. 15 Jul, 2021 2 commits
  7. 14 Jul, 2021 1 commit
  8. 13 Jul, 2021 18 commits
  9. 12 Jul, 2021 3 commits
  10. 10 Jul, 2021 2 commits
    • Mark Tyneway's avatar
      l2geth: only accept txs with exact nonce · 709c85d6
      Mark Tyneway authored
      This PR makes it so that the sequencer will
      only accept transactions if the nonce exactly
      matches what is in the state. This is because the
      mempool in upstream geth has different rules than
      what l2geth needs.
      
      This prevents issues with local nonce managers that
      send transactions with a too large of nonce and
      end up having all of the transactions revert since
      the transaction is still accepted but reverts
      in the OVM
      709c85d6
    • Mark Tyneway's avatar
      l2geth: better error message for when fee is too large · 32a9f494
      Mark Tyneway authored
      The sequencer will reject transactions when the fee
      is too large to prevent users from accidentally sending
      transactions with a huge fee.
      
      This PR adds an actionable error message for when
      the fee is too large.
      32a9f494