Conversation
This reverts commit 8caf8ab.
Olshansk
left a comment
There was a problem hiding this comment.
@gokutheengineer Thank you so much for doing this!
I submitted a few NITS myself, and left a couple comments. Would really appreciate if you could take a look (shouldn't take too long) and then we can merge it in!
|
|
||
| ### State Sync | ||
|
|
||
| State synchronization is crucial to ensure all participating nodes maintain a consistent and up-to-date view of the network state. It is especially important in a dynamic and decentralized network where nodes can join, leave, or experience intermittent connectivity. For an in-depth understanding of the state sync process and its current status, please refer to our [State Sync Protocol Design Specification](https://github.com/pokt-network/pocket/blob/main/consensus/doc/PROTOCOL_STATE_SYNC.md). |
There was a problem hiding this comment.
NIT: Any chance you could follow the "best practices" I learnt about recently and see if we can reformat this (by moving this around) so it's easier to read: https://twitter.com/olshansky/status/1660499323317284864
If this is too hard, then no worries!
There was a problem hiding this comment.
@gokutheengineer we synched offline, but let's just merge in what we have and iterate on a diagram in a future PR!
There was a problem hiding this comment.
I did a quick fix that I think makes it better and easier to understand.
Codecov ReportPatch and project coverage have no change.
Additional details and impacted files@@ Coverage Diff @@
## main #777 +/- ##
=======================================
Coverage 31.38% 31.38%
=======================================
Files 107 107
Lines 9080 9080
=======================================
Hits 2850 2850
Misses 5889 5889
Partials 341 341
☔ View full report in Codecov by Sentry. |
## Description <!-- reviewpad:summarize:start --> ### Summary generated by Reviewpad on 08 Jun 23 08:33 UTC This pull request adds a new module, Consensus Module, to the project, implementing the HotStuff consensus algorithm and adhering to the Pocket's Consensus Module Specification. The pull request also includes the organization of files, code documentation, and testing. <!-- reviewpad:summarize:end --> ## Issue Fixes #335 ## Type of change Please mark the relevant option(s): - [ ] New feature, functionality or library - [ ] Bug fix - [ ] Code health or cleanup - [ ] Major breaking change - [X] Documentation - [ ] Other <!-- add details here if it a different type of change --> ## List of changes - Add README.md to the consensus module ## Testing - [ ] `make develop_test`; if any code changes were made - [ ] `make test_e2e` on [k8s LocalNet](https://github.com/pokt-network/pocket/blob/main/build/localnet/README.md); if any code changes were made - [ ] `e2e-devnet-test` passes tests on [DevNet](https://pocketnetwork.notion.site/How-to-DevNet-ff1598f27efe44c09f34e2aa0051f0dd); if any code was changed - [ ] [Docker Compose LocalNet](https://github.com/pokt-network/pocket/blob/main/docs/development/README.md); if any major functionality was changed or introduced - [ ] [k8s LocalNet](https://github.com/pokt-network/pocket/blob/main/build/localnet/README.md); if any infrastructure or configuration changes were made ## 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 added, or updated, [`godoc` format comments](https://go.dev/blog/godoc) on touched members (see: [tip.golang.org/doc/comment](https://tip.golang.org/doc/comment)) - [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) --------- Co-authored-by: Gokhan Sagirlar <gokhansagirlar@Gokhans-MacBook-Pro.local> Co-authored-by: Daniel Olshansky <olshansky.daniel@gmail.com>
* refactor/peerstore-provider: (22 commits) fix: bugs chore: update changelogs refactor: rename `T` & `K` type params to `M` &`C` chore: improve comment chore: add issue numbers to TECHDEBT comments chore: add TECHDEBT comments refactor: re-implement `GetUnstakedPeerstore` refactor: update peerstore provider method receivers refactor: `p2pPeerstoreProvider` to a single function' refactor: rename persistence.go back to provider.go refactor: consolidate p2pPeerstoreProvider into persistencePeerstorProvider chore: oneline function signature refactor: embed `p2pPStoreProviderFactory` refactor: persistence peerstor provider Consensus/readme (#777) chore: add `--build-tags` flag to `go_lint` make target (#807) [Core] Deploying all-the-protocol-actors (#710) fix: retrieve p2p mdoule from bus on each call chore: add godoc comments chore: remove unused `GetP2PConfig()` method ...
Description
Summary generated by Reviewpad on 08 Jun 23 08:33 UTC
This pull request adds a new module, Consensus Module, to the project, implementing the HotStuff consensus algorithm and adhering to the Pocket's Consensus Module Specification. The pull request also includes the organization of files, code documentation, and testing.
Issue
Fixes #335
Type of change
Please mark the relevant option(s):
List of changes
Testing
make develop_test; if any code changes were mademake test_e2eon k8s LocalNet; if any code changes were madee2e-devnet-testpasses tests on DevNet; if any code was changedRequired Checklist
godocformat comments on touched members (see: tip.golang.org/doc/comment)If Applicable Checklist
shared/docs/*if I updatedshared/*README(s)