Commit Graph

460 Commits

Author SHA1 Message Date
Felipe Andrade
ab7b570df0 address mr rabbits concerns part ii 2023-12-12 17:33:35 -08:00
Felipe Andrade
80ba367c85 address rabbits concerns 2023-12-12 16:43:42 -08:00
Felipe Andrade
6cc09a5fa6 chore(ufm): update deps 2023-12-12 16:23:39 -08:00
Zach Howard
678577a389 proxyd: adds test case, docs for allowing pre-eip155 txns 2023-12-12 13:04:52 -05:00
Chomtana
a6a84c0078 fix: unmarshaling -> unmarshalling on other files 2023-12-11 23:06:56 +07:00
Matthew Slipper
e84a39a28f proxyd: Delete bad test
This test was originally checking for a panic in the websocket code. However, we have since re-architected this code and have coverage for this issue elsewhere. Therefore, this test is now superfluous and can be removed. It causes a lot of spam in the logs, and makes debugging other tests harder.
2023-12-07 14:57:17 -07:00
Felipe Andrade
2ad02172ef fix(ufm): gracefully handle failed tx creation 2023-12-06 18:00:49 -08:00
felipe
fef2f0f965 Merge pull request #7977 from danyalprout/proxyd-weighting
feat(proxyd): add weighting feature to node selection
2023-11-11 09:56:01 +00:00
kaliubuntu0206
adb397c21b proxyd: add example block range regulation params (#8039) 2023-11-11 01:54:25 -08:00
Danyal Prout
7175c46a00 feat(proxyd): ability to add additional headers to backend requests (#8134) 2023-11-11 01:52:09 -08:00
Danyal Prout
20dd9feaf7 Weighted shuffle list 2023-11-08 20:23:49 -06:00
Danyal Prout
2ac9981e00 Code review feedback 2023-11-05 20:07:39 -06:00
Danyal Prout
bd7bd24e66 Review feedback 2023-11-05 14:20:49 -06:00
Danyal Prout
a5a4a5108d proxyd: add weighting feature to node selection 2023-11-05 14:20:49 -06:00
Danyal Prout
798878e455 proxyd: configurable IP rate limit header 2023-11-02 14:38:04 -05:00
Felipe Andrade
22b7237389 feat(proxyd): support eip-1898 in tag rewritting 2023-10-27 15:38:20 -07:00
protolambda
92058943d8 ops: buildx bake and fix ci docker publish/release 2023-10-25 16:00:26 +02:00
felipe
c4c88f4307 fix(proxyd): alpine version should be 3.18 (#7781) 2023-10-21 14:33:42 -07:00
Matthew Slipper
0e376f5590 Merge pull request #7779 from ethereum-optimism/feat/enable-pprof
proxyd: handle oversize requests/backend responses
2023-10-21 15:27:23 -06:00
Felipe Andrade
7abc329946 go get -u all 2023-10-21 14:20:10 -07:00
Matthew Slipper
4ed4ae99ba proxyd: Handle oversize requests/backend responses
Under certain conditions, users could provide batch requests that cause the upstream Geth nodes to return very large responses. These responses were being handled improperly, and rather than returning an error were being truncated and leading to backends being marked as offline. This issue extended to large client requests as well.

This PR also enables `pprof` on proxyd, which was used to debug this problem.
2023-10-21 15:18:53 -06:00
Matthew Slipper
599ab483ff Merge pull request #7780 from ethereum-optimism/felipe/proxyd-update-deps-go-1.21
chore(proxyd): bump go to 1.21 and update dependencies
2023-10-21 15:17:32 -06:00
Felipe Andrade
a064fe06c1 chore(proxyd): bump go to 1.21 and update dependencies 2023-10-21 13:22:29 -07:00
Danyal Prout
a3e2b12363 Remove space after comma 2023-10-19 21:02:12 -05:00
felipe andrade
2e2259a0d9 Merge pull request #7754 from ethereum-optimism/felipe/avoid-caching-empty-get-raw-receipts
feat(proxyd): avoid caching debug_getRawReceipts responses with 0 receipts
2023-10-19 20:50:30 +00:00
Felipe Andrade
fed302dd19 fix cache_test 2023-10-19 12:58:54 -07:00
Felipe Andrade
56df3a6892 add x-served-by header 2023-10-19 12:48:03 -07:00
Felipe Andrade
c82a9a08de fix consensus tests 2023-10-19 12:32:39 -07:00
Felipe Andrade
7986edeb26 betterer tests 2023-10-19 11:46:24 -07:00
Felipe Andrade
ca70e3a37f mod 2023-10-19 11:32:46 -07:00
Felipe Andrade
42b2f6db61 feat(proxyd): avoid caching debug_getRawReceipts responses with 0 receipts 2023-10-19 11:29:24 -07:00
Felipe Andrade
a7c80bfae9 feat(proxyd): add debug tools to image 2023-10-19 10:35:32 -07:00
felipe andrade
4e0100bbe9 feat(proxyd): make max batch size hard limit 1000 and default 100 (#7719)
* feat: make max batch size hard limit 1000 and default 100

* nit: rename const
2023-10-17 13:19:13 -07:00
felipe andrade
9e1c96e9c5 add debug tools to image (#7647) 2023-10-12 10:55:14 -07:00
dependabot[bot]
d866a84f63 build(deps): bump golang.org/x/net from 0.12.0 to 0.17.0 in /op-ufm
Bumps [golang.org/x/net](https://github.com/golang/net) from 0.12.0 to 0.17.0.
- [Commits](https://github.com/golang/net/compare/v0.12.0...v0.17.0)

---
updated-dependencies:
- dependency-name: golang.org/x/net
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-10-11 21:00:11 +00:00
felipe andrade
609bb4e4f9 chore(proxyd): remove -race from make tests (#7573) 2023-10-05 14:42:40 -07:00
dependabot[bot]
94ff5c5765 build(deps): bump github.com/consensys/gnark-crypto in /op-ufm
Bumps [github.com/consensys/gnark-crypto](https://github.com/consensys/gnark-crypto) from 0.10.0 to 0.12.0.
- [Release notes](https://github.com/consensys/gnark-crypto/releases)
- [Changelog](https://github.com/Consensys/gnark-crypto/blob/master/CHANGELOG.md)
- [Commits](https://github.com/consensys/gnark-crypto/compare/v0.10.0...v0.12.0)

---
updated-dependencies:
- dependency-name: github.com/consensys/gnark-crypto
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-10-02 22:24:56 +00:00
dependabot[bot]
bc6f5d75aa build(deps): bump github.com/btcsuite/btcd in /proxyd
Bumps [github.com/btcsuite/btcd](https://github.com/btcsuite/btcd) from 0.22.0-beta to 0.23.2.
- [Release notes](https://github.com/btcsuite/btcd/releases)
- [Changelog](https://github.com/btcsuite/btcd/blob/master/CHANGES)
- [Commits](https://github.com/btcsuite/btcd/compare/v0.22.0-beta...v0.23.2)

---
updated-dependencies:
- dependency-name: github.com/btcsuite/btcd
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-10-02 22:24:01 +00:00
dependabot[bot]
89065e45bd build(deps): bump github.com/consensys/gnark-crypto in /proxyd
Bumps [github.com/consensys/gnark-crypto](https://github.com/consensys/gnark-crypto) from 0.10.0 to 0.12.0.
- [Release notes](https://github.com/consensys/gnark-crypto/releases)
- [Changelog](https://github.com/Consensys/gnark-crypto/blob/master/CHANGELOG.md)
- [Commits](https://github.com/consensys/gnark-crypto/compare/v0.10.0...v0.12.0)

---
updated-dependencies:
- dependency-name: github.com/consensys/gnark-crypto
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-10-02 22:10:02 +00:00
Sabnock01
6ba8346f45 modify external files 2023-09-26 23:11:06 -05:00
Michael de Hoog
d527545645 proxyd: avoid banning a backend that is a forced candidate (#7275)
* Add consensus configuration option to never ban a backend

* Fix panic

* Remove additional flag, use `consensus_forced_candidate` instead
2023-09-25 21:12:55 -07:00
Mark Tyneway
2adcddf574 deps: golang 1.21
Updates the go version used to 1.21
2023-09-21 08:47:33 -07:00
OptimismBot
31bfc1114a Merge pull request #7252 from ethereum-optimism/felipe/proxyd-ha
feat(proxyd): high availability
2023-09-18 18:06:18 -04:00
Felipe Andrade
86cf9547e7 nits 2023-09-15 12:33:28 -07:00
Felipe Andrade
3911deccbd nits 2023-09-15 11:57:57 -07:00
Felipe Andrade
fa1912f594 release lock on errors, validate if local is behind remote before acquiring the lock 2023-09-14 15:58:36 -07:00
Felipe Andrade
fb7d24ce0c semgrep 2023-09-14 12:47:25 -07:00
Felipe Andrade
c200f2f8e3 revert weird comment replaces 2023-09-14 12:43:09 -07:00
Felipe Andrade
3e6f70c3fc feat(proxyd): high availability 2023-09-14 12:36:24 -07:00
OptimismBot
fe0728c950 Merge pull request #7170 from ethereum-optimism/dependabot/go_modules/proxyd/github.com/supranational/blst-0.3.11
build(deps): bump github.com/supranational/blst from 0.3.11-0.20230406105308-e9dfc5ee724b to 0.3.11 in /proxyd
2023-09-10 17:50:35 -04:00