-
Notifications
You must be signed in to change notification settings - Fork 711
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
Testnet 24 #4001
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
* 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
* 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
* 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>
Improve operation spammer
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 ---------
Leo-Besancon
approved these changes
Jul 4, 2023
bors merge |
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. If you want to switch to GitHub's built-in merge queue, visit their help page. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
No description provided.