I229 reserved peers deadlock#232
Merged
SurfingNerd merged 11 commits intoDMDcoin:0.11from Jun 13, 2025
Merged
Conversation
…cher pattern, this helps reducing lock stacks. Known Issue: Nonce Calculation does not work anymore.
- IOChannels now require the user the specify the worker threads - removed the extensive lock on the client
This file contains hidden or 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
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.
#229 - reserved peers management during key gen phase can lead to deadlocks
Therefore FIFO guarantees are still met.
Updates to
transact_silently:transact_silentlymethod inBlockChainClientand its implementations to return the transaction hash (H256) instead of()upon success. This improves the visibility of transaction outcomes. (crates/ethcore/src/client/traits.rs,crates/ethcore/src/client/client.rs,crates/ethcore/src/client/test_client.rs) [1] [2] [3]IoService initialization improvements:
IoService::startcalls inClientService,AuthorityRound, andHoneyBadgerBFTto improve configurability and performance. (crates/ethcore/service/src/service.rs,crates/ethcore/src/engines/authority_round/mod.rs,crates/ethcore/src/engines/hbbft/hbbft_engine.rs) [1] [2] [3]Honey Badger BFT (HBBFT) engine refactoring:
IoServicefor managing peer connections (hbbft_peers_service) and registered a corresponding handler (HbbftPeersHandler). (crates/ethcore/src/engines/hbbft/hbbft_engine.rs) [1] [2]has_sent_availability_tx,peers_management, and related logic for handling availability announcements and internet address announcements. This simplifies the engine's responsibilities. (crates/ethcore/src/engines/hbbft/hbbft_engine.rs) [1] [2] [3]do_validator_engine_actionsmethod to return a more specificErrortype instead of a genericString. (crates/ethcore/src/engines/hbbft/hbbft_engine.rs)Logging and minor adjustments:
set_validator_internet_addressandsend_tx_announce_availabilityfunctions for better clarity and debugging. (crates/ethcore/src/engines/hbbft/contracts/validator_set.rs) [1] [2]send_tx_announce_availability. (crates/ethcore/src/engines/hbbft/contracts/validator_set.rs)These changes collectively aim to enhance the maintainability, performance, and clarity of the codebase.