Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
149 commits
Select commit Hold shift + click to select a range
f43ee05
Create a setup script for the integration tests
barrasso Dec 9, 2021
14062b1
feat: L2Provider test scaffold
smartcontracts Dec 10, 2021
229fde5
feat: add telemetry to go batch-submitter
cfromknecht Dec 13, 2021
6780c47
feat: cache go BSS txn serialization
cfromknecht Dec 14, 2021
236b92e
chore: prepare for iterative batch-tx size reduction
cfromknecht Dec 14, 2021
09bd17c
feat: submit multiple sequencer txs per batch
cfromknecht Dec 13, 2021
4ac74ed
increase branch coverage for Lib_BytesUtils
Dec 15, 2021
eff3b5b
increase branch coverage for Lib_RLPReader
Dec 15, 2021
76b2dd2
feat: added dodoc harhat plugin + packages/contracts/docs folder with…
indeavr Dec 15, 2021
be5cd89
Merge branch 'ethereum-optimism:develop' into develop
indeavr Dec 15, 2021
6083889
add LIB_RLPReader tests
Dec 15, 2021
fe0ee93
LIB_RLPReader test for list item
Dec 15, 2021
2392065
feat: Created the "validate-output" hardhat task that outputs if ther…
indeavr Dec 16, 2021
3d2b298
feat: Slight improvement to the console output
indeavr Dec 16, 2021
9afc543
feat: Added config + excluded test folders + refactored based on feed…
indeavr Dec 16, 2021
410e409
feat: Added 'Compilation Warning' check + the ability to enable/disab…
indeavr Dec 16, 2021
43e3bbe
Merge branch 'ethereum-optimism:develop' into develop
indeavr Dec 16, 2021
5b19b62
feat: small fixes
indeavr Dec 18, 2021
609926f
Merge branch 'ethereum-optimism:develop' into develop
indeavr Dec 18, 2021
7017a69
feat: moved code to a separate npm package
indeavr Dec 19, 2021
7a7803d
added tests for CanonicalTransactionChain getters
Dec 17, 2021
d8078e6
feat: upgraded hardhat-output-validator
indeavr Dec 20, 2021
847879c
Merge branch 'ethereum-optimism:develop' into develop
indeavr Dec 20, 2021
23fecae
test StateCommitmentchain
Dec 21, 2021
b3efb8b
fix: replace OE with Optimism
smartcontracts Dec 21, 2021
a2ffd3a
Merge branch 'ethereum-optimism:develop' into integration-test-setup
barrasso Dec 21, 2021
9f970f0
Merge pull request #1907 from barrasso/integration-test-setup
smartcontracts Dec 21, 2021
c8a68b7
feat: implement getMessageReceipt and tests
smartcontracts Dec 21, 2021
dddc160
Merge pull request #1955 from ethereum-optimism/sc/sdk-msg-receipt
smartcontracts Dec 21, 2021
1f7d0e7
remove eslint-plugin-ban dependency
tonykogias Dec 21, 2021
4d963ad
ops: fix message-relayer docker build
tynes Dec 22, 2021
e7c65ad
chore: add changeset for message-relayer
tynes Dec 22, 2021
ba3de8e
Merge pull request #1958 from ethereum-optimism/sc/oe-optimism
tynes Dec 22, 2021
ffadcb4
dtl: smaller range for filter query
tynes Dec 7, 2021
42f0dcf
Merge pull request #1887 from ethereum-optimism/fix/dtl-large-query
mslipper Dec 22, 2021
6d5bbd8
ci: Add proxyd to nightly build
mslipper Dec 21, 2021
dcd82bc
Merge pull request #1962 from mslipper/feat/proxyd-nightly
mslipper Dec 22, 2021
8b162c7
Merge branch 'ethereum-optimism:develop' into develop
indeavr Dec 22, 2021
20fe949
test L1StandardBridge, revert if failed withdraw
Dec 22, 2021
eac1a56
fix: disabled events, made the output validator less strict
indeavr Dec 22, 2021
228e1f6
fix: removed variables for the output-validator
indeavr Dec 22, 2021
9c635da
ignore OVM_DeployerWhitelist in test coverage
Dec 22, 2021
b6040bb
packages/contracts: Remove legacy `bin/deploy.ts` script
mslipper Dec 21, 2021
4c363a6
Merge pull request #1951 from mslipper/feat/remove-bin-deployts
mslipper Dec 22, 2021
b7b14fe
feat: disabled error mode
indeavr Dec 22, 2021
4fc6f5e
Merge branch 'ethereum-optimism:develop' into develop
indeavr Dec 23, 2021
f6eeeb1
fix: updates output-validator to exclude base contract variables as well
indeavr Dec 23, 2021
6c6af63
refac: improved the command/task for running the validator (yarn vali…
indeavr Dec 23, 2021
53d1db0
feat: added @param & @return checks for functions in the output-valid…
indeavr Dec 23, 2021
50e18dd
fix: added yarn.lock
indeavr Dec 23, 2021
36972b6
fix: validateDocs now correctly ignores external libraries & moved to…
indeavr Dec 23, 2021
3163f09
fix (output-validator): added support for overloads
indeavr Dec 23, 2021
ac2217e
Merge pull request #1963 from tonykogias/remove-eslint-plugin-ban
tynes Dec 23, 2021
0a20266
Merge pull request #1964 from ethereum-optimism/fix/message-relayer-d…
tynes Dec 23, 2021
09c20ae
refac(docs): generated docs with overloads
indeavr Dec 23, 2021
76e2b01
ci: Add Slack notifications to nightly deployment
mslipper Dec 22, 2021
3613316
Merge pull request #1966 from mslipper/feat/ci-slack-notif
mslipper Dec 24, 2021
ef7c90c
ci: Fix merge bug in CircleCI YAML
mslipper Dec 24, 2021
fde2c76
Merge pull request #1968 from mslipper/bugfix/nightly
mslipper Dec 24, 2021
53f1220
Merge branch 'ethereum-optimism:develop' into increase-coverage-issue
coolhill Dec 28, 2021
1bdf50f
increase coverage minimum requirements
Dec 28, 2021
a5001aa
Merge pull request #1931 from coolhill/increase-coverage-issue
elenadimitrova Dec 29, 2021
767fb0e
Merge branch 'develop' into develop
elenadimitrova Dec 29, 2021
a7cf8e6
Merge pull request #1937 from indeavr/develop
elenadimitrova Dec 29, 2021
9036a06
refac (docs): latest mds
indeavr Dec 30, 2021
30947cb
fix (generate-artifacts): Unicode fix for the output files = '\' rep…
indeavr Dec 30, 2021
cf0d19a
fix(output-validator): updated to latest version
indeavr Dec 30, 2021
6488d43
Fail CI if coverage threshold checks fail
elenadimitrova Dec 29, 2021
d0747b7
fix(lint)
indeavr Dec 30, 2021
7eb160b
Merge pull request #1971 from ethereum-optimism/fail-ci-if-branch-cov…
elenadimitrova Dec 30, 2021
28cfa6a
Merge branch 'develop' into develop
elenadimitrova Dec 30, 2021
56961f9
Merge pull request #1972 from indeavr/develop
elenadimitrova Dec 30, 2021
5f77d65
Add base branch settings to codechecks
elenadimitrova Dec 30, 2021
b892c63
Turn off speculative branch selection for codechecks
elenadimitrova Dec 30, 2021
8d2feff
Merge pull request #1973 from ethereum-optimism/elena/eng-1328-fix-co…
elenadimitrova Jan 4, 2022
f26ada9
Remove logic for connecting contracts which was never used
elenadimitrova Dec 29, 2021
39d22c8
Run dual tests for Synthetix
elenadimitrova Sep 15, 2021
f4cf99e
Merge pull request #1969 from ethereum-optimism/remove-connectL1L2Con…
elenadimitrova Jan 4, 2022
5787a55
integration-tests: Actor updates to run against nightly
mslipper Dec 17, 2021
1644c7b
Merge pull request #1945 from mslipper/feat/nightly-actor-updates
mslipper Jan 4, 2022
3416877
Fixes panic caused by version initialized to nil
optimisticben Jan 4, 2022
673bfcc
Added changeset
optimisticben Jan 4, 2022
f393872
Merge pull request #1980 from ethereum-optimism/bwilson/fix/op-export…
optimisticben Jan 4, 2022
8b1c6aa
Merge branch 'develop' into run-dual-tests-synthetix
elenadimitrova Jan 5, 2022
a21cec6
Merge pull request #1984 from ethereum-optimism/run-dual-tests-synthetix
elenadimitrova Jan 5, 2022
0f68bba
op-exporter version metric
optimisticben Jan 6, 2022
a1d8136
go/stackman: Add stackman operator
mslipper Dec 17, 2021
c7e6bed
Added changeset
optimisticben Jan 6, 2022
b8bd11c
Merge pull request #1988 from ethereum-optimism/bwilson/feature/op-ex…
tynes Jan 6, 2022
9246754
Merge pull request #1946 from mslipper/feat/stackman-only-operator
tynes Jan 7, 2022
279603e
feat(contracts): add in better gas oracle management
tynes Jan 7, 2022
9195dcf
Merge pull request #1992 from ethereum-optimism/feat/hh-gas-oracle
tynes Jan 7, 2022
9efcce3
feat(sdk): implement waitForMessageReceipt
smartcontracts Jan 3, 2022
44f982b
fix(sdk): remove empty fns in tests
smartcontracts Jan 3, 2022
0b6eca5
fix: reciept to receipt
smartcontracts Jan 6, 2022
6f566a4
Merge remote-tracking branch 'cfromknecht/bss-batching' into feat/bss…
mslipper Jan 7, 2022
c9123af
Merge pull request #1979 from ethereum-optimism/sc/sdk-wait-for-receipt
smartcontracts Jan 7, 2022
16e27bd
feat(proxyd): Add X-Forwarded-For header
Inphi Jan 6, 2022
9c017cb
add proxyd ip to xff
Inphi Jan 7, 2022
8aa89bf
add proxyd to changeset
Inphi Jan 7, 2022
36a4368
Code review updates
mslipper Jan 7, 2022
cebc747
Merge pull request #1991 from ethereum-optimism/inphi/xff
mslipper Jan 7, 2022
a6f578c
Merge remote-tracking branch 'upstream/develop' into feat/bss-multipl…
mslipper Jan 7, 2022
5d3bb98
CR updates
mslipper Jan 7, 2022
94d8320
Merge pull request #1993 from mslipper/feat/bss-multiple-txs
mslipper Jan 7, 2022
04d1fa2
go/batch-submitter: Metrics updates
mslipper Jan 10, 2022
7503084
Merge pull request #1996 from mslipper/feat/bss-metrics
mslipper Jan 10, 2022
57742a0
l2geth: update timestamp logic
tynes Jan 5, 2022
3a77bbc
chore: add changeset
tynes Jan 5, 2022
a0235ec
integration-tests: fix timestamp assertion
tynes Jan 6, 2022
dad6fd9
chore: add changeset for integration-tests
tynes Jan 6, 2022
89eab8f
Merge pull request #1982 from ethereum-optimism/feat/sequencer-timestamp
tynes Jan 10, 2022
025a3c0
go/proxy: Add request/response RPC metrics
Inphi Jan 10, 2022
a2695a5
Merge pull request #1995 from ethereum-optimism/inphi/proxyd-metrics
mslipper Jan 11, 2022
8ddbe23
feat: add BatchPruneCount metric
cfromknecht Jan 6, 2022
3e3c07a
(fix): default address for `call` is now `address(0)`.
indeavr Jan 11, 2022
d27e841
Merge pull request #1997 from cfromknecht/bss-prune-count
mslipper Jan 11, 2022
8c722a0
(integration-tests): Added tests checking msg.sender value of eth_call
indeavr Jan 12, 2022
1bc6898
Merge branch 'ethereum-optimism:develop' into develop
indeavr Jan 13, 2022
6749ab3
Merge pull request #1999 from indeavr/develop
tynes Jan 13, 2022
f7b9883
proxyd: in-memory cache and stubs for immutable RPCs
Inphi Jan 11, 2022
18abe83
casing
Inphi Jan 12, 2022
269769b
add redis cache impl
Inphi Jan 12, 2022
c1720c1
only cache block-dependent RPCs after several confirms
Inphi Jan 13, 2022
c46d04c
a couple stuff
Inphi Jan 13, 2022
8e4b0ee
cleanup
Inphi Jan 13, 2022
d004d45
nit
Inphi Jan 13, 2022
12a59c4
logging
Inphi Jan 13, 2022
daf8db0
add changeset
Inphi Jan 14, 2022
abf5967
use ethclient; fixes
Inphi Jan 14, 2022
67c0b55
httpErr
Inphi Jan 14, 2022
3123fae
err
Inphi Jan 14, 2022
3079a26
Merge pull request #2002 from ethereum-optimism/inphi/proxyd-cache
mslipper Jan 14, 2022
0f5c810
Merge pull request #1910 from ethereum-optimism/sc/l2-provider-scaffold
smartcontracts Jan 14, 2022
7bd5e4f
feat: add GasPriceFromGwei helper in utils package
cfromknecht Jan 13, 2022
5a09c9a
feat: add L1Client iface and mockable L1 backend
cfromknecht Jan 13, 2022
a9870d6
feat: add shared ClearPendingTx impl
cfromknecht Jan 13, 2022
15252dd
feat: enable ClearPendingTx behavior based on config
cfromknecht Jan 13, 2022
5599aed
Merge pull request #2003 from cfromknecht/bss-pending-tx
mslipper Jan 14, 2022
9fe09f7
fix(batch-submitter): clear state root batches
cfromknecht Jan 13, 2022
e5ba9b1
Merge pull request #2006 from cfromknecht/clear-state-batch-pending-tx
cfromknecht Jan 14, 2022
b64628e
feat: add more granular CraftBatchTx method to Driver iface
cfromknecht Jan 14, 2022
11a6a98
feat: consolidate batch_build_time benchmarking code
cfromknecht Jan 14, 2022
961dfe2
feat: only log batch tx size once
cfromknecht Jan 14, 2022
235c7af
Merge pull request #2008 from cfromknecht/bss-craft-then-send-tx
mslipper Jan 14, 2022
980d0dd
go/proxyd: Add musl/gcc to build
mslipper Jan 15, 2022
e634bf2
Merge pull request #2012 from mslipper/bugfix/proxyd-build
mslipper Jan 15, 2022
acfc9d5
fix: file extensions in integration tests
lucadonnoh Jan 16, 2022
3174f03
Merge pull request #2018 from lucadonnoh/develop
smartcontracts Jan 16, 2022
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions .changeset/beige-zoos-roll.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@eth-optimism/integration-tests': patch
---

Updates to support nightly actor tests
5 changes: 5 additions & 0 deletions .changeset/chilled-mayflies-push.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@eth-optimism/proxyd': minor
---

Add request/response payload size metrics to proxyd
5 changes: 5 additions & 0 deletions .changeset/clean-jars-check.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@eth-optimism/data-transport-layer': patch
---

Smaller filter query for searching for L1 start height. This number should be configured so that the search does not need to happen because using a smaller filter will cause it to take too long.
5 changes: 5 additions & 0 deletions .changeset/cold-files-melt.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@eth-optimism/proxyd': minor
---

cache immutable RPC responses in proxyd
5 changes: 5 additions & 0 deletions .changeset/empty-deers-buy.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@eth-optimism/op-exporter': patch
---

Fixes panic caused by version initialized to nil
5 changes: 5 additions & 0 deletions .changeset/fair-eyes-build.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@eth-optimism/proxyd': minor
---

Add X-Forwarded-For header when proxying RPCs on proxyd
7 changes: 7 additions & 0 deletions .changeset/fair-starfishes-admire.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
---
'@eth-optimism/gas-oracle': patch
'@eth-optimism/contracts': patch
'@eth-optimism/data-transport-layer': patch
---

String update to change the system name from OE to Optimism
5 changes: 5 additions & 0 deletions .changeset/fluffy-ghosts-heal.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@eth-optimism/op-exporter': patch
---

Added version metrics
5 changes: 5 additions & 0 deletions .changeset/happy-ears-rhyme.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@eth-optimism/l2geth': patch
---

Implement updated timestamp logic
5 changes: 5 additions & 0 deletions .changeset/kind-poems-happen.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@eth-optimism/l2geth': patch
---

changed the default address to be address(0) in `call`
5 changes: 5 additions & 0 deletions .changeset/mean-llamas-speak.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@eth-optimism/message-relayer': patch
---

Fix docker build
5 changes: 5 additions & 0 deletions .changeset/pink-frogs-report.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@eth-optimism/batch-submitter': patch
---

Properly clear state root batch txs on startup
5 changes: 5 additions & 0 deletions .changeset/shaggy-brooms-shave.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@eth-optimism/contracts': patch
---

Update hardhat task for managing the gas oracle
5 changes: 5 additions & 0 deletions .changeset/silent-keys-hunt.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@eth-optimism/contracts': patch
---

Remove legacy bin/deploy.ts script
5 changes: 5 additions & 0 deletions .changeset/tame-trains-relax.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@eth-optimism/integration-tests': patch
---

Update timestamp assertion for new logic
129 changes: 120 additions & 9 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,38 @@
version: 2.1
orbs:
gcp-gke: circleci/gcp-gke@1.3.0
slack: circleci/slack@4.5.1
slack-fail-post-step: &slack-fail-post-step
post-steps:
- slack/notify:
channel: $SLACK_DEFAULT_CHANNEL
event: fail
custom: |
{
"text": "",
"blocks": [
{
"type": "section",
"text": {
"type": "mrkdwn",
"text": "🔴 Nightly build failed!"
}
},
{
"type": "actions",
"elements": [
{
"type": "button",
"text": {
"type": "plain_text",
"text": "View Job"
},
"url": "${CIRCLE_BUILD_URL}"
}
]
}
]
}
commands:
build-dockerfile:
parameters:
Expand Down Expand Up @@ -78,6 +110,13 @@ jobs:
image-name: integration-tests
target: integration-tests
dockerfile: ./ops/docker/Dockerfile.packages
build-proxyd:
docker:
- image: cimg/base:2021.04
steps:
- build-dockerfile:
image-name: proxyd
dockerfile: ./go/proxyd/Dockerfile
deploy-nightly:
docker:
- image: cimg/base:2021.04
Expand All @@ -101,6 +140,15 @@ jobs:
kubectl rollout restart statefulset nightly-go-batch-submitter --namespace nightly
kubectl rollout restart statefulset nightly-dtl --namespace nightly
kubectl rollout restart deployment nightly-gas-oracle --namespace nightly
kubectl rollout restart deployment edge-proxyd --namespace nightly
notify:
docker:
- image: cimg/base:2021.04
steps:
- run:
name: Success
command: |
echo "Dummy job."


workflows:
Expand All @@ -114,26 +162,89 @@ workflows:
- develop
jobs:
- build-dtl:
context: optimism
context:
- optimism
- slack
<<: *slack-fail-post-step
- build-batch-submitter:
context: optimism
context:
- optimism
- slack
<<: *slack-fail-post-step
- build-deployer:
context: optimism
context:
- optimism
- slack
<<: *slack-fail-post-step
- build-l2geth:
context: optimism
context:
- optimism
- slack
<<: *slack-fail-post-step
- build-gas-oracle:
context: optimism
context:
- optimism
- slack
<<: *slack-fail-post-step
- build-integration-tests:
context: optimism
context:
- optimism
- slack
<<: *slack-fail-post-step
- build-go-batch-submitter:
context: optimism
context:
- optimism
- slack
<<: *slack-fail-post-step
- build-proxyd:
context:
- optimism
- slack
<<: *slack-fail-post-step
- deploy-nightly:
context: optimism
context:
- optimism
- slack
<<: *slack-fail-post-step
requires:
- build-dtl
- build-batch-submitter
- build-go-batch-submitter
- build-deployer
- build-l2geth
- build-gas-oracle
- build-integration-tests
- build-integration-tests
- build-proxyd
- notify:
context: slack
requires:
- deploy-nightly
post-steps:
- slack/notify:
custom: |
{
"text": "",
"blocks": [
{
"type": "section",
"text": {
"type": "mrkdwn",
"text": "✅ Nightly successfully deployed."
}
},
{
"type": "actions",
"elements": [
{
"type": "button",
"text": {
"type": "plain_text",
"text": "View Job"
},
"url": "${CIRCLE_BUILD_URL}"
}
]
}
]
}
event: always
2 changes: 1 addition & 1 deletion .github/workflows/ts-packages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ jobs:
- uses: codecov/codecov-action@v1
with:
files: ./packages/contracts/coverage.json
fail_ci_if_error: false
fail_ci_if_error: true
verbose: true
flags: contracts
- uses: codecov/codecov-action@v1
Expand Down
2 changes: 1 addition & 1 deletion CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ Use the above commands to recompile the packages.

### Building the rest of the system

If you want to run an Optimistic Ethereum node OR **if you want to run the integration tests**, you'll need to build the rest of the system.
If you want to run an Optimism node OR **if you want to run the integration tests**, you'll need to build the rest of the system.

```bash
cd ops
Expand Down
16 changes: 8 additions & 8 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@

## TL;DR

This is the primary place where [Optimism](https://optimism.io) works on stuff related to [Optimistic Ethereum](https://optimistic.etherscan.io/).
This is where [Optimism](https://optimism.io) gets built.

## Documentation

Expand All @@ -31,16 +31,16 @@ Then check out our list of [good first issues](https://github.com/ethereum-optim
<pre>
root
├── <a href="./packages">packages</a>
│ ├── <a href="./packages/contracts">contracts</a>: L1 and L2 smart contracts for Optimistic Ethereum
│ ├── <a href="./packages/core-utils">core-utils</a>: Low-level utilities that make building Optimistic Ethereum easier
│ ├── <a href="./packages/contracts">contracts</a>: L1 and L2 smart contracts for Optimism
│ ├── <a href="./packages/core-utils">core-utils</a>: Low-level utilities that make building Optimism easier
│ ├── <a href="./packages/common-ts">common-ts</a>: Common tools for building apps in TypeScript
│ ├── <a href="./packages/data-transport-layer">data-transport-layer</a>: Service for indexing Optimistic Ethereum-related L1 data
│ ├── <a href="./packages/data-transport-layer">data-transport-layer</a>: Service for indexing Optimism-related L1 data
│ ├── <a href="./packages/batch-submitter">batch-submitter</a>: Service for submitting batches of transactions and results to L1
│ ├── <a href="./packages/message-relayer">message-relayer</a>: Tool for automatically relaying L1<>L2 messages in development
│ └── <a href="./packages/replica-healthcheck">replica-healthcheck</a>: Service for monitoring the health of a replica node
├── <a href="./l2geth">l2geth</a>: Optimistic Ethereum client software, a fork of <a href="https://github.com/ethereum/go-ethereum/tree/v1.9.10">geth v1.9.10</a>
├── <a href="./integration-tests">integration-tests</a>: Various integration tests for an Optimistic Ethereum network
└── <a href="./ops">ops</a>: Tools for running Optimistic Ethereum nodes and networks
├── <a href="./l2geth">l2geth</a>: Optimism client software, a fork of <a href="https://github.com/ethereum/go-ethereum/tree/v1.9.10">geth v1.9.10</a>
├── <a href="./integration-tests">integration-tests</a>: Various integration tests for the Optimism network
└── <a href="./ops">ops</a>: Tools for running Optimism nodes and networks
</pre>

## Branching Model and Releases
Expand All @@ -64,7 +64,7 @@ Please read the linked post if you're planning to make frequent PRs into this re

The `master` branch contains the code for our latest "stable" releases.
Updates from `master` always come from the `develop` branch.
We only ever update the `master` branch when we intend to deploy code within the `develop` to the Optimistic Ethereum mainnet.
We only ever update the `master` branch when we intend to deploy code within the `develop` to the Optimism mainnet.
Our update process takes the form of a PR merging the `develop` branch into the `master` branch.

### The `develop` branch
Expand Down
14 changes: 6 additions & 8 deletions go/batch-submitter/batch_submitter.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ import (
"context"
"crypto/ecdsa"
"fmt"
"math/big"
"net/http"
"os"
"strconv"
Expand All @@ -13,6 +12,7 @@ import (
"github.com/ethereum-optimism/optimism/go/batch-submitter/drivers/proposer"
"github.com/ethereum-optimism/optimism/go/batch-submitter/drivers/sequencer"
"github.com/ethereum-optimism/optimism/go/batch-submitter/txmgr"
"github.com/ethereum-optimism/optimism/go/batch-submitter/utils"
l2ethclient "github.com/ethereum-optimism/optimism/l2geth/ethclient"
"github.com/ethereum/go-ethereum/common"
"github.com/ethereum/go-ethereum/crypto"
Expand Down Expand Up @@ -159,9 +159,9 @@ func NewBatchSubmitter(cfg Config, gitVersion string) (*BatchSubmitter, error) {
}

txManagerConfig := txmgr.Config{
MinGasPrice: gasPriceFromGwei(1),
MaxGasPrice: gasPriceFromGwei(cfg.MaxGasPriceInGwei),
GasRetryIncrement: gasPriceFromGwei(cfg.GasRetryIncrement),
MinGasPrice: utils.GasPriceFromGwei(1),
MaxGasPrice: utils.GasPriceFromGwei(cfg.MaxGasPriceInGwei),
GasRetryIncrement: utils.GasPriceFromGwei(cfg.GasRetryIncrement),
ResubmissionTimeout: cfg.ResubmissionTimeout,
ReceiptQueryInterval: time.Second,
}
Expand All @@ -186,6 +186,7 @@ func NewBatchSubmitter(cfg Config, gitVersion string) (*BatchSubmitter, error) {
Context: ctx,
Driver: batchTxDriver,
PollInterval: cfg.PollInterval,
ClearPendingTx: cfg.ClearPendingTxs,
L1Client: l1Client,
TxManagerConfig: txManagerConfig,
})
Expand All @@ -212,6 +213,7 @@ func NewBatchSubmitter(cfg Config, gitVersion string) (*BatchSubmitter, error) {
Context: ctx,
Driver: batchStateDriver,
PollInterval: cfg.PollInterval,
ClearPendingTx: cfg.ClearPendingTxs,
L1Client: l1Client,
TxManagerConfig: txManagerConfig,
})
Expand Down Expand Up @@ -333,7 +335,3 @@ func traceRateToFloat64(rate time.Duration) float64 {
}
return rate64
}

func gasPriceFromGwei(gasPriceInGwei uint64) *big.Int {
return new(big.Int).SetUint64(gasPriceInGwei * 1e9)
}
Loading