-
Notifications
You must be signed in to change notification settings - Fork 33
[P2P] KISS 2 - Peer discovery [Merge me after #520] - (Issues: #416, #429) #521
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 all commits
Commits
Show all changes
241 commits
Select commit
Hold shift + click to select a range
f7a82ba
tilt + PO + localnet
okdas 62683a5
--wip-- [skip ci]
okdas 67132eb
--wip-- [skip ci]
okdas 764c722
observability stack
okdas c2c0fd5
--wip-- [skip ci]
okdas 2960669
grafana is auto provisioned with observability stack
okdas 1455a40
--wip-- [skip ci]
okdas ca9ebeb
stabilizing tilt
okdas 1fd8bb1
--wip-- [skip ci]
okdas 048947c
more changes to grafana, tilt and docs
okdas 2fb9f04
more docs
okdas e66bd74
let tilt ignore the same stuff as git, so it wont get triggered by ve…
okdas cc95782
note about changing pocket-operator code
okdas 5198b1d
Merge branch 'main' into dk-localnet-pocket-operator
okdas f0aa697
Update Makefile
okdas 8b50310
Update Makefile
okdas 52a44d7
Update Makefile
okdas 846ba6c
requested changes so far
okdas 558768e
more requested changes
okdas 03f3ba3
Merge branch 'main' into dk-localnet-pocket-operator
okdas 5b824af
some requested changes
okdas d53eded
Merge branch 'main' into dk-localnet-pocket-operator
okdas 5225c3e
add mermaid diagram
okdas b2cb5af
clarify location of the config files
okdas 80d790d
--wip-- [skip ci]
okdas c94cb4f
localnet without operator
okdas 78f09da
Merge branch 'main' into dk-localnet-pocket-operator
okdas 372bb6c
latest config
okdas b92bc03
Merge branch 'main' into dk-localnet-pocket-operator
okdas 1b103d7
fully working operatorless localnet
okdas 0f354d9
auto update now works too
okdas 7631fd3
--wip-- [skip ci]
okdas 1d57ceb
bump documentation
okdas ac40457
change config a bit
okdas 06c8ef3
this is not needed anymore
okdas cba72f7
Merge branch 'main' into dk-localnet-pocket-operator
okdas a778f2c
can scale validators automatically
okdas 2e47e2c
change keys
okdas fa24420
Merge branch 'main' into dk-localnet-pocket-operator
okdas ebd5dd8
also replace pubkeys
okdas defca3b
complete changing the keys // tests passed
okdas 03e5a04
bring bck state hashes
okdas 36b1e5f
Merge branch 'main' into dk-localnet-pocket-operator
okdas 19d6ba4
wip
okdas fae2775
wip
okdas 28c2ee0
add/change changelogs
okdas 27d0daf
create localnet_config.yaml when it doesn exist
okdas 294ae17
Updated gitinore for Tilt
Olshansk bc846f3
Made the Makefile help command work
Olshansk 792f973
Renamed the readme file and fixed default formatting
Olshansk 25a4a36
Update error messages
Olshansk cc96bf3
Update error messages
Olshansk 8364117
WIP commit - review + removing $ everywhere
Olshansk 1261079
Update all the documentation
Olshansk 4c1fd86
feat(localnet): initcontainer to wait for postgres
deblasis f75fde2
feat(localnet): initcontainer to wait for postgres
deblasis cfca9c6
feat(localnet): cluster-manager POC
deblasis b46d2d3
also install helm
okdas f7e41fb
feat(crypto): ed25519
deblasis e0873d6
refactor(genesis): added accounts for all the validators in Localnet
deblasis e9689ab
refactor(localnet): renamed cluster-manager serviceAccount
deblasis 23b2d9b
feat(localnet): cluster-manager validator keys from secret - WIP
deblasis 2dc1bae
fix(utility): nil pointer fix
deblasis 7188a2e
requested changes so far
okdas 1bf5fd4
more requested changes
okdas 54a7629
update links
okdas 7ec2217
include demo
okdas 1ac46b8
chore(docker-compose): renamed deployment to pocket-v1
deblasis e280594
feat(CLI): allowing non interactive stake and unstake
deblasis f0eaf43
feat(localnet): cluster-manager dogfoods the CLI to stake/unstake
deblasis fc7f167
feat(localnet): dogfooding CLI in cluster-manager
deblasis a920a5d
feat(makefile): localnet_db_cli
deblasis 6237753
feat(utility): clearing mempool on resetToGenesis
deblasis 841d90c
chore(go.mod): tidy
deblasis 33a45cf
Update build/localnet/README.md
okdas 469e67a
Update build/localnet/README.md
okdas a8df9d9
Update build/localnet/README.md
okdas 5a5c042
Update build/localnet/README.md
okdas 62561c6
Update build/localnet/Tiltfile
okdas 46d3f74
Update build/localnet/README.md
okdas 2135d26
Update build/localnet/README.md
okdas fe98bce
Update build/localnet/README.md
okdas 1e59e9c
Update build/localnet/Tiltfile
okdas 1c17e68
clarify postgres ports
okdas f3d083b
Merge branch 'main' into dk-localnet-pocket-operator
okdas 8e864f3
fix changelogs
okdas 93851be
oops, this got lost!
okdas 4b8da0f
Merge remote-tracking branch 'upstream/dk-localnet-pocket-operator' i…
deblasis 778c33d
refactor(localnet): updates from dima's branch
deblasis aea3359
feat(localnet): cli-client waits for v1-validator001 (target node)
deblasis 61606f7
feat(localnet): accounts updated in genesis for localnet as well
deblasis 104339a
fix(utility): logging error if ApplyTransaction fails...
deblasis 18a6706
feat(consensus): NewHeightEvent
deblasis ce6b59a
Revert "feat(consensus): NewHeightEvent"
deblasis cc3c8c7
feat(consensus): NewHeightEvent
deblasis 9a441a4
feat(consensus): resetToGenesis publishes NewHeightEvent
deblasis 00d4d8c
feat(consensus): SetHeight publishes NewHeightEvent
deblasis d418dc5
refactor(shared): ModulesRegistry
deblasis 347102e
fix(shared): module registration
deblasis cbd9213
fix(runtime): fixed tests
deblasis 3f0aaeb
Merge remote-tracking branch 'upstream/main' into issue/416-kiss-peer…
deblasis c51fcfb
fix(utility): missing import
deblasis 6e5e014
fix(bus): GetModulesRegistry implementation
deblasis ac8c3f9
refactor(rpc): github.com/deepmap/oapi-codegen/pkg/runtime import
deblasis 0a9a7c7
feat(rpc): GET /v1/p2p/address_book implementation
deblasis 0aaa652
feat(shared): baseModules -> DRY
deblasis e83dc10
fix(p2p): modulesRegistry mock config
deblasis 8260e63
refactor(infra): passing RPC_HOST to debug client
deblasis fbf013e
feat(p2p): rpc addrbook_provider
deblasis 3b74980
feat(p2p): rpc current_height_provider
deblasis 7e2b809
feat(shared): generalized module options
deblasis e7b76fd
fix(p2p): raintree using currentHeightProvider
deblasis 0aef8e2
fix(rpc): fixed openapi P2PStakedActorsResponse
deblasis 596d754
refactor(runtime): exposed DefailtRPCPort
deblasis f840eed
fix(runtime): fixed bus in RuntimeManager
deblasis 378e87b
refactor(cli): debug cli now sources addressbook remotely via RPC
deblasis 00df050
Merge remote-tracking branch 'upstream/main' into issue/416-kiss-peer…
deblasis 727b729
fix(cli): merge fix
deblasis de7c8c0
fix(rpc): merge fix
deblasis 352c068
refactor(p2p): deprecated debugCurrentHeightProvider
deblasis 18852ee
fix(p2p): fixed tests (mock config)
deblasis 4331a9d
refactor(shared): simplified module registration
deblasis 029fd17
chore(shared): linting
deblasis d1684cb
chore(shared): linting
deblasis 00af4ac
refactor(cli): centralized not_interactive flag
deblasis 9f5e35e
chore(cli): updated flag description
deblasis e84977b
refactor(cli): refactored broadcast
deblasis 17137d2
feat(p2p): reacting to height changes => addrbook delta
deblasis 59a0ea1
refactor(rpc): simplified module
deblasis 7a89eec
feat(cluster-manager): wait for validator1
deblasis 1a92565
feat(state_machine): node finite state machine WIP
deblasis 0401e39
fix(state-machine): updated to consider serverMode as independent proc
deblasis 36535ad
fix(cluster-manager): fix port
deblasis 00adc0d
refactor(p2p): bootstrapping
deblasis a29c2bc
feat(pocket): override bootstrapnodes
deblasis e6cb404
refactor(rpc): rpcServer implements BaseIntegratableModule
deblasis 3e2c538
fix(consensus): fixed tests (mock cfg)
deblasis 622f4d3
fix(p2p): bus shadowing embed fix
deblasis 8171a05
chore(state_machine): shadowing fix
deblasis 7b4e7c4
fix(p2p): error checking on add/remove peer
deblasis d08082d
chore(shared): return err on HandleEvent
deblasis 8eba0db
chore(shared): linting
deblasis 4c92b09
docs(consensus): CHANGELOG + nit
deblasis 3f37ba9
docs(p2p): CHANGELOG
deblasis 41dd4a4
chore(p2p): typo
deblasis 78eac4a
chore(cluster-manager): linting
deblasis a021202
chore(cluster-manager): linting exclusion for CLI
deblasis 0ae1426
docs(shared): CHANGELOGs + nits
deblasis 6d5ff55
docs(shared): CHANGELOGS + nits
deblasis d6a4a63
Merge remote-tracking branch 'upstream/main' into issue/416-kiss-peer…
deblasis aab3ecc
docs(state_machine): docs + nits
deblasis 261b634
docs(shared): CHANGELOGs
deblasis 4a7afd6
fix(state_machine): CHANGELOG version
deblasis e8ae3ad
docs(persistence): typo
deblasis 2854dcb
chore(shared): linter nits
deblasis 41b2bcf
chore(cluster-manager): nit
deblasis d4a63a8
Merge remote-tracking branch 'upstream/main' into issue/416-kiss-peer…
deblasis f488c35
fix(shared): processing module options
deblasis b8f67b6
refactor(shared): base modules in their own package
deblasis dcee5a8
docs(shared): dates in CHANGELOG
deblasis ad2e783
Update Makefile
deblasis ef818eb
Update app/client/cli/actor.go
deblasis 11f8a7b
refactor(cli): injecting bus into CLI context
deblasis bcef6eb
refactor(cli): bus in cli context
deblasis 143feaa
feat(shared): module Create with ModuleOptions
deblasis a046984
docs(shared): godoc for ModuleOption
deblasis 82505e4
docs(shared): updated README
deblasis da9774b
feat(shared): base_modules
deblasis f784dab
fix(utility): logging error when ApplyTransaction fails
deblasis 049023c
refactor(utility): implementing base_modules and options
deblasis a18ecf5
fix(utility): using logger in message_handler
deblasis e01c75c
docs(utility): changelog
deblasis 142d53b
refactor(telemetry): implementing base_modules and options
deblasis 3c84eae
docs(telemetry): changelog
deblasis 4eed45a
feat(shared): ModulesRegistry interface
deblasis b094622
refactor(shared): updated bus interface to use ModuleRegistry
deblasis e6e8fe5
refactor(persistence): implementing base_modules and options
deblasis f8ed453
docs(persistence): changelog
deblasis 2a21542
refactor(consensus): implementing base_modules and options
deblasis e70b308
refactor(logger): implementing base_modules and options
deblasis 0d20ada
docs(logger): changelog
deblasis 963212a
refactor(rpc): implementing base_modules and options
deblasis 8871a3d
docs(rpc): changelog
deblasis 8d50538
feat(runtime): ModulesRegistry implementation
deblasis 5141f07
feat(p2p): implementing base_modules and options
deblasis 1d98c9f
refactor(state_sync): implementing base_modules and options
deblasis f5f9777
refactor(runtime): bus uses ModulesRegistry and logger
deblasis 4c5f50c
fix(runtime): StateMachine doesn't exist yet :)
deblasis 7023ca0
refactor(runtime): errors referring ModulesRegistry
deblasis 34f3d87
refactor(runtime): runtimeManager implements base IntegratableModule
deblasis 74d012f
feat(state_machine): KISS FSM implementation
deblasis d697a7f
feat(shared): state_machine integration with node
deblasis 8e89219
feat(shared): FSM states and events
deblasis c66a5c8
refactor(shared): messaging events
deblasis eb4174b
refactor(shared): state_machine interface
deblasis 7b974a9
fix(runtime): removed bus from Manager, it's embedded
deblasis 8a5de14
refactor(consensus): updated tests
deblasis 3a71510
feat(consensus): publishing event on new height
deblasis a2e3348
refactor(leader_election): implementing base_modules and options
deblasis f006a1d
refactor(pacemaker): implementing base_modules and options
deblasis 8cdc827
feat(consensus): sending events via SetHeight
deblasis 5514fc3
docs(consensus): changelog
deblasis 72f96d9
docs(shared): updated README
deblasis 934fe00
chore(go.mod): tidy
deblasis 9bf8b81
fix(p2p): fixes from backporting legacy functionality
deblasis 724a326
docs(shared): changelogs
deblasis c0cdeac
feat(consensus): improved test resiliency
deblasis 64bec6c
feat(Makefile): make localnet_db_cli
deblasis 9bd11e3
fix(Makefile): fixed make go_lint
deblasis b02cdf1
feat(p2p): event handling
deblasis aa450db
refactor(p2p): refactored providers
deblasis 9eddb29
feat(p2p): updated raintree to use currentHeightProvider
deblasis b96f60f
refactor(p2p): RemovePeerFromAddrBook
deblasis dfa80c6
refactor(p2p): providers from DI (bus)
deblasis e13f375
feat(p2p): addrbook_delta
deblasis dfabb4b
docs(p2p): changelog
deblasis 0a78b70
feat(rpc): exposing staked_actors_addrbook via rpc
deblasis 0a0ec29
feat(shared): crypto UnmarshalText for ed25519
deblasis 1828aca
chore(runtime): GetRuntimeMgr last (grouping modules)
deblasis e5c93f7
chore(consensus): lint
deblasis 312ba73
Merge remote-tracking branch 'upstream/issue/499-fsm' into issue/416-…
deblasis 26d1b65
refactor(cli): using rpcprovider in debug commands
deblasis 6c5444a
docs(cli): changelog
deblasis 0c01bb4
refactor(runtime): updated defaults
deblasis 91645e9
fix(runtime): configs
deblasis f160016
chore(go.mod): tidy
deblasis f9d9e68
fix(p2p): using defaults
deblasis 464dca0
fix(p2p): event_handler return error fix
deblasis cfcee30
fix(cli): rpc host overriding
deblasis 25910ab
refactor(cli): using cli context to pass the bus around
deblasis 8af0a90
chore(cli): unused import 🧹
deblasis 6baf43b
docs(shared): changelogs
deblasis facca64
Update app/client/cli/utils.go
deblasis 1a32c58
Update p2p/providers/addrbook_provider/rpc/provider.go
deblasis b09edc2
Revert "Update app/client/cli/utils.go"
deblasis 918c466
Merge branch 'issue/416-kiss-peer-discovery-light' of github.com:pokt…
deblasis c981eed
refactor(rpc): updated getProtocolActorGetter for readability
deblasis 06bb8d9
refactor(p2p): style in providers
deblasis c305aa6
Merge remote-tracking branch 'upstream/main' into issue/416-kiss-peer…
deblasis f863e65
fix(consensus): typo
deblasis 96c1e0e
chore(p2p): providers readability improvement
deblasis 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
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.
Uh oh!
There was an error while loading. Please reload this page.