Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merge upstream v0.6.3 #104

Merged
merged 54 commits into from
Mar 25, 2024
Merged

Merge upstream v0.6.3 #104

merged 54 commits into from
Mar 25, 2024

Commits on Feb 14, 2024

  1. check unsupported precompiles (0xPolygonHermez#3264)

    * check unsupported precompiles
    
    * downgrade prover
    
    * restore solc version
    
    * update SC
    
    * new errors
    
    * fix as workaround to close batch on tx oog (0xPolygonHermez#3271)
    
    Co-authored-by: agnusmor <[email protected]>
    
    * handle executor close batch
    
    * added sanity check closing an empty batch
    
    * change log
    
    ---------
    
    Co-authored-by: agnusmor <[email protected]>
    ToniRamirezM and agnusmor authored Feb 14, 2024
    Configuration menu
    Copy the full SHA
    0171536 View commit details
    Browse the repository at this point in the history
  2. fix RPC closebatch executor error (0xPolygonHermez#3272)

    * fix RPC closebatch executor error
    
    * fix close batch
    
    * fix close batch
    
    * fix close batch
    
    * fix close batch
    
    * fix close batch
    
    ---------
    
    Co-authored-by: agnusmor <[email protected]>
    ToniRamirezM and agnusmor authored Feb 14, 2024
    Configuration menu
    Copy the full SHA
    eb3ae9b View commit details
    Browse the repository at this point in the history
  3. fix executor error closebatch (0xPolygonHermez#3276)

    * fix executor error closebatch
    
    * fix linter
    
    ---------
    
    Co-authored-by: agnusmor <[email protected]>
    joanestebanr and agnusmor authored Feb 14, 2024
    Configuration menu
    Copy the full SHA
    2d76f12 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    20fa91f View commit details
    Browse the repository at this point in the history

Commits on Feb 16, 2024

  1. fix oog2 in internal gas estimation (0xPolygonHermez#3280)

    * fix oog2
    
    * fix oog2 for estimateGas
    
    ---------
    
    Co-authored-by: tclemos <[email protected]>
    ToniRamirezM and tclemos authored Feb 16, 2024
    Configuration menu
    Copy the full SHA
    f968d8b View commit details
    Browse the repository at this point in the history
  2. execution mode (0xPolygonHermez#3285)

    * execution mode
    
    * execution mode
    
    * execution mode
    ToniRamirezM authored Feb 16, 2024
    Configuration menu
    Copy the full SHA
    ca5a2c2 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    0a58f28 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    857be17 View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    5a1782f View commit details
    Browse the repository at this point in the history

Commits on Feb 17, 2024

  1. Configuration menu
    Copy the full SHA
    a7c9c71 View commit details
    Browse the repository at this point in the history
  2. fix deltaTimestamp when debug tx (0xPolygonHermez#3291)

    * fix deltaTimestamp when debug tx
    
    * fix deltaTimeStamp for unsigned txs execution for specific block
    
    * fix deltaTimeStamp for unsigned txs execution for specific block
    
    * Revert "fix deltaTimeStamp for unsigned txs execution for specific block"
    
    This reverts commit eb77e04.
    
    * Revert "fix deltaTimeStamp for unsigned txs execution for specific block"
    
    This reverts commit d2cfa78.
    
    * fix debug trace l1 info tree index and add l1 info tree data
    
    * move MockL1InfoRoot from sequencer to state to allow multiple components to use the same value
    
    ---------
    
    Co-authored-by: agnusmor <[email protected]>
    tclemos and agnusmor authored Feb 17, 2024
    Configuration menu
    Copy the full SHA
    3b25971 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    bfe0166 View commit details
    Browse the repository at this point in the history

Commits on Feb 18, 2024

  1. Configuration menu
    Copy the full SHA
    8cb1842 View commit details
    Browse the repository at this point in the history

Commits on Feb 20, 2024

  1. Configuration menu
    Copy the full SHA
    03a9291 View commit details
    Browse the repository at this point in the history
  2. Feature remove executor errors (0xPolygonHermez#3317)

    * remove executor errors
    
    * readd check
    ToniRamirezM authored Feb 20, 2024
    Configuration menu
    Copy the full SHA
    e13c7ad View commit details
    Browse the repository at this point in the history
  3. support to elderberry fork (0xPolygonHermez#3301)

    * add new sequenceBatches parameters
    * update SMC Elderberry, contract dockers and genesis
    * elderberry seq-sender (0xPolygonHermez#3312)
    * elderberry seq-sender
    * updated prover  image to v5.0.0-RC4
    * increase timeout  to e2e-group7
    
    ---------
    
    Co-authored-by: Toni Ramírez <[email protected]>
    Co-authored-by: dPunisher <[email protected]>
    3 people authored Feb 20, 2024
    Configuration menu
    Copy the full SHA
    5a5a642 View commit details
    Browse the repository at this point in the history

Commits on Feb 21, 2024

  1. update prover image (0xPolygonHermez#3322)

    * update prover image
    
    * udpate prover docker memory limits
    
    * downgrade prover
    
    * upgrade prover
    ToniRamirezM authored Feb 21, 2024
    Configuration menu
    Copy the full SHA
    fabe7ee View commit details
    Browse the repository at this point in the history
  2. Get last l2 block in a batch by batch number (0xPolygonHermez#3335)

    * last l2 block by batch number
    
    * optimization
    
    * change returned err in query
    ToniRamirezM authored Feb 21, 2024
    Configuration menu
    Copy the full SHA
    f0093b0 View commit details
    Browse the repository at this point in the history
  3. add selector for trusted sync to prevent from executing from an old t…

    …rusted node (0xPolygonHermez#3336)
    
    * add selector for trusted sync to check that batches  correspond to the supported forkids
    joanestebanr authored Feb 21, 2024
    Configuration menu
    Copy the full SHA
    c091cfb View commit details
    Browse the repository at this point in the history
  4. synchronizer adopt GetLastL2BlockByBatchNumber to check elderberry ts…

    …tamp baches (0xPolygonHermez#3340)
    
    * synchronizer adopt GetLastL2BlockByBatchNumber to check elderberry bacthes tstamp
    joanestebanr authored Feb 21, 2024
    Configuration menu
    Copy the full SHA
    a86d444 View commit details
    Browse the repository at this point in the history

Commits on Feb 22, 2024

  1. reserved zk counters (0xPolygonHermez#3343)

    * reserved zk counters
    
    * new prover image
    
    * udpate counters names
    
    * udpate counters names
    
    * add gas used to reserved zkCounters
    
    * add ReservedZKCounters to pool trasactions
    ToniRamirezM authored Feb 22, 2024
    Configuration menu
    Copy the full SHA
    5c2fcff View commit details
    Browse the repository at this point in the history
  2. Add reserved zk counters to pool transactions (0xPolygonHermez#3346)

    * add reserved zk counters to pool transaction
    
    * add reserved zk counters to pool transaction
    
    * correct migration test
    ToniRamirezM authored Feb 22, 2024
    Configuration menu
    Copy the full SHA
    a039a0a View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    d218fe2 View commit details
    Browse the repository at this point in the history
  4. Update reserved counters with used in pool db during migration (0xPol…

    …ygonHermez#3352)
    
    * return used if reserved counters are 0
    
    * refactor
    
    * refactor
    ToniRamirezM authored Feb 22, 2024
    Configuration menu
    Copy the full SHA
    b3a1b04 View commit details
    Browse the repository at this point in the history
  5. fix initial sequenced batch event (0xPolygonHermez#3347)

    * fix initial sequenced batch event
    joanestebanr authored Feb 22, 2024
    Configuration menu
    Copy the full SHA
    1bd33f5 View commit details
    Browse the repository at this point in the history

Commits on Feb 23, 2024

  1. Add executor reserved ZK counters (0xPolygonHermez#3348)

    * add executor reserved ZK counters
    
    * update prover image to v5.0.0-RC6
    
    * fix typos
    
    * add check reserved counters when executing L2 block
    
    * remove closeBatch
    
    * update prover image v5.0.0-RC7
    
    * fixes and logs improvements
    
    * update prover image v5.0.0-RC8
    agnusmor authored Feb 23, 2024
    Configuration menu
    Copy the full SHA
    19c6694 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    6aacee4 View commit details
    Browse the repository at this point in the history
  3. to decode ETROG processBatches use ETROG contract (0xPolygonHermez#3360)

    * decode old ETROG processBatches use ETROG contract
    * fix sanity genesis
    joanestebanr authored Feb 23, 2024
    Configuration menu
    Copy the full SHA
    54b7fcd View commit details
    Browse the repository at this point in the history

Commits on Feb 26, 2024

  1. Synchronized inform field state.batch.closing_reason from DB

    * Add reasons to the field `state.batch.closing_reason` (issue 0xPolygonHermez#3243)
    joanestebanr authored Feb 26, 2024
    Configuration menu
    Copy the full SHA
    f08d413 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    92f191d View commit details
    Browse the repository at this point in the history

Commits on Feb 27, 2024

  1. Configuration menu
    Copy the full SHA
    3ab6d44 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    2b70cce View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    cd4c30c View commit details
    Browse the repository at this point in the history
  4. Feature/cherry pick 3370 3374 synchronizer, fix bugs, ReprocessFullBa…

    …tchOnClose and AcceptEmptyClosedBatches (0xPolygonHermez#3384)
    
    * synchronizer accepts empty closed batches from trusted depending on config (0xPolygonHermez#3370)
    
    * accept empty closed batches depending on config
    * if trusted synchronization dont create L2 sync classes
    
    * sync reprocess full batch on close, check GER, and fix minor bugs (0xPolygonHermez#3374)
    
    * sync reprocess full batch on close
    * reduce the of live of batch cache from 1hour to 5min
    * fix reprocess, check virtualBatch before reseting state
    * 0xPolygonHermez#3376 - check GlobalExitRoot before working on a batch
    * update same data as updateWIPBatch do in the cache of batches
    
    * set Synchronizer.L2Synchronization.ReprocessFullBatchOnClose to false
    
    * update documentation
    joanestebanr authored Feb 27, 2024
    Configuration menu
    Copy the full SHA
    fe1dacc View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    4769da0 View commit details
    Browse the repository at this point in the history

Commits on Feb 28, 2024

  1. Configuration menu
    Copy the full SHA
    f7f1809 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    e0cd81e View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    4bd2089 View commit details
    Browse the repository at this point in the history

Commits on Feb 29, 2024

  1. Fix metrics estimatedTxsPerSec division (0xPolygonHermez#3398)

    * fix metrics estimatedTxsPerSec div
    
    * remove unneeded cast
    agnusmor authored Feb 29, 2024
    Configuration menu
    Copy the full SHA
    858edac View commit details
    Browse the repository at this point in the history
  2. Get IM State root from receipt for data stream. (0xPolygonHermez#3400)

    * get im state root from receipt
    
    * get im state root from receipt
    
    * get im state root from receipt
    ToniRamirezM authored Feb 29, 2024
    Configuration menu
    Copy the full SHA
    f4f44b5 View commit details
    Browse the repository at this point in the history
  3. Add gas per second estimation in metrics (0xPolygonHermez#3401)

    * add gas estimation in metrics
    
    * fix linter
    agnusmor authored Feb 29, 2024
    Configuration menu
    Copy the full SHA
    f4dd705 View commit details
    Browse the repository at this point in the history

Commits on Mar 1, 2024

  1. Feature/cherry pick 3375 sync add check l2block hash (0xPolygonHermez…

    …#3406)
    
    * check L2Block hash on closed batch during sync from TrustedNode (0xPolygonHermez#3390)
    joanestebanr authored Mar 1, 2024
    Configuration menu
    Copy the full SHA
    2d93d42 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    fe9b257 View commit details
    Browse the repository at this point in the history

Commits on Mar 7, 2024

  1. Configuration menu
    Copy the full SHA
    1365a55 View commit details
    Browse the repository at this point in the history

Commits on Mar 8, 2024

  1. add log0 debug trace e2e tests (0xPolygonHermez#3422)

    * add log0 debug trace e2e tests
    
    * add log0 debug trace e2e tests
    tclemos authored Mar 8, 2024
    Configuration menu
    Copy the full SHA
    2261ccc View commit details
    Browse the repository at this point in the history
  2. Elderberry blockhash adjustments (0xPolygonHermez#3424)

    * remove intermediate state root from receipts after Etrog
    
    * use receipt state returned by executor instead of checking the RomError
    
    * use receipt status from executor only after Etrog
    
    * fix gasLimit and cumulativeGasUsed for Elderberry txs (0xPolygonHermez#3428)
    
    * keep im state root in db (0xPolygonHermez#3427)
    
    * generate receipt refactor (0xPolygonHermez#3436)
    
    * generate receipt refactor
    
    * update prover image
    
    * downgrade prover image
    
    ---------
    
    Co-authored-by: agnusmor <[email protected]>
    Co-authored-by: Toni Ramírez <[email protected]>
    3 people authored Mar 8, 2024
    Configuration menu
    Copy the full SHA
    21491a8 View commit details
    Browse the repository at this point in the history
  3. update prover to v5.0.6 (0xPolygonHermez#3437)

    * remove intermediate state root from receipts after Etrog
    
    * use receipt state returned by executor instead of checking the RomError
    
    * use receipt status from executor only after Etrog
    
    * fix gasLimit and cumulativeGasUsed for Elderberry txs (0xPolygonHermez#3428)
    
    * keep im state root in db (0xPolygonHermez#3427)
    
    * generate receipt refactor (0xPolygonHermez#3436)
    
    * generate receipt refactor
    
    * update prover image
    
    * downgrade prover image
    
    * update prover
    
    * adapt test
    
    * undo adapt test
    
    * upgrade prover
    
    ---------
    
    Co-authored-by: tclemos <[email protected]>
    Co-authored-by: agnusmor <[email protected]>
    3 people authored Mar 8, 2024
    Configuration menu
    Copy the full SHA
    76cf00f View commit details
    Browse the repository at this point in the history

Commits on Mar 11, 2024

  1. Configuration menu
    Copy the full SHA
    b184e2b View commit details
    Browse the repository at this point in the history

Commits on Mar 12, 2024

  1. L1 Synchronization process check some L2Blocks from TrustedNode (0xPo…

    …lygonHermez#3445)
    
    * L1 Synchronization process check some L2Blocks from TrustedNode
    joanestebanr authored Mar 12, 2024
    Configuration menu
    Copy the full SHA
    393d47f View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    5361315 View commit details
    Browse the repository at this point in the history

Commits on Mar 13, 2024

  1. Synchronizer accept forkids that are the same as in database (0xPolyg…

    …onHermez#3452)
    
    * 0xPolygonHermez#3451 accept same forkid from L1
    * if same forkid recived and is the last one and same FromBatchNumber update blockNumber
    joanestebanr authored Mar 13, 2024
    Configuration menu
    Copy the full SHA
    8ffd1dc View commit details
    Browse the repository at this point in the history

Commits on Mar 15, 2024

  1. Configuration menu
    Copy the full SHA
    b65af69 View commit details
    Browse the repository at this point in the history

Commits on Mar 22, 2024

  1. Configuration menu
    Copy the full SHA
    04cc024 View commit details
    Browse the repository at this point in the history
  2. Update diff

    Stefan-Ethernal committed Mar 22, 2024
    Configuration menu
    Copy the full SHA
    a4aca2d View commit details
    Browse the repository at this point in the history