Add node monitor diagnostics #1681
Merged
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.
This pull request introduces several changes across multiple files to improve diagnostics capabilities, update dependencies, and refactor testing utilities. The most significant updates include the addition of node diagnostics functionality, refactoring of RNG usage in tests, and updates to dependency paths and versions.
Diagnostics Enhancements:
NodeDiagnosticsquery type toNodeEventandQueryResultenums to enable detailed diagnostics, including network state, subscriptions, and metrics. (crates/core/src/message.rs, [1] [2] [3]crates/core/src/node/network_bridge/p2p_protoc.rs, crates/core/src/node/network_bridge/p2p_protoc.rsR404-R557)Diagnosticssubcommand to thefdevCLI tool to query detailed node diagnostics. (crates/fdev/src/config.rs, [1];crates/fdev/src/main.rs, [2]Testing Utilities Refactor:
base_node_test_configandgw_config_from_pathfunctions to use an external RNG parameter instead of relying on a global RNG lock. (apps/freenet-ping/app/tests/common/mod.rs, [1] [2] [3] [4]Dependency Updates:
freenet-stdlibdependency paths to local directories in multipleCargo.tomlfiles for better modularity and development flow. (Cargo.toml, [1];apps/freenet-ping/Cargo.toml, [2];apps/freenet-ping/app/Cargo.toml, [3]testingfeature tofreenet-stdlibin the core crate's dependencies. (crates/core/Cargo.toml, crates/core/Cargo.tomlR110)freenet-stdlibversion in test contracts for consistency. (tests/test-contract-metering/Cargo.toml, [1];tests/test-delegate-integration/Cargo.toml, [2]Miscellaneous:
last_updatefield fromSubscriptionInfomapping logic. (crates/core/src/client_events/mod.rs, crates/core/src/client_events/mod.rsL262)fdevpackage to0.2.0. (crates/fdev/Cargo.toml, crates/fdev/Cargo.tomlL3-R3)