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

Mainnet update 2.3 #4713

Draft
wants to merge 35 commits into
base: main
Choose a base branch
from
Draft

Mainnet update 2.3 #4713

wants to merge 35 commits into from

Commits on Jul 17, 2024

  1. Asc message execution - requery message bytecode after each message e…

    …xecution (#4710)
    
    * Requery bytecode
    
    * cargo fmt
    Leo-Besancon committed Jul 17, 2024
    Configuration menu
    Copy the full SHA
    19d20a8 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    dadb752 View commit details
    Browse the repository at this point in the history
  3. Improve async message checks (#4706)

    * Improve async message checks
    
    * Change checks for async messages
    
    * Add unit tests
    Leo-Besancon committed Jul 17, 2024
    Configuration menu
    Copy the full SHA
    a6b46f0 View commit details
    Browse the repository at this point in the history
  4. Fix ledger change to take into account cancelled message balance chan…

    …ge (#4715)
    
    * Take again the speculative changes after async message cancellation
    
    * use .apply() to merge the two LedgerChanges
    
    * Fix: we cannot combine two ledger changes with apply
    
    * avoid cloning the changes
    
    * Remove comment
    Leo-Besancon committed Jul 17, 2024
    Configuration menu
    Copy the full SHA
    bfb0e93 View commit details
    Browse the repository at this point in the history
  5. Fix async msg same slot (#4718)

    * fix open rpc spec (#4716)
    
    * Add eliminated_new_messages in eliminated_msg
    
    ---------
    
    Co-authored-by: Modship <[email protected]>
    Leo-Besancon and modship committed Jul 17, 2024
    Configuration menu
    Copy the full SHA
    88823b8 View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    aa7efcf View commit details
    Browse the repository at this point in the history

Commits on Jul 23, 2024

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

Commits on Aug 1, 2024

  1. Configuration menu
    Copy the full SHA
    5f9f2a7 View commit details
    Browse the repository at this point in the history
  2. Consistent expiry period for async message and block operations (#4722)

    * Asc message execution - requery message bytecode after each message execution (#4710)
    
    * Requery bytecode
    
    * cargo fmt
    
    * fix call stack inconsistency (#4709)
    
    * Improve async message checks (#4706)
    
    * Improve async message checks
    
    * Change checks for async messages
    
    * Add unit tests
    
    * Fix ledger change to take into account cancelled message balance change (#4715)
    
    * Take again the speculative changes after async message cancellation
    
    * use .apply() to merge the two LedgerChanges
    
    * Fix: we cannot combine two ledger changes with apply
    
    * avoid cloning the changes
    
    * Remove comment
    
    * Fix async msg same slot (#4718)
    
    * fix open rpc spec (#4716)
    
    * Add eliminated_new_messages in eliminated_msg
    
    ---------
    
    Co-authored-by: Modship <[email protected]>
    
    * Consistent expiry period for async message and block operations
    
    * Update message validity for expiration
    
    * Minor comment fix
    
    ---------
    
    Co-authored-by: Leo-Besancon <[email protected]>
    Co-authored-by: Modship <[email protected]>
    3 people authored Aug 1, 2024
    Configuration menu
    Copy the full SHA
    736a9ed View commit details
    Browse the repository at this point in the history
  3. Update ci.yml

    Leo-Besancon committed Aug 1, 2024
    Configuration menu
    Copy the full SHA
    6628fff View commit details
    Browse the repository at this point in the history
  4. fmt

    Leo-Besancon committed Aug 1, 2024
    Configuration menu
    Copy the full SHA
    1f2c6be View commit details
    Browse the repository at this point in the history
  5. Fixe issue with fees (#4734)

    * fix fees
    
    * Update test_rewards execution test
    
    * Update test with updated reward formula
    
    * Update ci.yml
    
    * revert test change
    
    * Rm dbg and create const value
    
    * fmt
    
    ---------
    
    Co-authored-by: Leo-Besancon <[email protected]>
    damip and Leo-Besancon authored Aug 1, 2024
    Configuration menu
    Copy the full SHA
    2d6e1ff View commit details
    Browse the repository at this point in the history

Commits on Aug 2, 2024

  1. Fix amount remaining to slash 2 (#4733)

    * Fix amount_remaining_to_slash_2 calculation
    
    * Rename slashed_coins and calculation to improve readability
    
    * Fix total_slashed_coins to return value
    Leo-Besancon authored Aug 2, 2024
    Configuration menu
    Copy the full SHA
    261c44f View commit details
    Browse the repository at this point in the history
  2. Fix wrong LedgerChanges::Delete handling (#4737)

    * Fix bad LedgerChanges::Delete handling
    
    * Avoid too much code duplication
    
    * Update ledger_db.rs
    
    * Fix check
    Leo-Besancon authored Aug 2, 2024
    Configuration menu
    Copy the full SHA
    ac14924 View commit details
    Browse the repository at this point in the history

Commits on Sep 23, 2024

  1. Add runtime condom middleware (#4741)

    * Use CondomLimits struct
    * Apply limits to wasm modules
    * Add max_runtime_module_exports
    * update runtime and serde_yaml
    * Fix outdated UT
    
    ---------
    
    Co-authored-by: Leo-Besancon <[email protected]>
    Co-authored-by: Jean-François <[email protected]>
    
    Signed-off-by: Jean-François <[email protected]>
    Leo-Besancon authored Sep 23, 2024
    Configuration menu
    Copy the full SHA
    da539b1 View commit details
    Browse the repository at this point in the history

Commits on Sep 30, 2024

  1. Update rust version to 1.81 (#4750)

    * Update rust version to 1.81
    
    * Cargo clippy & fmt pass
    
    * Cargo clippy & fmt pass 2
    
    * Cargo clippy & fmt pass 3
    
    * Remove commented code
    sydhds authored Sep 30, 2024
    Configuration menu
    Copy the full SHA
    149a6e1 View commit details
    Browse the repository at this point in the history

Commits on Oct 1, 2024

  1. Update actions/checkout to v4 (#4751)

    * Update actions/checkout to v4
    
    * Use dtolnay rust action instead of deprecated action-rs
    
    * Use dtolnay rust action (2)
    
    * Use dtolnay rust action (3)
    
    * Update JamesIves action for ci doc
    sydhds authored Oct 1, 2024
    Configuration menu
    Copy the full SHA
    6990fe6 View commit details
    Browse the repository at this point in the history
  2. Add typos config file (#4753)

    * Add typos config file
    
    * Fix typo errors
    
    * Add typos to github CI
    
    * Cargo fmt pass
    
    * More typo fixes
    sydhds authored Oct 1, 2024
    Configuration menu
    Copy the full SHA
    10e439a View commit details
    Browse the repository at this point in the history

Commits on Oct 2, 2024

  1. Fix slot index position status (#4736)

    * Fix SlotIndexPosition from Future to Past in case slots_since returns an error
    
    * Update ci.yml
    Leo-Besancon authored and sydhds committed Oct 2, 2024
    Configuration menu
    Copy the full SHA
    b6b8fa6 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    8c32b89 View commit details
    Browse the repository at this point in the history
  3. Improve handling of HistorySearchResult for fetched executed_ops/denu…

    …nciations (#4735)
    
    * Improve handling of HistorySearchResult
    
    * Fix CI
    Leo-Besancon authored and sydhds committed Oct 2, 2024
    Configuration menu
    Copy the full SHA
    2d94edd View commit details
    Browse the repository at this point in the history
  4. Update ASC trigger comment (#4740)

    * Update ASC trigger comment
    
    * Add comment for ledger entry deletions
    
    * fmt
    Leo-Besancon authored and sydhds committed Oct 2, 2024
    Configuration menu
    Copy the full SHA
    d98df3b View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    8612838 View commit details
    Browse the repository at this point in the history
  6. Cargo fmt pass

    sydhds committed Oct 2, 2024
    Configuration menu
    Copy the full SHA
    f29a0b3 View commit details
    Browse the repository at this point in the history
  7. Fix join error message (was inconsistent with: VM controller thread) (#…

    …4744)
    
          * Fix join error message (was inconsistent with: VM controller thread)
    
    * Cargo fmt pass
    sydhds authored Oct 2, 2024
    Configuration menu
    Copy the full SHA
    cca6d89 View commit details
    Browse the repository at this point in the history
  8. Configuration menu
    Copy the full SHA
    2664915 View commit details
    Browse the repository at this point in the history

Commits on Oct 8, 2024

  1. Update tonic to version 0.12.3 and jsonrpsee to 0.24 (#4759)

    * Update tonic to version 0.12.3 and jsonrpsee to 0.24
    
    * Cargo fmt pass
    
    * Test compilation fixes
    
    * Set prost as a workspace dependency (will be easier to later upgrade
    
    * Fix massa-api tests
    
    * Cargo fmt pass
    
    * Update jsonrpsee to 0.24.6
    
    * Remove mut for builder
    
    * Move dev local dependencies (commented)
    
    * Change massa-sc-runtime & massa-proto-rs branches
    sydhds authored Oct 8, 2024
    Configuration menu
    Copy the full SHA
    99ce8b7 View commit details
    Browse the repository at this point in the history

Commits on Oct 9, 2024

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

Commits on Oct 10, 2024

  1. Add missing default gas cost for some abis (#4761)

    * Add missing default gas cost for some abis
    
    * Add xtask check gas cost definitions
    
    * Update massa-sc-runtime in Cargo.lock
    
    * Update massa-sc-runtime in Cargo.lock - round 2
    
    * Add eclude list in xtask check_gas_cost_definitions
    
    * Cargo fmt pass
    sydhds authored Oct 10, 2024
    Configuration menu
    Copy the full SHA
    ca70988 View commit details
    Browse the repository at this point in the history

Commits on Oct 11, 2024

  1. Add additional verification for v & s value in evm_signature_verify (#…

    …4762)
    
    * Add additional verification for v & s value in evm_signature_verify
    
    * Cargo fmt pass
    
    * Add additional verification for v & s value in evm_get_pubkey_from_signature
    
    * Cargo fmt pass
    
    * Isolate some tests
    
    * Cargo clippy fixes
    
    * Reject signature if signature.s is high order
    sydhds authored Oct 11, 2024
    Configuration menu
    Copy the full SHA
    3f59fd9 View commit details
    Browse the repository at this point in the history

Commits on Oct 14, 2024

  1. Remove wasm_gas_costs.json and used a constant value for wasm operator (

    #4763)
    
    * Remove wasm_gas_costs.json and used a constant value for wasm operator
    
    * Cargo fmt pass
    
    * Update massa-sc-runtime dependency
    sydhds authored Oct 14, 2024
    Configuration menu
    Copy the full SHA
    b616bda View commit details
    Browse the repository at this point in the history

Commits on Oct 15, 2024

  1. Configuration menu
    Copy the full SHA
    ecf7565 View commit details
    Browse the repository at this point in the history
  2. Cargo clippy fix

    Leo-Besancon committed Oct 15, 2024
    Configuration menu
    Copy the full SHA
    b691160 View commit details
    Browse the repository at this point in the history

Commits on Oct 16, 2024

  1. Add SC recursion limit (#4729)

    * Asc message execution - requery message bytecode after each message execution (#4710)
    
    * Requery bytecode
    
    * cargo fmt
    
    * fix call stack inconsistency (#4709)
    
    * Improve async message checks (#4706)
    
    * Improve async message checks
    
    * Change checks for async messages
    
    * Add unit tests
    
    * Fix ledger change to take into account cancelled message balance change (#4715)
    
    * Take again the speculative changes after async message cancellation
    
    * use .apply() to merge the two LedgerChanges
    
    * Fix: we cannot combine two ledger changes with apply
    
    * avoid cloning the changes
    
    * Remove comment
    
    * Fix async msg same slot (#4718)
    
    * fix open rpc spec (#4716)
    
    * Add eliminated_new_messages in eliminated_msg
    
    ---------
    
    Co-authored-by: Modship <[email protected]>
    
    * Add initial code for recursion limit
    
    * Latest runtime
    
    * Run CI on PRs based on mainnet_2_3
    
    * fmt
    
    * Fix config and add UTs
    
    * Update scenarios_mandatories.rs
    
    * Review comments (CI for all branches starting with "mainnet_" + comment)
    
    * Update ci.yml
    
    * Remove manual increment / decrement in interface implementation
    
    * fmt + update sc_runtime + fix warning
    
    * Update test
    
    * Update constants.rs
    
    * Updated execution config for tests
    
    * Updated usize -> u16 for recursion counter and limits
    
    * Update test comments
    
    * Add comments regarding the needs of this limits
    
    * Update sc-runtime branch
    
    ---------
    
    Co-authored-by: Modship <[email protected]>
    Leo-Besancon and modship authored Oct 16, 2024
    Configuration menu
    Copy the full SHA
    3833083 View commit details
    Browse the repository at this point in the history