[P2P] KISS 2 - Peer discovery [Merge me after #520] - (Issues: #416, #429)#521
Merged
[P2P] KISS 2 - Peer discovery [Merge me after #520] - (Issues: #416, #429)#521
Conversation
…ndor/mock/etc changes
Co-authored-by: Daniel Olshansky <olshansky@pokt.network>
Co-authored-by: Daniel Olshansky <olshansky@pokt.network>
Co-authored-by: Daniel Olshansky <olshansky@pokt.network>
This was
linked to
issues
Feb 16, 2023
deblasis
commented
Feb 17, 2023
Olshansk
approved these changes
Feb 17, 2023
Collaborator
Olshansk
left a comment
There was a problem hiding this comment.
Left a couple comments (nothing blocking) but PTAL before merging! Again, 🙏 for splitting this!!!!
| @@ -1,6 +1,6 @@ | |||
| openapi: 3.0.3 | |||
Collaborator
There was a problem hiding this comment.
You need to run generate_cli_commands_docs so the docs are updated
Contributor
Author
There was a problem hiding this comment.
generate_cli_commands_docs updates docs for the CLI. (this has to be ran in the PR that adds the non_interactive flag if I didn't do that already. Noted.
In here I have already ran make generate_rpc_openapi before adding the handlers for the new endpoint
Co-authored-by: Daniel Olshansky <olshansky@pokt.network>
Co-authored-by: Daniel Olshansky <olshansky@pokt.network>
This reverts commit facca64.
…-network/pocket into issue/416-kiss-peer-discovery-light
…-discovery-light Signed-off-by: Alessandro De Blasis <alex@deblasis.net>
16 tasks
deblasis
added a commit
that referenced
this pull request
Feb 17, 2023
… (#522) ## Description This PR has been extracted from #491 and is, hopefully, more digestible from a code-review and scope point of view. ## Issue Fixes #490 ## Type of change Please mark the relevant option(s): - [x] New feature, functionality or library - [ ] Bug fix - [ ] Code health or cleanup - [ ] Major breaking change - [ ] Documentation - [ ] Other <!-- add details here if it a different type of change --> ## List of changes - When nodes are added/removed from the Kubernetes Localnet, we stake/unstake them automatically - We achieve the above by dogfooding our own CLI inside Kubernetes ## Testing - [x] `make develop_test` - [x] [LocalNet](https://github.com/pokt-network/pocket/blob/main/docs/development/README.md) w/ all of the steps outlined in the `README` ## Required Checklist - [x] I have performed a self-review of my own code - [x] I have commented my code, particularly in hard-to-understand areas - [x] I have tested my changes using the available tooling - [x] I have updated the corresponding CHANGELOG ### If Applicable Checklist - [ ] I have updated the corresponding README(s); local and/or global - [ ] I have added tests that prove my fix is effective or that my feature works - [ ] I have added, or updated, [mermaid.js](https://mermaid-js.github.io) diagrams in the corresponding README(s) - [ ] I have added, or updated, documentation and [mermaid.js](https://mermaid-js.github.io) diagrams in `shared/docs/*` if I updated `shared/*`README(s) --------- Signed-off-by: Alessandro De Blasis <alex@deblasis.net> Co-authored-by: Dmitry Knyazev <okdas@users.noreply.github.com> Co-authored-by: Daniel Olshansky <olshansky@pokt.network> Co-authored-by: Dmitry K <okdas@pm.me> Co-authored-by: Daniel Olshansky <olshansky.daniel@gmail.com>
bryanchriswhite
added a commit
that referenced
this pull request
Feb 20, 2023
* pokt/main: [Infra] KISS 3 - Cluster Manager [Merge me after #521] - (Issues: #490) (#522) Refactor/fix state sync logs (#515) [P2P] KISS 2 - Peer discovery [Merge me after #520] - (Issues: #416, #429) (#521) [Core] KISS 1 - Finite State Machine [Merge me first] - (Issue: #499) (#520) [CLI] Stake command bugfix (#518) [CLI] Cannot run make localnet_client_debug: Cannot initialise the keybase with the validator keys: Unable to find YAML file (#517) Fix the link shown by `make go_doc` Fixed duplicate GITHUB_WIKI tag [Documentation] Update Devlog Formatting (#512) [Docs & Bugs] Minor fixes post keybase changes (#513) [Utility] Foundational bugs, tests, code cleanup and improvements (1 / 2) (#503) [Tooling] Integrate Keybase w/ CLI (Issue #484 ) (#501) update devlog2.md update devlog2.md Update devlog1.md
bryanchriswhite
added a commit
that referenced
this pull request
Feb 20, 2023
* pokt/main: [Infra] KISS 3 - Cluster Manager [Merge me after #521] - (Issues: #490) (#522) Refactor/fix state sync logs (#515) [P2P] KISS 2 - Peer discovery [Merge me after #520] - (Issues: #416, #429) (#521) [Core] KISS 1 - Finite State Machine [Merge me first] - (Issue: #499) (#520) [CLI] Stake command bugfix (#518) [CLI] Cannot run make localnet_client_debug: Cannot initialise the keybase with the validator keys: Unable to find YAML file (#517) Fix the link shown by `make go_doc` Fixed duplicate GITHUB_WIKI tag [Documentation] Update Devlog Formatting (#512) [Docs & Bugs] Minor fixes post keybase changes (#513) [Utility] Foundational bugs, tests, code cleanup and improvements (1 / 2) (#503) [Tooling] Integrate Keybase w/ CLI (Issue #484 ) (#501) update devlog2.md update devlog2.md Update devlog1.md
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.
Description
This PR has been extracted from #491 and is, hopefully, more digestible from a code-review and scope point of view.
The main goal is to remove hardcoded nodes and move towards a more dynamic environment.
It's also highlighting the potential entry points for subsequent P2P work
The code leverages the abstractions added recently (
currentHeightProviderandaddressBookProvider) to fetch the data from an RPC endpoint.Issue
Fixes #416
Fixes #429
Type of change
Please mark the relevant option(s):
List of changes
CLI
rpcAddressBookProviderandrpcCurrentHeightProviderrespectively and thebusfor dependency injectionP2P
base_modules.IntegratableModuleandbase_modules.InterruptableModulefor DRYnessdebugAddressBookProviderrpcAddressBookProviderto source the address book from the RPC serverbusfor dependency injection of theaddressBookProviderandcurrentHeightProviderdebugCurrentHeightProviderrpcCurrentHeightProviderto source the current height from the RPC servercurrentHeightProviderinstead of consensus (that was what we wanted to avoid in the first place)getAddrBookDeltato calculate changes to the address book between heights and update the internal state and componentry accordinglyConsensusNewHeightEventTypeto update the address bookRPC
Testing
make develop_testREADMERequired Checklist
If Applicable Checklist
shared/docs/*if I updatedshared/*README(s)