-
Notifications
You must be signed in to change notification settings - Fork 33
chore: introduce Submodule interface
#855
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
Merged
Merged
Changes from 96 commits
Commits
Show all changes
104 commits
Select commit
Hold shift + click to select a range
fe24824
refactor: unicast router
bryanchriswhite 1277859
chore: cleanup TODOs
bryanchriswhite 871af48
chore: add background message
bryanchriswhite 013c433
chore: add `Router#Close()`
bryanchriswhite 4f998ee
chore: separate raintree & bg protocol IDs
bryanchriswhite 1c9c18c
chore: generate `PocketEnvelope` nonce in `PackMessage()`
bryanchriswhite f9a0c10
refactor: add `Handler` to router config validation
bryanchriswhite 0bdffbd
refactor: raintree router
bryanchriswhite 2b40776
refactor: background router
bryanchriswhite 213f294
refactor: integrate bg router
bryanchriswhite 437afc8
refactor: staked actor router peer discovery
bryanchriswhite 43cf671
test: post-refactor updates
bryanchriswhite 4b19d8f
Merge remote-tracking branch 'pokt/main' into refactor/unicast-router
bryanchriswhite cf886a7
Merge branch 'refactor/unicast-router' into feat/integrate-bg-router
bryanchriswhite 048e306
fix: gofmt
bryanchriswhite e09f8b2
fix: typo; rename `IntegratableModule` to `IntegrableModule`
bryanchriswhite 7b73420
refactor: rename `InitializableModule` to `InjectableModule`
bryanchriswhite 398e947
chore: remove `InjectableModule#Create()` as `Moudle` also embeds `Mo…
bryanchriswhite 6a20445
chore: add `Submodule` interface type
bryanchriswhite d7278b8
Merge remote-tracking branch 'pokt/main' into refactor/unicast-router
bryanchriswhite acc1d59
Merge branch 'refactor/unicast-router' into feat/integrate-bg-router
bryanchriswhite ec0fbca
refactor: peerstore providers as submodules
bryanchriswhite 4645401
docs: update module readme
bryanchriswhite b83b3c3
refactor: `Bus#RegisterModule()` to take a `Submodule` (subset of `Mo…
bryanchriswhite db07d19
refactor: `ModuleRegistry` to use `InjectableModule` instead of `Module`
bryanchriswhite d17f323
chore: remove unused P2P config field & option in `rpcPeerstoreProvider`
bryanchriswhite c55a437
Merge branch 'feat/integrate-bg-router' into chore/introduce-submodule
bryanchriswhite 106b181
fix: `treeStore` submodule, post-merge
bryanchriswhite f8d7f21
chore: remove unused `nonceDebugger` & cleanup imports in `rainTreeRo…
bryanchriswhite 51cd2d9
chore: simplify
bryanchriswhite cec1403
[chore] add details about submodules and bus registration
dylanlott 9ab2a5d
chore: fix typo in comment
bryanchriswhite dce1bac
chore: add debug log
bryanchriswhite 8dc2852
chore: fix field comment out of place
bryanchriswhite a6d4b52
fix: imports
bryanchriswhite 87d1fa9
Merge branch 'refactor/unicast-router' into feat/integrate-bg-router
bryanchriswhite d24407b
chore: bootstrap refactor / TECHDEBT
bryanchriswhite 70ca573
fix: imports
bryanchriswhite 8467f3a
chore: remove unused field
bryanchriswhite ce48583
chore: fix typo in comment
bryanchriswhite 70ab94c
chore: add debug log
bryanchriswhite 4db402e
chore: fix field comment out of place
bryanchriswhite 8bc24a9
chore: bootstrap refactor / TECHDEBT
bryanchriswhite 93144cf
fix: imports
bryanchriswhite 11bc8fa
Merge branch 'feat/integrate-bg-router' into chore/introduce-submodule
bryanchriswhite c3bc4c7
chore: cleanup unused test utils
bryanchriswhite fcb480e
docs: update readme + review feedback
bryanchriswhite 3fdada6
chore: comment cleanup
bryanchriswhite 39a7877
chore: add submodule TECHDEBT comments
bryanchriswhite 049cbf5
chore: add missing godoc comments
bryanchriswhite 79a1c6e
chore: cleanup unused garbage
bryanchriswhite a7c4bf6
fix: return error
bryanchriswhite 904f17b
Merge remote-tracking branch 'pokt/main' into refactor/unicast-router
bryanchriswhite 70b020b
Merge branch 'refactor/unicast-router' into feat/integrate-bg-router
bryanchriswhite 8a54f1a
chore: router logging improvements
bryanchriswhite 6795c96
fix: interim background router bootstrapping
bryanchriswhite 0a3fac1
fix: `p2pModule#Send()` routing logic
bryanchriswhite b8f9a1a
chore: improve variable naming
bryanchriswhite de63d6d
chore: improve comments
bryanchriswhite 1282e1a
chore: improve debug logging
bryanchriswhite 5793b7f
chore: return early
bryanchriswhite 95a3948
chore: add TECHDEBT comment
bryanchriswhite 7cdc9e7
Merge remote-tracking branch 'pokt/main' into HEAD
bryanchriswhite fe42ab3
test: fix raintree message target test
bryanchriswhite 60cd2bd
docs: update P2P readme
bryanchriswhite 8354d79
docs: update table of contents
bryanchriswhite f7b0202
docs: tweak P2P readme
bryanchriswhite d2f33a4
chore: add godoc comment
bryanchriswhite b527d91
chore: remove warning log
bryanchriswhite 73da86c
chore: convert `DISCUSS_THIS_COMMIT` to `TECHDEBT`
bryanchriswhite 05f8f91
Merge branch 'feat/integrate-bg-router' into chore/introduce-submodule
bryanchriswhite 8a3155b
docs: README updates
bryanchriswhite bf96542
Merge remote-tracking branch 'pokt/main' into feat/integrate-bg-router
bryanchriswhite 54d8d99
Merge branch 'feat/integrate-bg-router' into chore/introduce-submodule
bryanchriswhite 5fbc1ec
refactor: rename `IntegratableModule` to `IntegrableModule` (upstream)
bryanchriswhite 4602283
fix: typo
bryanchriswhite 65a8c94
chore: review suggestion improvements
bryanchriswhite 1985fab
chore: update generic type parameter constraint on bus helper
bryanchriswhite 519db25
fix: gofmt
bryanchriswhite 632b999
Merge branch 'feat/integrate-bg-router' into chore/introduce-submodule
bryanchriswhite 7e7e6e7
docs: README improvements (review feedback)
bryanchriswhite f3437cb
docs: add architecture design language section
bryanchriswhite 4f87921
chore: background router comment and var name cleanup
bryanchriswhite 86a83d8
refactor: peerstore provider submodule name var
bryanchriswhite 67b051b
fixup: refactor: peerstore providers as a submodules
bryanchriswhite c113a36
chore: review feedback improvements
bryanchriswhite 3356f63
chore: add issue # to TECHDEBT comment
bryanchriswhite 157ecb6
docs: update TOC
bryanchriswhite 30cf145
chore: add TODO README
bryanchriswhite 40628c4
docs: improve legend definitions
bryanchriswhite 8c0b8c3
docs: clarify broadcast table
bryanchriswhite 2a5e7f3
Merge branch 'feat/integrate-bg-router' into chore/introduce-submodule
bryanchriswhite daa8b74
docs: README edits
bryanchriswhite 2237389
chore: improve TECHDEBT comments
bryanchriswhite c48e210
chore: simplify
bryanchriswhite c99d18b
Minor formatting
Olshansk 5a4cc80
docs: fix mistake in peer discovery section
bryanchriswhite 3e997f5
test: improve background router validation test
bryanchriswhite abd4789
chore: add error log
bryanchriswhite 8c6ac68
fix: unstaked actor bootstrapping FSM transition
bryanchriswhite b76efdf
fix: goimports
bryanchriswhite 66afa18
Merge remote-tracking branch 'pokt/main' into feat/integrate-bg-router
bryanchriswhite dd73031
Merge branch 'feat/integrate-bg-router' into chore/introduce-submodule
bryanchriswhite 225f889
Merge remote-tracking branch 'pokt/main' into chore/introduce-submodule
bryanchriswhite File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
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
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
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
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
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
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
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
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
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
Oops, something went wrong.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do you think we'll be able to get rid of the entire "provider" paradigm once this is done?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't have a definitive answer yet, I still have to make some time to think it through holistically.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
My 2 POKT: We can replace
providerswithsubmoduelsaltogether. It's a DI approach and providers were created before the module design was mature.