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

Testnet 24 #4001

Merged
merged 81 commits into from
Jul 4, 2023
Merged

Testnet 24 #4001

merged 81 commits into from
Jul 4, 2023

Conversation

AurelienFT
Copy link
Contributor

No description provided.

AurelienFT and others added 30 commits May 30, 2023 09:58
* 1st step to have massa_db split between exports and worker

* Create MassaDBController trait

* Implement MassaDBController for MassaDB

* Added read function to MassaDBController

* Started cleaning up build errors - not finished

* Implemented more trait methods, cleaned a bit

Still has lifetime issues and some trait methods missing, e.g. for bootstrap

* Fixed build errors

* Fix after rebase on testnet24

* Fix clippy warnings

* Simplified lifetime definitions

* Added doc comments

* Updated doc comments for get_batch and get_versioning_batch

* In pos-exports, put the massa-db-worker as a dev-dependency instead of optional dependancy
Make MassaDbLsmtree and RawMassaDB fields pub
* Initial rework of get_batch_to_stream and get_versioning_batch_to_stream

* Updated write_batch_bootstrap_client and server cursors' logic
* Prevent coin transfer to SC addresses

* minor corrections
* Change the existing SCAddress test to match the address type.

* fmt fix
* fix args check on
wallet_get_public_key
wallet_get_secret_key
wallet_add_secret_keys
wallet_remove_addresses
node_start_staking
node_stop_staking

* clippy use is_empty insted of < 1

---------

Co-authored-by: modship <yeskinokay@gmail.com>
* Test for when bs-client doesn't send complete message

* self-review
* Cause bootstrap event-loop to log error and continue instead of exit

* Clarify the context of an error when polling for a connection
* Change byte bandwidth to u64

* Limiter-wrap the streams, but don't actually limit

* Hard-code the stream limits

* Limit according to config

* Test that limiting works

* Refine test asserts

* Fix peer test ports

* Self-review

* Update to stream-limiter 3.0.0

* Clear clippy lint

* Bump stearm_limiter dependency

* Merge in binder tests manually from testnet_24

* Make bandwidth limits bi-directional

* Make timing tests serial.

* Construct limiter with a 1s window

* Account for windows taking longer in the bandwidth limit test

* Fix undetected conditional-compilation typo

* Account for macos being slow

* Be consistent with millis_limit
* Add regression test for #3932

* Self-review
* Remove the Option wrapper around listener stopper and correct errors

* De-trait the poll-component of the listener to make directly mockable

* Use the new mock-structure in tests
* Update version check

* fmt
* Remove versioning of Hash computations, only hash with XOR

* cargo fmt fixes
* Optim denunciation pool cache cleanup

* Cargo clippy pass

* Compute the Denunciation index directly in cleanup_cache function

* Check against expect results in cleanup cache unit test

---------

Co-authored-by: sydhds <sd@massa.net>
* Fix constants

* Fix test
Leo-Besancon and others added 23 commits June 30, 2023 19:18
* add state fingerprint in api

* move tuple hashing to hash structs

* remvoe kv

* add comment on fingerprint
…4169)

* Fix mem leak in versioning stats + only update states if not final

* Introduce BlockInfo to avoid a read lock from Storage

* Do not separate db writes

* Use as many counters as block considered in versioning stats

* Cargo clippy pass

* Add missing imports

* Remove useless comment

---------

Co-authored-by: sydhds <sydhds@gmail.com>
* Use Ratio instead of Amount for versioning threshold

* Use ratio instead of pourcentage

* Fix versioning unit tests compilation

---------

Co-authored-by: sydhds <sd@massa.net>
Signed-off-by: Litchi Pi <litchi.pi@proton.me>
Signed-off-by: Litchi Pi <litchi.pi@proton.me>
Signed-off-by: Litchi Pi <litchi.pi@proton.me>
Signed-off-by: Litchi Pi <litchi.pi@proton.me>
Signed-off-by: Litchi Pi <litchi.pi@proton.me>
Signed-off-by: Litchi Pi <litchi.pi@proton.me>
Use new version of PeerNet with the `stream_limiter` set
* Harden block handler (Versioning)

* Use Option for block header announced version

* Still update versioning stats even if announced network version is None

* Harden block handler (Versioning)

* Use Option for block header announced version

* Still update versioning stats even if announced network version is None

* Rework user warning (to update its node software)

* Move warn ratio into config.toml

* Fix cfg clippy.

---------

Authored-by: sydhds <sd@massa.net>
* Keccak256 and EVM verify

* Update lock

* Clippy update

---------
@AurelienFT AurelienFT marked this pull request as ready for review July 4, 2023 12:28
@AurelienFT AurelienFT requested a review from Leo-Besancon July 4, 2023 12:33
@AurelienFT
Copy link
Contributor Author

bors merge

@bors
Copy link
Contributor

bors bot commented Jul 4, 2023

Build succeeded!

The publicly hosted instance of bors-ng is deprecated and will go away soon.

If you want to self-host your own instance, instructions are here.
For more help, visit the forum.

If you want to switch to GitHub's built-in merge queue, visit their help page.

@bors bors bot merged commit 5a28007 into main Jul 4, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

9 participants