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 MAIN.2.5 #4713

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

Mainnet update MAIN.2.5 #4713

wants to merge 67 commits into from

Conversation

Leo-Besancon
Copy link
Collaborator

@Leo-Besancon Leo-Besancon commented Jun 18, 2024

Will be unblocked once every breaking change has been:

  • Merged to this branch
  • Versionned using Massa Improvement Proposal (MIP) system

@Leo-Besancon Leo-Besancon added the blocked Issues that can't be done for now. label Jun 18, 2024
Leo-Besancon and others added 6 commits July 17, 2024 11:40
* Improve async message checks

* Change checks for async messages

* Add unit tests
…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
* fix open rpc spec (#4716)

* Add eliminated_new_messages in eliminated_msg

---------

Co-authored-by: Modship <[email protected]>
Leo-Besancon and others added 20 commits July 23, 2024 12:05
* 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]>
* 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]>
* Fix amount_remaining_to_slash_2 calculation

* Rename slashed_coins and calculation to improve readability

* Fix total_slashed_coins to return value
* Fix bad LedgerChanges::Delete handling

* Avoid too much code duplication

* Update ledger_db.rs

* Fix check
* 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]>
* Update rust version to 1.81

* Cargo clippy & fmt pass

* Cargo clippy & fmt pass 2

* Cargo clippy & fmt pass 3

* Remove commented code
* 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
* Add typos config file

* Fix typo errors

* Add typos to github CI

* Cargo fmt pass

* More typo fixes
* Fix SlotIndexPosition from Future to Past in case slots_since returns an error

* Update ci.yml
…nciations (#4735)

* Improve handling of HistorySearchResult

* Fix CI
* Update ASC trigger comment

* Add comment for ledger entry deletions

* fmt
…4744)

      * Fix join error message (was inconsistent with: VM controller thread)

* Cargo fmt pass
@Leo-Besancon Leo-Besancon changed the title Mainnet update 2.3 Mainnet update MAIN.2.4 Nov 19, 2024
* Delete bootstrap_whitelist.json

* Add bootstrap_whitelist file for tests

* Use TempFile instead of hardcoded whitelist test file
@Leo-Besancon Leo-Besancon changed the title Mainnet update MAIN.2.4 Mainnet update MAIN.2.5 Nov 21, 2024
Leo-Besancon and others added 24 commits November 22, 2024 13:25
* Update inaccurate error message

* Cargo fmt
Signed-off-by: Jean-François <[email protected]>
* Fix execution_trace_nested TU

* Update comment
* Fix async message updates and add unit test

* Cargo fmt pass

* Cargo clippy fixes

* Cargo fmt pass

---------

Co-authored-by: AurelienFT <[email protected]>
Co-authored-by: Damir Vodenicarevic <[email protected]>
* Allow transfers to SC

* Add unit test for 4 scenarios
* Add massa event cache crate

* Add event cache controller into massa execution

* Cargo fmt

* Add event cache config in masa-node

* Minor fixes

* Cargo clippy fixes

* Cargo clippy fixes

* Add limits & security checks

* Add controller + manager

* Cargo fmt pass

* Fix check/clippy with --all-targets

* Better event cache clear at startup && better filtering

* Rename to config to max_call_stack_length

* Improve event cache filtering

* Avoid lock contention in controller::get_filtered_sc_output_events

* Improve comment

* Add query limit

* Add tick delay in event cache writer thread

* Use per address / operation id / is_error counters

* Cargo fmt

* typos fixes

* Cargo clippy fixes for tests

* Cargo fmt

* Add mock expectations + impl

* Cargo clippy for TU fixes

* Use MAX_EVENT_PER_OPERATION constant

* Unit test the filter optimisations

* Add more doc

* Cargo clippy fixes

* Use ..Default::default in TU

* Cargo clippy fix

* Use scope

* Use scope 2

* Remove tick_delay + directly mem::take struct

* Add tu for counter removal

* Add KeyKind in KeyBuilder

* Wait for condvar in wait_loop_event

* Removed unused lib

* Condvar wait fix

* Truncate event message in case of error
* fetch_message now returns NoInfo if message_id cannot be found

* Add not for returning HistorySearchResult::Present
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
blocked Issues that can't be done for now.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants