Commit Graph

21 Commits

Author SHA1 Message Date
The Dark Jester
7b99e5ff20 [Fix] M-01 Validate final blob was submitted on finalization (#226)
* Validate final blob was submitted on finalization

* Use new error code in Coordinator

* Use correct name for error
2024-10-31 17:38:52 +01:00
Roman Vaseev
8600745120 Limiting number of concurrent traces API requests for the local stack… (#236)
* Limiting number of concurrent traces API requests for the local stack to avoid occasional OOM-s

* Limiting number of verticles for Traces API node

* Trying out Besu untuned and raising limit per endpoint to 2 for traces

* Trying out Besu untuned and raising limit per endpoint to 2 for traces and Shomei node

* Using besu untuned for arithmetization as well
2024-10-25 11:44:29 +02:00
jonesho
fad0db4fc6 3822 rejected transaction api service (#101)
* feat: first commit for transaction exclusion api service

* feat: removed debug logs and improved params error handling

* fix: jacocoRootReport error

* feat: improved json request param parsings

* feat: added docker container and github workflow pipeline for transaction exclusion api

* feat: added rejection stage in response and use txHash and rejectReason as primary key of tables

* feat: separate database into read and write config and each with dedicated connection

* fix: e2e testing error

* feat: removed redundant commands in Makefile

* feat: updated transaction exclusion api default image tag in compose file

* feat: added metric and change param name from reasonMessage to reason

* feat: added integration and unit tests and use reasonMessage for both request and response

* fix: transaction-exclusion-api unit test

* feat: added e2e tests and remove reasonMessage from get response and redundant codes

* feat: updated README.md and removed abi file

* feat: updated image version of transaction exclusion api service in compose file

* feat: updated README and added more test cases

* feat: updated transaction exclusion api default image tag in compose file

* feat: decoupled transaction exclusion api from coordinator package

* feat: removed unnecessary dependencies to prover client

* feat: moved persistence:db package to jvm-libs

* feat: removed migration file dir location config from transaction exclusion api

* fix: db migration location for fee history integration test

* changed db column name timestamp to reject_timestamp and add dto for ModuleOverflow to remove all jackson dependencies in core module

* feat: rejected transaction dao and config refactoring

* feat: removed repository service and using persistence retryer

* feat: updated transaction exclusion api default image tag in compose file

* feat: updated log and increase retry backoff delay to avoid repetitive error logs

* feat: added support of list request on save method and added dto for RejectedTransaction

* feat: revised gradle.build dependencies

* feat: switch from shadow jar to zipped jar

* feat: updated transaction exclusion api default image tag in compose file

* feat: updated sql and tables and changes for PR comments

* feat: improved log message for duplicate key error

* feat: updated transaction exclusion api default image tag in compose file

* feat: avoid redundant logs on periodic db cleanup

* feat: revised request handlers plus better test assertions on insertion

* fix: test case

* feat: parse save method json request with jackson

* feat: extracted db migrations from the coordinator and transaction-exclusion app

* feat: decoupled coordinator modules from jvm-libs persistence db test module

* feat: updated dockerfile of transaction-exclusion-api

* feat: removed the find check before metric increment on save rejected transaction

* feat: updated docker base image for tx-exclusion-api image buid and queryable window config

* feat: skip migration scripts on read db instance

* feat: updated more percise jvm-libs change filtering on transaction-exclusion-api

* feat: updated coordinator config for geth node l2 gas pricing recipients

* feat: update runners with specific version and removed the use of retry for transaction exclusion api testing

* feat: add integration test for transaction exclusion app

* feat: update local stack docker compose and workflow for transaction exclusion

* feat: add e2e test for transaction exclusion

* feat: skip the sequencer test in transaction exclusion e2e test

* feat: revert sequencer config poa-block-txs-selection-max-time

* feat: remove incorrect comment

* feat: added explicitly assertion if tx exclusion is not defined and simplify the localStackPostgresDbOnly in build.gradle

* feat: remove beforeAll in test suite with it.concurrent

* feat: set coordinator config blob-compressor-version as V1_0_1 explicitly for traces-v2

* feat: update coordinator config test

* feat: change default prefix not to be coordinator specific

* feat: place persistence:db under jvm-libs:generic and fixed conflicts from latest main

* fix: remove dependency to resolve circular dependency issue

* test: switch from localStackPostgresDbOnlyComposeUp to localStackComposeUp

* feat: replace GITHUB_SHA with github.event.pull_request.head.sha in computing commit tag

* feat: update filter change file lists for transaction exclusion api
2024-10-22 15:50:44 +08:00
The Dark Jester
017df93188 [Feat] optimize blob submission data (#209)
* smart-contract: small tweak on validation and consistent naming on params

* use currentL2BlockNumber vs. memory

* cache blobFirstBlockNumber

* optimize blob number validation

* cache snarkhash and finalStateRootHash

* remove redundant checks

* remove block numbers from blob submits

* remove extra space

* address naming considerations

* use updated ABI for V6 LineaRollup

* Use NatSpec for ITokenBridge events and errors (#202)

* Use NatSpec for ITokenBridge events and errors

* pass 1 of NatSpec cleanup

* natspec pass 2

* correct wording on NatSpec

* use correct indexed keyword location

---------

Signed-off-by: The Dark Jester <thedarkjester@users.noreply.github.com>
Co-authored-by: Pedro Novais <1478752+jpnovais@users.noreply.github.com>
2024-10-18 11:13:09 -07:00
Pedro Novais
f53e2d11d4 fix coordinator local overrides file (#199)
* fix coordinator local overrides file
* coordinator: removes broken test
2024-10-16 18:59:10 +01:00
Roman Vaseev
bdd9fb1261 Added a test for traces v2 config (#166)
* Added a test for traces v2 config
2024-10-14 17:07:51 +02:00
Roman Vaseev
d86aa9ab3a Added a separate config to support blob switch without ties to linea … (#151)
* Added a separate config to support blob switch without ties to linea besu switch

* Added a separate config to support blob switch without ties to linea besu switch
2024-10-09 13:07:10 +02:00
Roman Vaseev
ca278a0ae7 Updating tracer (#139)
* Updating tracer

* Increasing size of prover testing job

* Fixed runner for e2e tests

* Bumping postman tests runner size

* Switching back to a tag without a fixed version

---------

Signed-off-by: Roman Vaseev <4833306+Filter94@users.noreply.github.com>
2024-10-08 15:27:37 +02:00
Roman Vaseev
2db07df57f Fixing Sequencer to make it return gas price. Disabling compatibility… (#135)
* Fixing Sequencer to make it return gas price. Disabling compatibility mode for linea_estimateGas

* Fixed config test

* Removing console log
2024-10-03 16:59:55 +02:00
Roman Vaseev
aa440c4da3 Updating Sequencer plugin to accomodate linea_estimateGas fix (#112)
* Updating Sequencer plugin to accomodate linea_estimateGas fix

* Updating tracer plugin as well. Fixing Sequencer plugin configuration.
2024-10-02 22:38:14 +02:00
Pedro Novais
41cec7c602 small e2e CI tweaks (#33)
improve e2e test with dedicated liveness account

Signed-off-by: Pedro Novais <1478752+jpnovais@users.noreply.github.com>
2024-10-01 10:20:49 +01:00
Roman Vaseev
d0e97c171e Coordinator - Allowing endless retries and setting them throughout th… (#89)
* Coordinator - Allowing endless retries and setting them throughout the app
2024-09-25 12:47:37 +02:00
Roman Vaseev
b44d89c756 Tracer update (#93) 2024-09-25 11:47:23 +02:00
Victorien Gauch
961ac9b4d8 feat(3450): complete contracts recommendation (#65)
* Feat/3450 Complete contracts recommendation V2

* fix: linting issue in CoordinatorConfigTest file

---------

Co-authored-by: count-sum <andrei.alexandru@consensys.net>
Co-authored-by: thedarkjester <grant.southey@consensys.net>
2024-09-24 15:53:48 +02:00
Roman Vaseev
77f58ebb5f Updating Traces with readiness endpoint (#87)
* Updating Traces with readiness endpoint
2024-09-24 15:44:42 +02:00
Victorien Gauch
bb93034571 Fix(3879): return verifier error (#55)
* return better error when verifier fails

* feat: add contract version constant in LineaRollup

---------

Signed-off-by: Victorien Gauch <85494462+VGau@users.noreply.github.com>
Co-authored-by: thedarkjester <grant.southey@consensys.net>
Co-authored-by: The Dark Jester <thedarkjester@users.noreply.github.com>
2024-09-20 14:52:15 +02:00
Roman Vaseev
643067ee97 Gas pricing refactoring + transaction sample calculator for legacy gas price estimation (#27)
* Transaction cost calculator implementation and a comparative test.

* Refactored gas pricing config to make it cleaner

* Added DTO objects for easier instantination

* Better type for VariableFeesCalculator configs
2024-09-20 11:30:19 +02:00
Roman Vaseev
32008054bb Trying to use the updated tracer (#46)
* Tracer update
* Fixed permissions issue

---------

Co-authored-by: FlorianHuc <florian.huc@gmail.com>
2024-09-20 08:31:48 +02:00
Pedro Novais
d8af29af3c coordinator: Generic prover client (#3847)
* coordinator: Generic prover client WIP preparation to support prover switch between versions

* coordinator: WIP prover clients use GenericFileBasedProverClient

* coordinator: rename FileBasedProverConfig params

* coordinator: adds tests for GenericFileBasedProverClientTest

* coordinator: removes unnecessary annotation

* coordinator: removes legacy prover clients

* coordinator: small simplification

* coordinator: adds tests for ExecutionProofRequestDataDecorator

* coordinator: removes unused class ProverErrorType.kt

* Revert "coordinator: removes unused class ProverErrorType.kt"

This reverts commit e8ffbfb7a45c7e0e6287d2a0751ba94d0141529b.

* coordinator: naming consistency

* coordinator: adapt Blob coordinator to new prover interface

* coordinator: rename RequestResponse file

* coordinator: adapt to new prover aggregation client interface

* coordinator: adapt to new prover batch execution client interface

* coordinator: remove unnecessary prover client code

* coordinator: naming consistency

* Coordinator prover client v2 routing (#3872)

* coordinator: support for multi-prover

* coordinator: prover client inprove request reuse

* coordinator: small code readability improvement

* coordinator: small code readability improvement

* coordinator: small classes and comment renaming

* improve error handling in app stop

* remove duplicated default argument

* fix typo

* update coordinator image tag

* fix typo and add test assertion

* fix comment

* fix merge on BlobCompressionProofCoordinatorTest
2024-09-04 15:20:33 +01:00
jonesho
f29199e7bf feat: added FinalizedTagUpdater plugin implementation and workflow (#3752)
* feat: added FinalizedTagUpdater plugin implementation and workflow

* feat: implemented finalized block update logic and updated docker image and java package tags

* feat: set finalized-tag-updater version back to 0.0.1 and update coordinator config toml for traces-api-version-v2 as v0.3.0-rc2

* feat: moved jreleases.yml into sub folder

* feat: added JRELEASER_USER_HOME pointing to the sub folder

* feat: updated main.yml for filtering finalized-tag-updater changes

* feat: updated main.yml for filtering finalized-tag-updater changes

* feat: updated github-release.yml for jreleaser arguments

* feat: updated github-release.yml for jreleaser arguments with git root search

* feat: removed unused pipeline file and updated filter change file list and updated traces-api image

* feat: updated e2e test for more reliable way to check the result

* feat: updated asset tag with finalized-tag-updater prefix

* feat: changes for PR review

* feat: updated docker compose file for linea-sequencer plugin update

* feat: added e2e tests for finalized-tag-updater in github pipeline

* feat: updated e2e tests for finalized-tag-updater

* feat: added env var in  e2e test pipeline for finalized-tag-updater test

* feat: used finalized-tag-updater in the default local stack and updated the plugin to better handle errors

* feat: updated sequencer run command

* feat: fixed coordinator unit tests

* feat: changed the finalized tag update e2e test for no finalization on L1 case

* feat: updated error handling in FinalizationUpdatePoller and updated linea-tracer plugin version
2024-08-22 00:42:37 +08:00
Julien Marchand
a001342170 chore: Initial commit
Co-authored-by: Franklin Delehelle <franklin.delehelle@odena.eu>
Co-authored-by: Alexandre Belling <alexandrebelling8@gmail.com>
Co-authored-by: Pedro Novais <jpvnovais@gmail.com>
Co-authored-by: Roman Vaseev <4833306+Filter94@users.noreply.github.com>
Co-authored-by: Bradley Bown <bradbown@googlemail.com>
Co-authored-by: Victorien Gauch <85494462+VGau@users.noreply.github.com>
Co-authored-by: Nikolai Golub <nikolai.golub@consensys.net>
Co-authored-by: The Dark Jester <thedarkjester@users.noreply.github.com>
Co-authored-by: jonesho <81145364+jonesho@users.noreply.github.com>
Co-authored-by: Gaurav Ahuja <gauravahuja9@gmail.com>
Co-authored-by: Azam Soleimanian <49027816+Soleimani193@users.noreply.github.com>
Co-authored-by: Andrei A <andrei.alexandru@consensys.net>
Co-authored-by: Arijit Dutta <37040536+arijitdutta67@users.noreply.github.com>
Co-authored-by: Gautam Botrel <gautam.botrel@gmail.com>
Co-authored-by: Ivo Kubjas <ivo.kubjas@consensys.net>
Co-authored-by: gusiri <dreamerty@postech.ac.kr>
Co-authored-by: FlorianHuc <florian.huc@gmail.com>
Co-authored-by: Arya Tabaie <arya.pourtabatabaie@gmail.com>
Co-authored-by: Julink <julien.fontanel@consensys.net>
Co-authored-by: Bogdan Ursu <bogdanursuoffice@gmail.com>
Co-authored-by: Jakub Trąd <jakubtrad@gmail.com>
Co-authored-by: Alessandro Sforzin <alessandro.sforzin@consensys.net>
Co-authored-by: Olivier Bégassat <olivier.begassat.cours@gmail.com>
Co-authored-by: Steve Huang <97596526+stevehuangc7s@users.noreply.github.com>
Co-authored-by: bkolad <blazejkolad@gmail.com>
Co-authored-by: fadyabuhatoum1 <139905934+fadyabuhatoum1@users.noreply.github.com>
Co-authored-by: Blas Rodriguez Irizar <rodrigblas@gmail.com>
Co-authored-by: Eduardo Andrade <eduardofandrade@gmail.com>
Co-authored-by: Ivo Kubjas <tsimmm@gmail.com>
Co-authored-by: Ludcour <ludovic.courcelas@consensys.net>
Co-authored-by: m4sterbunny <harrie.bickle@consensys.net>
Co-authored-by: Alex Panayi <145478258+alexandrospanayi@users.noreply.github.com>
Co-authored-by: Diana Borbe - ConsenSys <diana.borbe@consensys.net>
Co-authored-by: ThomasPiellard <thomas.piellard@gmail.com>
2024-07-31 18:17:20 +02:00