-
Notifications
You must be signed in to change notification settings - Fork 33
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Core] Deploying all-the-protocol-actors (#710)
## Description Adds necessary updates to begin deploying different kind of actor nodes for Pocket Network. It is still incomplete according to #613 . ## Issue Fixes #613 ## Type of change Please mark the relevant option(s): - [x] New feature, functionality or library - [ ] Bug fix - [ ] Code health or cleanup - [x] Major breaking change - [x] Documentation - [x] Development Tools ## List of changes - Updates localnet to support deploying different actors - Adds new config protos for enabling various actors - Creates and starts new actor specific utility module - Adds new RPC routes - /v1/query/nodeRoles - Adds new CLI command `bin/p1 query noderoles` for querying a nodes roles - Stub `HandleRelay` - Converts "" to ":memory:" to be explicit about using in memory stores ## Testing - [x] `make develop_test`; if any code changes were made - [x] [Docker Compose LocalNet](https://github.com/pokt-network/pocket/blob/main/docs/development/README.md); if any major functionality was changed or introduced - [x] [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 - [x] 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: github-actions <[email protected]>
- Loading branch information
Showing
67 changed files
with
2,279 additions
and
388 deletions.
There are no files selected for viewing
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
/var | ||
.idea | ||
.vscode | ||
.github |
This file contains 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 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 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 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 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,56 @@ | ||
{ | ||
"root_directory": "/go/src/github.com/pocket-network", | ||
"private_key": "90ccfd6ba76d876e02ba09440af67582e0f4a37cbda2ce4c30b251132b670eda2777a49cdfde21867a538ddcfca05002f0115b1955a75b80e965ed63fc95f809", | ||
"consensus": { | ||
"max_mempool_bytes": 500000000, | ||
"pacemaker_config": { | ||
"timeout_msec": 10000, | ||
"manual": true, | ||
"debug_time_between_steps_msec": 1000 | ||
}, | ||
"private_key": "90ccfd6ba76d876e02ba09440af67582e0f4a37cbda2ce4c30b251132b670eda2777a49cdfde21867a538ddcfca05002f0115b1955a75b80e965ed63fc95f809", | ||
"server_mode_enabled": true | ||
}, | ||
"utility": { | ||
"max_mempool_transaction_bytes": 1073741824, | ||
"max_mempool_transactions": 9000 | ||
}, | ||
"persistence": { | ||
"postgres_url": "postgres://postgres:postgres@pocket-db:5432/postgres", | ||
"node_schema": "fisherman1", | ||
"block_store_path": "/var/blockstore", | ||
"tx_indexer_path": "/var/txindexer", | ||
"trees_store_dir": "/var/trees", | ||
"max_conns_count": 50, | ||
"min_conns_count": 1, | ||
"max_conn_lifetime": "5m", | ||
"max_conn_idle_time": "1m", | ||
"health_check_period": "30s" | ||
}, | ||
"p2p": { | ||
"hostname": "fisherman1", | ||
"port": 42069, | ||
"use_rain_tree": true, | ||
"is_empty_connection_type": false, | ||
"private_key": "90ccfd6ba76d876e02ba09440af67582e0f4a37cbda2ce4c30b251132b670eda2777a49cdfde21867a538ddcfca05002f0115b1955a75b80e965ed63fc95f809", | ||
"max_mempool_count": 100000 | ||
}, | ||
"telemetry": { | ||
"enabled": true, | ||
"address": "0.0.0.0:9000", | ||
"endpoint": "/metrics" | ||
}, | ||
"logger": { | ||
"level": "debug", | ||
"format": "pretty" | ||
}, | ||
"rpc": { | ||
"enabled": true, | ||
"port": 50832, | ||
"timeout": 30000, | ||
"use_cors": false | ||
}, | ||
"fisherman": { | ||
"enabled": true | ||
} | ||
} |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,57 @@ | ||
{ | ||
"root_directory": "/go/src/github.com/pocket-network", | ||
"private_key": "e4ad8d293ebf5287e2403e6483ecb6c4e80b22b2d3effc8698dfe34eb35fc9466ac62bddc541432cff818a02bab732f815ef2e6f7099e7dddc793d62d482b451", | ||
"consensus": { | ||
"max_mempool_bytes": 500000000, | ||
"pacemaker_config": { | ||
"timeout_msec": 10000, | ||
"manual": true, | ||
"debug_time_between_steps_msec": 1000 | ||
}, | ||
"private_key": "e4ad8d293ebf5287e2403e6483ecb6c4e80b22b2d3effc8698dfe34eb35fc9466ac62bddc541432cff818a02bab732f815ef2e6f7099e7dddc793d62d482b451", | ||
"server_mode_enabled": true | ||
}, | ||
"utility": { | ||
"max_mempool_transaction_bytes": 1073741824, | ||
"max_mempool_transactions": 9000 | ||
}, | ||
"persistence": { | ||
"postgres_url": "postgres://postgres:postgres@pocket-db:5432/postgres", | ||
"node_schema": "servicer1", | ||
"block_store_path": "/var/blockstore", | ||
"tx_indexer_path": "/var/txindexer", | ||
"trees_store_dir": "/var/trees", | ||
"max_conns_count": 50, | ||
"min_conns_count": 1, | ||
"max_conn_lifetime": "5m", | ||
"max_conn_idle_time": "1m", | ||
"health_check_period": "30s" | ||
}, | ||
"p2p": { | ||
"hostname": "servicer1", | ||
"port": 42069, | ||
"use_rain_tree": true, | ||
"is_empty_connection_type": false, | ||
"private_key": "e4ad8d293ebf5287e2403e6483ecb6c4e80b22b2d3effc8698dfe34eb35fc9466ac62bddc541432cff818a02bab732f815ef2e6f7099e7dddc793d62d482b451", | ||
"max_mempool_count": 100000 | ||
}, | ||
"telemetry": { | ||
"enabled": true, | ||
"address": "0.0.0.0:9000", | ||
"endpoint": "/metrics" | ||
}, | ||
"logger": { | ||
"level": "debug", | ||
"format": "pretty" | ||
}, | ||
"rpc": { | ||
"enabled": true, | ||
"port": 50832, | ||
"timeout": 30000, | ||
"use_cors": false | ||
}, | ||
"servicer": { | ||
"enabled": true, | ||
"chains": ["0001"] | ||
} | ||
} |
This file contains 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 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 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 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.