1. 31 Jul, 2021 1 commit
  2. 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
  3. 28 Jul, 2021 2 commits
  4. 26 Jul, 2021 3 commits
  5. 20 Jul, 2021 7 commits
  6. 16 Jul, 2021 1 commit
  7. 15 Jul, 2021 2 commits
  8. 14 Jul, 2021 1 commit
  9. 13 Jul, 2021 18 commits
  10. 12 Jul, 2021 3 commits
  11. 10 Jul, 2021 1 commit
    • 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