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 25 #4203

Merged
merged 82 commits into from
Jul 31, 2023
Merged

Testnet 25 #4203

merged 82 commits into from
Jul 31, 2023

Commits on Jun 26, 2023

  1. Handle native and bn254 signatures

    Thomas Plisson committed Jun 26, 2023
    Configuration menu
    Copy the full SHA
    666fe5c View commit details
    Browse the repository at this point in the history

Commits on Jun 27, 2023

  1. bn254 test save

    Thomas Plisson committed Jun 27, 2023
    Configuration menu
    Copy the full SHA
    480bc87 View commit details
    Browse the repository at this point in the history
  2. Remove bn254 implementation

    Thomas Plisson committed Jun 27, 2023
    Configuration menu
    Copy the full SHA
    3ac2541 View commit details
    Browse the repository at this point in the history
  3. verify_evm_signature and hash_keccak256

    Thomas Plisson committed Jun 27, 2023
    Configuration menu
    Copy the full SHA
    ed1d4f6 View commit details
    Browse the repository at this point in the history
  4. test_evm_verify

    Thomas Plisson committed Jun 27, 2023
    Configuration menu
    Copy the full SHA
    bea6049 View commit details
    Browse the repository at this point in the history
  5. extra info for test_evm_verify

    Thomas Plisson committed Jun 27, 2023
    Configuration menu
    Copy the full SHA
    d32a9e3 View commit details
    Browse the repository at this point in the history
  6. improve and cleanup test_evm_verify

    Thomas Plisson committed Jun 27, 2023
    Configuration menu
    Copy the full SHA
    3869edc View commit details
    Browse the repository at this point in the history

Commits on Jun 28, 2023

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

Commits on Jun 30, 2023

  1. Remove unused native conversion functions

    Thomas Plisson committed Jun 30, 2023
    Configuration menu
    Copy the full SHA
    5292982 View commit details
    Browse the repository at this point in the history
  2. initial

    Thomas Plisson committed Jun 30, 2023
    Configuration menu
    Copy the full SHA
    215d8ef View commit details
    Browse the repository at this point in the history
  3. merge parent and fix conflicts

    Thomas Plisson committed Jun 30, 2023
    Configuration menu
    Copy the full SHA
    f2264cb View commit details
    Browse the repository at this point in the history
  4. Update packages and fix errors

    Thomas Plisson committed Jun 30, 2023
    Configuration menu
    Copy the full SHA
    40bebe8 View commit details
    Browse the repository at this point in the history
  5. minor correction

    Thomas Plisson committed Jun 30, 2023
    Configuration menu
    Copy the full SHA
    6502b59 View commit details
    Browse the repository at this point in the history
  6. Merge pull request #4171 from massalabs/feature/new_signatures_verify

    EVM signatures verification
    Eitu33 authored Jun 30, 2023
    Configuration menu
    Copy the full SHA
    9c75b48 View commit details
    Browse the repository at this point in the history
  7. cargo clippy fix

    Leo-Besancon committed Jun 30, 2023
    Configuration menu
    Copy the full SHA
    d633940 View commit details
    Browse the repository at this point in the history
  8. Change the interface to sync with ABI changes (#4170)

    * Update interface impl for leo's changes
    
    Depends on feature/Improve_ABI_types_in_wasmv1 branch for massa-sc-runtime and massa-proto-rs
    
    Signed-off-by: Jean-François Morcillo <[email protected]>
    
    Update target branch
    
    Implemented the interface for my new ABIs
    
    Added prefix to get_op_keys_wasmv1
    
    Update target branch
    
    Update in_downtime context value
    
    Add some unit tests
    
    Use helper function to get address
    
    Added comments and deprecation notice
    
    Target new runtime rev to have consistant proto-rs targets
    
    Simplified a bit the prefix logic
    
    Based on review comments
    
    * Fix after rebase
    
    ---------
    
    Co-authored-by: Jean-François Morcillo <[email protected]>
    Leo-Besancon and Jean-François Morcillo authored Jun 30, 2023
    Configuration menu
    Copy the full SHA
    b967703 View commit details
    Browse the repository at this point in the history
  9. improve verify_evm_signature

    Thomas Plisson committed Jun 30, 2023
    Configuration menu
    Copy the full SHA
    821c9a7 View commit details
    Browse the repository at this point in the history
  10. Configuration menu
    Copy the full SHA
    969b7d5 View commit details
    Browse the repository at this point in the history
  11. Fix after merge

    Leo-Besancon committed Jun 30, 2023
    Configuration menu
    Copy the full SHA
    332520b View commit details
    Browse the repository at this point in the history
  12. Configuration menu
    Copy the full SHA
    5614d69 View commit details
    Browse the repository at this point in the history
  13. Configuration menu
    Copy the full SHA
    943142c View commit details
    Browse the repository at this point in the history
  14. Configuration menu
    Copy the full SHA
    b73849a View commit details
    Browse the repository at this point in the history

Commits on Jul 5, 2023

  1. Merge remote-tracking branch 'origin/testnet_25' into runtime-changes…

    …-common
    Jean-François Morcillo committed Jul 5, 2023
    Configuration menu
    Copy the full SHA
    fe0995b View commit details
    Browse the repository at this point in the history
  2. NativeAmount arithmetic implementation (#4199)

    Authored-by: Jean-François Morcillo <[email protected]>
    bilboquet authored Jul 5, 2023
    Configuration menu
    Copy the full SHA
    910ed5e View commit details
    Browse the repository at this point in the history
  3. Runtime changes common leo (#4217)

    * fmt
    
    * Update branch targeting
    
    * Implement abis
    
    * Update interface (clippy, implem some abis..)
    
    * fmt
    
    * Changed back branch targeting
    Leo-Besancon authored Jul 5, 2023
    Configuration menu
    Copy the full SHA
    173278f View commit details
    Browse the repository at this point in the history

Commits on Jul 6, 2023

  1. Implement bs58 to/from bytes (#4223)

    Co-authored-by: Jean-François Morcillo <[email protected]>
    bilboquet and Jean-François Morcillo authored Jul 6, 2023
    Configuration menu
    Copy the full SHA
    60bdee0 View commit details
    Browse the repository at this point in the history
  2. get_origin_operation_id interface impl & abi cost

    Thomas Plisson committed Jul 6, 2023
    Configuration menu
    Copy the full SHA
    d723f84 View commit details
    Browse the repository at this point in the history

Commits on Jul 7, 2023

  1. Implement unsafe_random_wasmv1 in interface (#4231)

    * Implement unsafe_random_wasmv1
    
    * Added doc comments and deprecation notes
    Leo-Besancon authored Jul 7, 2023
    Configuration menu
    Copy the full SHA
    d4fc02b View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    8714624 View commit details
    Browse the repository at this point in the history
  3. Fix after merge

    Leo-Besancon committed Jul 7, 2023
    Configuration menu
    Copy the full SHA
    a4d0e27 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    e14ef78 View commit details
    Browse the repository at this point in the history

Commits on Jul 10, 2023

  1. Sync with massa-sc-runtime#283

    Signed-off-by: Jean-François Morcillo <[email protected]>
    Jean-François Morcillo authored and bilboquet committed Jul 10, 2023
    Configuration menu
    Copy the full SHA
    29868c6 View commit details
    Browse the repository at this point in the history

Commits on Jul 11, 2023

  1. Rename blake3_hash to hash_blake3 and use blake3 directly (not via ma…

    …ssa::hash)
    
    Signed-off-by: Jean-François Morcillo <[email protected]>
    Jean-François Morcillo authored and bilboquet committed Jul 11, 2023
    Configuration menu
    Copy the full SHA
    c3567fa View commit details
    Browse the repository at this point in the history
  2. Clean some name in massa-sc-runtime interface

    Signed-off-by: Jean-François Morcillo <[email protected]>
    Jean-François Morcillo authored and bilboquet committed Jul 11, 2023
    Configuration menu
    Copy the full SHA
    18cbacb View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    cbd143e View commit details
    Browse the repository at this point in the history
  4. incremental hash (#4197)

    * incremental hash
    
    * rebase
    
    * reformat
    
    * read/write to final state
    
    * factor prng
    
    * imrovements
    
    * remove comment
    
    * final_state_db corrrection
    
    * load initial trail hash
    
    * clippy
    
    * fix tests
    
    * debug tests
    
    * Fix bootstrap test
    
    * Fix execution tests
    
    * remove comment
    
    ---------
    
    Co-authored-by: Leo-Besancon <[email protected]>
    damip and Leo-Besancon authored Jul 11, 2023
    Configuration menu
    Copy the full SHA
    232bdf7 View commit details
    Browse the repository at this point in the history

Commits on Jul 13, 2023

  1. Configuration menu
    Copy the full SHA
    1e6fb95 View commit details
    Browse the repository at this point in the history
  2. Feature/ledger editor versioning 1 (#4239)

    * Add update_for_network_shutdown to MIP store (was only on Mip store raw)
    
    * Set update_for_network_shutdown as public
    
    * Call extend_from_db when creating a FinalState object from a snapshot
    
    * Add some debug! calls
    
    * Add debug info
    
    * Add debug info (round 2°
    
    * Add debug info (round 3)
    
    * Add debug info (round 4)
    
    * Add try_from_db method in MIP store
    
    * Code cleanup + new error after network shutdown
    
    * Add some documentation about MIP store init.
    
    ---------
    
    Co-authored-by: sydhds <[email protected]>
    sydhds and sydhds authored Jul 13, 2023
    Configuration menu
    Copy the full SHA
    9a1c2d0 View commit details
    Browse the repository at this point in the history
  3. debug op propagation (#4251)

    damip authored Jul 13, 2023
    Configuration menu
    Copy the full SHA
    3b4b702 View commit details
    Browse the repository at this point in the history

Commits on Jul 17, 2023

  1. Fix op cache (#4255)

    AurelienFT authored Jul 17, 2023
    Configuration menu
    Copy the full SHA
    c1930f2 View commit details
    Browse the repository at this point in the history
  2. Bom workspace (#4200)

    * Add script
    
    Signed-off-by: Litchi Pi <[email protected]>
    
    * update script
    
    Signed-off-by: Litchi Pi <[email protected]>
    
    * Update Cargo.toml
    
    Signed-off-by: Litchi Pi <[email protected]>
    
    * Remove script
    
    Signed-off-by: Litchi Pi <[email protected]>
    
    ---------
    
    Signed-off-by: Litchi Pi <[email protected]>
    litchipi authored Jul 17, 2023
    Configuration menu
    Copy the full SHA
    aa4d3d0 View commit details
    Browse the repository at this point in the history
  3. Sync with massa-sc-runtime#287

    Signed-off-by: Jean-François Morcillo <[email protected]>
    Jean-François Morcillo authored and bilboquet committed Jul 17, 2023
    Configuration menu
    Copy the full SHA
    a2f51f5 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    eea278d View commit details
    Browse the repository at this point in the history
  5. fix build space ci

    AurelienFT committed Jul 17, 2023
    Configuration menu
    Copy the full SHA
    e47f875 View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    32ed0de View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    94c3f51 View commit details
    Browse the repository at this point in the history
  8. Fix indent in CI.

    AurelienFT committed Jul 17, 2023
    Configuration menu
    Copy the full SHA
    20661de View commit details
    Browse the repository at this point in the history
  9. Configuration menu
    Copy the full SHA
    af94205 View commit details
    Browse the repository at this point in the history
  10. Configuration menu
    Copy the full SHA
    735076d View commit details
    Browse the repository at this point in the history
  11. Sync

    Leo-Besancon committed Jul 17, 2023
    Configuration menu
    Copy the full SHA
    de74bbf View commit details
    Browse the repository at this point in the history

Commits on Jul 21, 2023

  1. Add versioning of all object id and some tests (#4226)

    * Add unit test to ensure two addresses with the same version doesn't give the same thread
    
    * Add version to operation id
    
    * Format & clippy
    
    * Add version on all ids.
    
    * Add version on operations
    
    * Revert "Add version on operations"
    
    This reverts commit dca6ef2.
    
    * Fix comparaison hashes operation merkle root
    
    * Update fromstr of block id and operation id
    
    * Fix compil error.
    
    * Add comment for length verification
    
    * remove from_bytes_without_version
    
    * fmt
    
    * Update serialization endorsement id
    
    ---------
    
    Co-authored-by: Thomas Plisson <[email protected]>
    AurelienFT and Thomas Plisson authored Jul 21, 2023
    Configuration menu
    Copy the full SHA
    ff9a431 View commit details
    Browse the repository at this point in the history

Commits on Jul 24, 2023

  1. improve block propagation (#4252)

    * improve block propagation (init)
    
    * improve block propagation
    
    * improve block propagation
    
    * improve block propagation: config and some errors
    
    * improved block retrieval
    
    * improve block propag
    
    * block propagation updates
    
    * undo merkle renaming
    
    * unite operation note_operations_from_peer
    
    * markers
    
    * update ask blocks
    
    * add max peer load
    
    * comments
    
    * simplify retrieval
    
    * fix retrieval
    
    * improve caches
    
    * debug endorsement propagation
    
    * improve endorsement propag
    
    * integrate endorsement handler
    
    * formatting
    
    * make tests compile
    
    * fix tests
    
    * clippy
    
    * correct root hash
    damip authored Jul 24, 2023
    Configuration menu
    Copy the full SHA
    d935fc8 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    f595149 View commit details
    Browse the repository at this point in the history
  3. improve op propagation limit (#4267)

    * improve op propagation limit
    
    * correct
    damip authored Jul 24, 2023
    Configuration menu
    Copy the full SHA
    88a7a71 View commit details
    Browse the repository at this point in the history
  4. all evm interface implementations

    Thomas Plisson committed Jul 24, 2023
    Configuration menu
    Copy the full SHA
    7a862f9 View commit details
    Browse the repository at this point in the history
  5. impl is_address_eoa

    Thomas Plisson committed Jul 24, 2023
    Configuration menu
    Copy the full SHA
    cb5eb6a View commit details
    Browse the repository at this point in the history
  6. abi costs

    Thomas Plisson committed Jul 24, 2023
    Configuration menu
    Copy the full SHA
    c4db695 View commit details
    Browse the repository at this point in the history
  7. minor change

    Thomas Plisson committed Jul 24, 2023
    Configuration menu
    Copy the full SHA
    1229399 View commit details
    Browse the repository at this point in the history
  8. fix a clippy warning

    Thomas Plisson committed Jul 24, 2023
    Configuration menu
    Copy the full SHA
    8748748 View commit details
    Browse the repository at this point in the history

Commits on Jul 25, 2023

  1. Protocol improvements (#4243)

    Co-authored-by: Litchi Pi <[email protected]>
    modship and litchipi authored Jul 25, 2023
    Configuration menu
    Copy the full SHA
    b70b4ce View commit details
    Browse the repository at this point in the history
  2. Update runtime target branch

    Thomas Plisson committed Jul 25, 2023
    Configuration menu
    Copy the full SHA
    d798412 View commit details
    Browse the repository at this point in the history
  3. Merge pull request #4269 from massalabs/evm-update

    Evm update
    Eitu33 authored Jul 25, 2023
    Configuration menu
    Copy the full SHA
    5fe52ce View commit details
    Browse the repository at this point in the history
  4. Remove local struct hashes (#4276)

    * Remove cycle_info local hash
    
    * Remove async_messages local hash
    
    /!\ We probably need to update the protos too!
    
    * Remove deferred_credits local hash
    
    * fmt fix
    Leo-Besancon authored Jul 25, 2023
    Configuration menu
    Copy the full SHA
    812374c View commit details
    Browse the repository at this point in the history

Commits on Jul 26, 2023

  1. Protocol: Add periodic unban of every peers (#4277)

    * Add unban_everyone timer in config
    
    * removed unused last_unban field
    
    * Added unban protocol test
    
    * Added comments
    
    * Update unban behaviour
    
    * Changed Unbanned peer status from Trusted to HandshakeFailed
    Leo-Besancon authored Jul 26, 2023
    Configuration menu
    Copy the full SHA
    7e7e296 View commit details
    Browse the repository at this point in the history
  2. Merge test25 and fix conflicts

    Thomas Plisson committed Jul 26, 2023
    Configuration menu
    Copy the full SHA
    3cb5508 View commit details
    Browse the repository at this point in the history
  3. update runtime version

    Thomas Plisson committed Jul 26, 2023
    Configuration menu
    Copy the full SHA
    660ea0b View commit details
    Browse the repository at this point in the history
  4. use branch instead of rev for runtime package

    Thomas Plisson committed Jul 26, 2023
    Configuration menu
    Copy the full SHA
    c772ee5 View commit details
    Browse the repository at this point in the history
  5. Merge pull request #4180 from massalabs/runtime-changes-common

    Runtime changes common
    Eitu33 authored Jul 26, 2023
    Configuration menu
    Copy the full SHA
    494b095 View commit details
    Browse the repository at this point in the history
  6. add metrics (#4254)

    modship authored Jul 26, 2023
    Configuration menu
    Copy the full SHA
    122a1f6 View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    82c5757 View commit details
    Browse the repository at this point in the history

Commits on Jul 27, 2023

  1. Merge main into testnet 25 (#4294)

    * Use consistent instead of 'coherent' + improve versioning doc (#4198)
    
    Co-authored-by: sydhds <[email protected]>
    
    * update get_largest_stakers -> get_stakers
    
    * update get_blocks and remove get_blocks_by_slots
    
    * use from impl for BlockStatus
    
    * fix get_blocks
    
    * update get_datastore_entries
    
    * update api.rs
    
    * refactor: it compilezzzz
    
    * refactor: enable non changed methods
    
    * feat: add private service skeleton
    
    * refactor: split public/private gRPC settings
    
    * make get_blocks working
    
    * update get_datastore_entries
    
    * update get_stakers
    
    * refactor: make private server operational
    
    * feat: first private method add_staking_secret_keys
    
    * feat: add sign messages
    
    * update get_operations
    
    * update get_operations (filter with op_type)
    
    * build: update to latest protos
    
    [skip_ci]
    
    * update get_operations
    
    * update get_sc_execution_events
    
    * update get_sc_execution_events
    
    * update massa-proto-rs (SlotDraw)
    
    * feat: add ban/unban by ids
    
    * update bootstrap white/black list and add ips to blacklist from grpc
    
    * implement remove_from_bootstrap_blacklist for private grpc
    
    * add_to_bootstrap_whitelist remove_from_bootstrap_whitelist
    
    * improve selection system
    
    * refactor: add uncomplete get_node_status
    
    * refactor: add complete get_node_status
    
    * refactor: add complete get_status
    
    * update tests
    
    * impl get_white_list && get_black_list in private grpc
    
    * build: upgrade to latest proto NOT COMPILE
    
    * update get_selector_draws
    
    * Update massa client with public and private grpc api (#4227)
    
    Co-authored-by: sydhds <[email protected]>
    
    * fix write from api in bootstrap blacklist / whitelist
    
    * Remove create KeyPair grpc api (#4233)
    
    Co-authored-by: sydhds <[email protected]>
    
    * fix: add missing field in SC event filter
    
    * refactor: to_event_filter
    
    * update streaming new_operations
    
    * fix clippy lint
    
    * refactor: new slot execution output
    
    * update massa-proto and new_operations streaming
    
    * refactor: remove KeyPair factory from api
    
    * feat: add send_operations
    
    * build: update massa-proto-rs
    
    * refactor: add max args
    
    * refactor: remove custom tokio runtime for JsonRPC
    
    * refactor: add QueryState NOT COMPLETE
    
    [skip_ci]
    
    * refactor: add missing mappings
    
    [skip_ci]
    
    * feat: naive QueryState impl
    
    * refactor: move mapping away from api
    
    * fix: POS tests
    
    * fix: POS selector boilerplate
    
    * fix: dead links in readme
    
    * Add fix disk size unbuntu
    
    * feat: Native TLS is onboard
    
    * refactor: grpc config
    
    * feat: implement execute_read_only_call
    
    * build: upgrade to jsonrpsee 0.19.0
    
    * build: update to latest massa-proto-rs
    
    * fix: first batch
    
    * avoid clone list
    
    * improve write to file (white/black list)
    
    * fix: second batch
    
    * fix: exec read only datastore deser
    
    * refactor: add autogen Address
    
    * build: upgrade to main
    
    * update bom
    
    Signed-off-by: Litchi Pi <[email protected]>
    
    * build: upgrade massa-proto-rs + jsonrpsee
    
    * Change version of massa-sc-runtime
    
    Signed-off-by: Litchi Pi <[email protected]>
    
    ---------
    
    Signed-off-by: Litchi Pi <[email protected]>
    Co-authored-by: Sydhds <[email protected]>
    Co-authored-by: sydhds <[email protected]>
    Co-authored-by: modship <[email protected]>
    Co-authored-by: Damir Vodenicarevic <[email protected]>
    Co-authored-by: AurelienFT <[email protected]>
    Co-authored-by: bors[bot] <26634292+bors[bot]@users.noreply.github.com>
    Co-authored-by: Litchi Pi <[email protected]>
    8 people authored Jul 27, 2023
    Configuration menu
    Copy the full SHA
    73aaa9d View commit details
    Browse the repository at this point in the history
  2. debug block propag (#4293)

    * debug block propag
    
    * remove unexpected return in block retrieval
    damip authored Jul 27, 2023
    Configuration menu
    Copy the full SHA
    a24fe13 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    32d8a17 View commit details
    Browse the repository at this point in the history

Commits on Jul 31, 2023

  1. massa survey stop (#4287)

    modship authored Jul 31, 2023
    Configuration menu
    Copy the full SHA
    74edee7 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    b1bc739 View commit details
    Browse the repository at this point in the history
  3. Add max event size check (#4285)

    * Add max event size check
    
    * Make const easier to read
    Leo-Besancon authored Jul 31, 2023
    Configuration menu
    Copy the full SHA
    e1d4552 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    72ebfeb View commit details
    Browse the repository at this point in the history
  5. Implement peer priorization (#4261)

    * stop iteration if peer is disconnected
    
    * split incoming connection and testers
    
    * add nb thread from config
    
    * set connection timer to 250ms
    
    * Add timeouts on read / write operations of the socket
    
    Signed-off-by: Litchi Pi <[email protected]>
    
    * remove todo and add comment
    
    * Annoucement is now Optional in PeerInfo
    
    * update peernet
    
    * check if peer is in connection queue before try connect
    
    * wait cooldown before retry to connect to a peer
    
    * Do not test peers if they are tested in another thread
    
    Signed-off-by: Litchi Pi <[email protected]>
    
    * Add peer tested in default case also
    
    Signed-off-by: Litchi Pi <[email protected]>
    
    * Add timeouts on read / write operations of the socket
    
    Signed-off-by: Litchi Pi <[email protected]>
    
    * re add option to annoucement in tester
    
    * clippy
    
    * remove split
    
    * remove thread_incoming_connections_count from config
    
    * don't connect to local addr
    
    * remove dbg
    
    * Add config for test of oldest peers cooldown
    
    Signed-off-by: Litchi Pi <[email protected]>
    
    * Add new option in base_config.toml
    
    Signed-off-by: Litchi Pi <[email protected]>
    
    * Add config for test
    
    Signed-off-by: Litchi Pi <[email protected]>
    
    * update peernet
    
    * fix indentation
    
    * remove print
    
    * Implement peer priorization
    
    Signed-off-by: Litchi Pi <[email protected]>
    
    * fixup
    
    Signed-off-by: Litchi Pi <[email protected]>
    
    * Add tests for None values, comment tests, fixup
    
    Signed-off-by: Litchi Pi <[email protected]>
    
    * fixup order assumptions
    
    Signed-off-by: Litchi Pi <[email protected]>
    
    * Optimize algorithm
    
    Signed-off-by: Litchi Pi <[email protected]>
    
    * Lint
    
    Signed-off-by: Litchi Pi <[email protected]>
    
    * Add random pick in case of equality between peers
    
    Signed-off-by: Litchi Pi <[email protected]>
    
    * Add random priority field instead of picking it for each cmp
    
    Signed-off-by: Litchi Pi <[email protected]>
    
    * use RwLock of parking_lot instead of std
    
    * Adapt for multiple listeners
    
    Signed-off-by: Litchi Pi <[email protected]>
    
    * Use mutable references instead of ownership for new_X functions
    
    Signed-off-by: Litchi Pi <[email protected]>
    
    * Rename functions of ConnectionMetadata
    
    Signed-off-by: Litchi Pi <[email protected]>
    
    * Update for test also
    
    Signed-off-by: Litchi Pi <[email protected]>
    
    * Improve writing of the entry manipulation
    
    Signed-off-by: Litchi Pi <[email protected]>
    
    * lint
    
    Signed-off-by: Litchi Pi <[email protected]>
    
    * Fixup
    
    Signed-off-by: Litchi Pi <[email protected]>
    
    * Fixup compilation errors on testing
    
    Signed-off-by: Litchi Pi <[email protected]>
    
    * Compute try_connect cooldown based on last connection attempt
    
    Signed-off-by: Litchi Pi <[email protected]>
    
    * apply clippy fixes
    
    Signed-off-by: Litchi Pi <[email protected]>
    
    * Rework peer connection slots computation, add test_failed and test_succeeded to priorization algo
    
    Signed-off-by: Litchi Pi <[email protected]>
    
    * Update massa-protocol-worker/src/connectivity.rs
    
    Co-authored-by: Damir Vodenicarevic <[email protected]>
    
    * clippy fix
    
    Signed-off-by: Litchi Pi <[email protected]>
    
    * format
    
    Signed-off-by: Litchi Pi <[email protected]>
    
    * clippy fix
    
    Signed-off-by: Litchi Pi <[email protected]>
    
    * Add saturation on slots substractions
    
    Signed-off-by: Litchi Pi <[email protected]>
    
    ---------
    
    Signed-off-by: Litchi Pi <[email protected]>
    Co-authored-by: modship <[email protected]>
    Co-authored-by: Damir Vodenicarevic <[email protected]>
    3 people authored Jul 31, 2023
    Configuration menu
    Copy the full SHA
    07358c4 View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    cd1d0c9 View commit details
    Browse the repository at this point in the history
  7. fix metrics (#4300)

    modship authored Jul 31, 2023
    Configuration menu
    Copy the full SHA
    b0fcfe6 View commit details
    Browse the repository at this point in the history
  8. update consensus GPI rule (#4284)

    * update consensus rule
    
    * Fix tests for two thread scenarios
    
    * update all scenarios
    
    * fmt
    
    ---------
    
    Co-authored-by: Leo-Besancon <[email protected]>
    damip and Leo-Besancon authored Jul 31, 2023
    Configuration menu
    Copy the full SHA
    0cb927d View commit details
    Browse the repository at this point in the history
  9. Configuration menu
    Copy the full SHA
    56b7cef View commit details
    Browse the repository at this point in the history