Skip to content
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

[Infrastructure] LocalNet on Kubernetes #354

Merged
merged 77 commits into from
Feb 6, 2023
Merged
Show file tree
Hide file tree
Changes from 47 commits
Commits
Show all changes
77 commits
Select commit Hold shift + click to select a range
f7a82ba
tilt + PO + localnet
okdas Nov 12, 2022
62683a5
--wip-- [skip ci]
okdas Nov 12, 2022
67132eb
--wip-- [skip ci]
okdas Nov 15, 2022
764c722
observability stack
okdas Nov 19, 2022
c2c0fd5
--wip-- [skip ci]
okdas Nov 21, 2022
2960669
grafana is auto provisioned with observability stack
okdas Nov 22, 2022
1455a40
--wip-- [skip ci]
okdas Nov 29, 2022
ca9ebeb
stabilizing tilt
okdas Dec 6, 2022
1fd8bb1
--wip-- [skip ci]
okdas Dec 7, 2022
048947c
more changes to grafana, tilt and docs
okdas Dec 7, 2022
2fb9f04
more docs
okdas Dec 10, 2022
e66bd74
let tilt ignore the same stuff as git, so it wont get triggered by ve…
okdas Dec 10, 2022
cc95782
note about changing pocket-operator code
okdas Dec 10, 2022
5198b1d
Merge branch 'main' into dk-localnet-pocket-operator
okdas Dec 10, 2022
f0aa697
Update Makefile
okdas Dec 14, 2022
8b50310
Update Makefile
okdas Dec 14, 2022
52a44d7
Update Makefile
okdas Dec 14, 2022
846ba6c
requested changes so far
okdas Dec 14, 2022
558768e
more requested changes
okdas Dec 14, 2022
03f3ba3
Merge branch 'main' into dk-localnet-pocket-operator
okdas Dec 27, 2022
5b824af
some requested changes
okdas Dec 28, 2022
d53eded
Merge branch 'main' into dk-localnet-pocket-operator
okdas Jan 4, 2023
5225c3e
add mermaid diagram
okdas Jan 5, 2023
b2cb5af
clarify location of the config files
okdas Jan 5, 2023
80d790d
--wip-- [skip ci]
okdas Jan 5, 2023
c94cb4f
localnet without operator
okdas Jan 10, 2023
78f09da
Merge branch 'main' into dk-localnet-pocket-operator
okdas Jan 10, 2023
372bb6c
latest config
okdas Jan 11, 2023
b92bc03
Merge branch 'main' into dk-localnet-pocket-operator
okdas Jan 11, 2023
1b103d7
fully working operatorless localnet
okdas Jan 11, 2023
0f354d9
auto update now works too
okdas Jan 11, 2023
7631fd3
--wip-- [skip ci]
okdas Jan 12, 2023
1d57ceb
bump documentation
okdas Jan 14, 2023
ac40457
change config a bit
okdas Jan 14, 2023
06c8ef3
this is not needed anymore
okdas Jan 19, 2023
cba72f7
Merge branch 'main' into dk-localnet-pocket-operator
okdas Jan 19, 2023
a778f2c
can scale validators automatically
okdas Jan 20, 2023
2e47e2c
change keys
okdas Jan 28, 2023
fa24420
Merge branch 'main' into dk-localnet-pocket-operator
okdas Jan 28, 2023
ebd5dd8
also replace pubkeys
okdas Jan 28, 2023
defca3b
complete changing the keys // tests passed
okdas Jan 30, 2023
03e5a04
bring bck state hashes
okdas Jan 30, 2023
36b1e5f
Merge branch 'main' into dk-localnet-pocket-operator
okdas Jan 31, 2023
19d6ba4
wip
okdas Jan 31, 2023
fae2775
wip
okdas Jan 31, 2023
28c2ee0
add/change changelogs
okdas Jan 31, 2023
27d0daf
create localnet_config.yaml when it doesn exist
okdas Feb 1, 2023
294ae17
Updated gitinore for Tilt
Olshansk Jan 31, 2023
bc846f3
Made the Makefile help command work
Olshansk Feb 1, 2023
792f973
Renamed the readme file and fixed default formatting
Olshansk Feb 1, 2023
25a4a36
Update error messages
Olshansk Feb 1, 2023
cc96bf3
Update error messages
Olshansk Feb 1, 2023
8364117
WIP commit - review + removing $ everywhere
Olshansk Feb 1, 2023
1261079
Update all the documentation
Olshansk Feb 1, 2023
f75fde2
feat(localnet): initcontainer to wait for postgres
deblasis Feb 2, 2023
b46d2d3
also install helm
okdas Feb 2, 2023
7188a2e
requested changes so far
okdas Feb 2, 2023
1bf5fd4
more requested changes
okdas Feb 3, 2023
54a7629
update links
okdas Feb 3, 2023
7ec2217
include demo
okdas Feb 3, 2023
33a45cf
Update build/localnet/README.md
okdas Feb 3, 2023
469e67a
Update build/localnet/README.md
okdas Feb 3, 2023
a8df9d9
Update build/localnet/README.md
okdas Feb 3, 2023
5a5c042
Update build/localnet/README.md
okdas Feb 3, 2023
62561c6
Update build/localnet/Tiltfile
okdas Feb 3, 2023
46d3f74
Update build/localnet/README.md
okdas Feb 3, 2023
2135d26
Update build/localnet/README.md
okdas Feb 3, 2023
fe98bce
Update build/localnet/README.md
okdas Feb 3, 2023
1e59e9c
Update build/localnet/Tiltfile
okdas Feb 3, 2023
1c17e68
clarify postgres ports
okdas Feb 3, 2023
f3d083b
Merge branch 'main' into dk-localnet-pocket-operator
okdas Feb 3, 2023
8e864f3
fix changelogs
okdas Feb 3, 2023
93851be
oops, this got lost!
okdas Feb 3, 2023
3347fbe
Update build/localnet/README.md
okdas Feb 6, 2023
b8ba1c9
Merge branch 'main' into dk-localnet-pocket-operator
okdas Feb 6, 2023
5a1325b
change date on changelog
okdas Feb 6, 2023
da4a402
redundant changelog
okdas Feb 6, 2023
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 7 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,6 @@ shared/modules/mocks/*
p2p/types/mocks/*
!p2p/types/mocks/mocks.go


# TODO(team): Does the `types` directory contain generated or raw type files?
# types/

Expand Down Expand Up @@ -62,9 +61,15 @@ rpc/client.gen.go
# Ignored generated files by build/config/main.go
build/config/gen*.json

# Binary downloads and manipulations by helm
Olshansk marked this conversation as resolved.
Show resolved Hide resolved
**/charts
**/tmpcharts

# Ignored generated files by build
bin/*

# Validator keys used for testing/demoes
val1.json
val2.json
val2.json

localnet_config.yaml
56 changes: 56 additions & 0 deletions .tiltignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,56 @@
# Binaries for programs and plugins
Olshansk marked this conversation as resolved.
Show resolved Hide resolved

*.exe
*.exe~
*.dll
*.so
*.dylib

# Vim swap files
*.swp**

# Vscode
.vscode

# Test binary, built with `go test -c`
*.test

# Output of the go coverage tool, specifically when used with LiteIDE
*.out

# MacOS metadata
.DS_Store

# Intellij / Goland dot files
.idea/

# Generated Mocks (for testing)
shared/modules/mocks/
p2p/types/mocks/

# TODO(team): Does the `types` directory contain generated or raw type files?
# types/

# ignore protobuf generated files
*.pb.go

# Local debugging
temp_test.go

# Output of the go test results and coverage report (used by CI)
test_results.json
coverage.out

# Output of `make build_and_watch`
main

# generated RPC server and client from openapi.yaml
rpc/server.gen.go
rpc/client.gen.go

# Ignored generated files by build/config/main.go
build/config/gen*.json

# Binary downloads and manipulations by helm
**/charts
**/tmpcharts
32 changes: 32 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,7 @@ install_cli_deps: ## Installs `protoc-gen-go`, `mockgen`, 'protoc-go-inject-tag'
go install "github.com/golang/mock/mockgen@v1.6.0" && mockgen --version
go install "github.com/favadi/protoc-go-inject-tag@latest"
go install "github.com/deepmap/oapi-codegen/cmd/oapi-codegen@v1.11.0"
curl -fsSL https://raw.githubusercontent.com/tilt-dev/tilt/master/scripts/install.sh | bash
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

On my machine (Windows with Ubuntu 20.04 running in WSL2)

this command fails with

 @alex  curl -fsSL https://raw.githubusercontent.com/tilt-dev/tilt/master/scripts/install.sh | bash
+ brew bundle --file=-
Error: Formulae dependency graph sorting failed (likely due to a circular dependency):
binutils: ["linux-headers@5.15", "glibc", "zlib", "gcc@5"]
zstd: ["linux-headers@5.15", "glibc", "lz4", "xz", "zlib", "gcc@5"]
Please run the following commands and try again:
  brew update
  brew uninstall --ignore-dependencies --force binutils zstd
  brew install binutils zstd

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Also, I guess that helm CLI binary is a requirement that should be considered in the install_cli_deps as well

Copy link
Member Author

@okdas okdas Feb 2, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this command fails with

Oh no, I was sure tilt install script can be executed on Linux because the same script is offered for both macOS and Linux. https://docs.tilt.dev/install.html

Looking at the script, even on Linux, they check if brew CLI is available. That is probably because Homebrew supports Linux. When brew cli is available, they try to install tilt with it. Do you use brew a lot on your Linux WSL2 set up? It is possible your local brew set up might be out of date, have you tried to run the commands mentioned to fix this?

It would be easier to install tilt with go install like we do with other binaries, but unfortunately this is not supported.

Also, I guess that helm CLI binary is a requirement that should be considered in the install_cli_deps as well

Thanks for mentioning this, I added a helm install script to that make target. 🫡


.PHONY: develop_start
develop_start: ## Run all of the make commands necessary to develop on the project
Expand Down Expand Up @@ -442,6 +443,37 @@ gen_genesis_and_config: ## Generate the genesis and config files for LocalNet
clear_genesis_and_config: ## Clear the genesis and config files for LocalNet
rm build/config/gen.*.json

.PHONY: localnet_up
Olshansk marked this conversation as resolved.
Show resolved Hide resolved
## Starts up a LocalNet with all necessary dependencies (tl;dr `tilt up`)
localnet_up:
tilt up

.PHONY: localnet_client_debug
## Opens a `client debug` cli. It allows to interact with blockchain, e.g. change pace maker mode, reset to genesis, etc. Though the binary updated automatiacally on every code change, if client is already open you need to re-run this command to execute freshly compiled binary.
localnet_client_debug:
kubectl exec -it deploy/pocket-v1-cli-client -- client debug

.PHONY: localnet_shell
## Opens a shell in the pod that has `client` cli available. The binary updated automatically whenever the code changes.
localnet_shell:
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Which node does this shell into?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

With localnet_shell you get into a pod with pocket and client CLI available. Both binaries are automatically updated when code is changed in the repo. How do I make this more obvious – document it in .md files and make target?

kubectl exec -it deploy/pocket-v1-cli-client -- /bin/bash

.PHONY: localnet_logs_validators
## Outputs logs from all validators
localnet_logs_validators:
kubectl logs -l v1-purpose=validator --all-containers=true --tail=-1

.PHONY: localnet_logs_validators_follow
## Outputs logs from all validators and follows them
localnet_logs_validators_follow:
kubectl logs -l v1-purpose=validator --all-containers=true --max-log-requests=1000 --tail=-1 -f

.PHONY: localnet_down
## Stops LocalNet and cleans up dependencies (tl;dr `tilt down` + postgres database)
localnet_down:
tilt down
kubectl delete pvc data-dependencies-postgresql-0

Olshansk marked this conversation as resolved.
Show resolved Hide resolved
.PHONY: check_cross_module_imports
check_cross_module_imports: ## Lists cross-module imports
$(eval exclude_common=--exclude=Makefile --exclude-dir=shared --exclude-dir=app --exclude-dir=runtime)
Expand Down
100 changes: 100 additions & 0 deletions Tiltfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,100 @@
load('ext://helm_resource', 'helm_resource', 'helm_repo')
Olshansk marked this conversation as resolved.
Show resolved Hide resolved
okdas marked this conversation as resolved.
Show resolved Hide resolved
load('ext://namespace', 'namespace_create')
load('ext://restart_process', 'docker_build_with_restart')

# Create localnet config file from defaults, and if some default configuration doesn't exist in it - populate with default values
localnet_config_defaults = {
"validators": {
"count": 4
}
}

localnet_config_file = read_yaml('localnet_config.yaml', default=localnet_config_defaults)
localnet_config = {}
localnet_config.update(localnet_config_defaults)
localnet_config.update(localnet_config_file)

if localnet_config_file != localnet_config:
print('Updating localnet_config.yaml')
local('cat - > localnet_config.yaml', stdin=encode_yaml(localnet_config))

# List of directories Tilt watches to trigger a hot-reload on changes
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I realize you left this comment and it's in the code, but developers would be confused. Please add a section in localnet/README

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Instead of listing the directories in readme I am going to provide a link to the Tiltfile to that line.

deps = [
'app',
# 'build',
'consensus',
'p2p',
'persistance',
'rpc',
'runtime',
'shared',
'telemetry',
'utility',
'vendor',
'logger'
]

# Deploy dependencies (grafana, postgres, prometheus) and wire it up with localnet
helm_repo('grafana', 'https://grafana.github.io/helm-charts', resource_name='helm-repo-grafana')
helm_repo('prometheus-community', 'https://prometheus-community.github.io/helm-charts', resource_name='helm-repo-prometheus')
helm_repo('bitnami', 'https://charts.bitnami.com/bitnami', resource_name='helm-repo-bitnami')

# Avoid downloading dependencies if no missing/outdated charts
check_helm_dependencies = local("helm dependency list build/localnet/dependencies | awk '{print $4}' | grep -Ev 'ok|STATUS'")
helm_dependencies_not_ok_count = len(str(check_helm_dependencies).splitlines())
if helm_dependencies_not_ok_count > 1:
local('helm dependency update build/localnet/dependencies')

k8s_yaml(helm("build/localnet/dependencies", name='dependencies', namespace="default"))

# Builds the pocket binary. Note target OS is linux, because no matter what your OS is, container runs linux natively or in VM.
local_resource('pocket: Watch & Compile', 'GOOS=linux go build -o bin/pocket-linux app/pocket/main.go', deps=deps)
local_resource('debug client: Watch & Compile', 'GOOS=linux go build -tags=debug -o bin/client-linux app/client/*.go', deps=deps)

# Builds and maintains the validator container image after the binary is built on local machine, restarts a process on code change
docker_build_with_restart('validator-image', '.',
dockerfile_contents='''FROM debian:bullseye
COPY bin/pocket-linux /usr/local/bin/pocket
WORKDIR /
''',
only=['./bin/pocket-linux'],
entrypoint=["/usr/local/bin/pocket", "-config=/configs/config.json", "-genesis=/genesis.json"],
live_update=[
sync('bin/pocket-linux', '/usr/local/bin/pocket')
]
)

# Builds and maintains the client container image after the binary is built on local machine
docker_build_with_restart('client-image', '.',
dockerfile_contents='''FROM debian:bullseye
WORKDIR /
COPY bin/client-linux /usr/local/bin/client
''',
only=['bin/client-linux'],
entrypoint=["sleep", "infinity"],
live_update=[
sync('bin/client-linux', '/usr/local/bin/client')
]
)

# TODO(@okdas): https://github.com/tilt-dev/tilt/issues/3048
# Pushes localnet manifests to the cluster.
k8s_yaml([
'build/localnet/private-keys.yaml',
'build/localnet/configs.yaml',
'build/localnet/cli-client.yaml',
'build/localnet/network.yaml',
local("build/localnet/v1-validator-template.sh %s" % localnet_config['validators']['count'], quiet=True),
])

# # Exposes postgres port to 5432 on the host machine.
# k8s_resource(new_name='postgres',
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can we delete this?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I would keep it in case developer wants to connect to the postgres cluster with their own tooling (dbeaver, etc.) - that requires exposing a port. I changed the comment to reflect this is an example. Do you think this makes sense?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yup, just need to update the comment.

# objects=['pocket-database:postgresql'],
# extra_pod_selectors=[{'cluster-name': 'pocket-database'}],
# port_forwards=5432)

# Exposes grafana
k8s_resource(new_name='grafana',
workload='dependencies-grafana',
extra_pod_selectors=[{'app.kubernetes.io/name': 'grafana'}],
port_forwards=['42000:3000'])
13 changes: 10 additions & 3 deletions app/client/cli/debug.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,6 @@ const (
PromptTriggerNextView string = "TriggerNextView"
PromptTogglePacemakerMode string = "TogglePacemakerMode"
PromptShowLatestBlockInStore string = "ShowLatestBlockInStore"

defaultConfigPath = "build/config/config1.json"
defaultGenesisPath = "build/config/genesis.json"
)

var (
Expand All @@ -41,6 +38,9 @@ var (
PromptShowLatestBlockInStore,
}

defaultConfigPath = getEnv("CONFIG_PATH", "build/config/config1.json")
Olshansk marked this conversation as resolved.
Show resolved Hide resolved
defaultGenesisPath = getEnv("GENESIS_PATH", "build/config/genesis.json")

// validators holds the list of the validators at genesis time so that we can use it to create a debug address book provider.
// Its purpose is to allow the CLI to "discover" the nodes in the network. Since currently we don't have churn and we run nodes only in LocalNet, we can rely on the genesis state.
// HACK(#416): This is a temporary solution that guarantees backward compatibility while we implement peer discovery
Expand Down Expand Up @@ -97,6 +97,13 @@ func runDebug(cmd *cobra.Command, args []string) (err error) {
}
}

func getEnv(key, fallback string) string {
if value, ok := os.LookupEnv(key); ok {
return value
}
return fallback
}

func promptGetInput() (string, error) {
prompt := promptui.Select{
Label: "Select an action",
Expand Down
13 changes: 13 additions & 0 deletions app/docs/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
# Changelog

All notable changes to CLI binaries will be documented in this file.

The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## [Unreleased]

## [0.0.0.1] - 2023-01-31

- Introduced `CONFIG_PATH` and `GENESIS_PATH` environment variables for debug CLI commands

6 changes: 3 additions & 3 deletions build/config/config1.json
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
{
"root_directory": "/go/src/github.com/pocket-network",
"private_key": "c6c136d010d07d7f5e9944aa3594a10f9210dd3e26ebc1bc1516a6d957fd0df353ee26c82826694ffe1773d7b60d5f20dd9e91bdf8745544711bec5ff9c6fb4a",
"private_key": "0ca1a40ddecdab4f5b04fa0bfed1d235beaa2b8082e7554425607516f0862075dfe357de55649e6d2ce889acf15eb77e94ab3c5756fe46d3c7538d37f27f115e",
"consensus": {
"max_mempool_bytes": 500000000,
"pacemaker_config": {
"timeout_msec": 5000,
"manual": true,
"debug_time_between_steps_msec": 1000
},
"private_key": "c6c136d010d07d7f5e9944aa3594a10f9210dd3e26ebc1bc1516a6d957fd0df353ee26c82826694ffe1773d7b60d5f20dd9e91bdf8745544711bec5ff9c6fb4a"
"private_key": "0ca1a40ddecdab4f5b04fa0bfed1d235beaa2b8082e7554425607516f0862075dfe357de55649e6d2ce889acf15eb77e94ab3c5756fe46d3c7538d37f27f115e"
},
"utility": {
"max_mempool_transaction_bytes": 1073741824,
Expand All @@ -30,7 +30,7 @@
"consensus_port": 8080,
"use_rain_tree": true,
"is_empty_connection_type": false,
"private_key": "c6c136d010d07d7f5e9944aa3594a10f9210dd3e26ebc1bc1516a6d957fd0df353ee26c82826694ffe1773d7b60d5f20dd9e91bdf8745544711bec5ff9c6fb4a",
"private_key": "0ca1a40ddecdab4f5b04fa0bfed1d235beaa2b8082e7554425607516f0862075dfe357de55649e6d2ce889acf15eb77e94ab3c5756fe46d3c7538d37f27f115e",
"max_mempool_count": 100000
},
"telemetry": {
Expand Down
6 changes: 3 additions & 3 deletions build/config/config2.json
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
{
"root_directory": "/go/src/github.com/pocket-network",
"private_key": "b37d3ba2f232060c41ba1177fea6008d885fcccad6826d64ee7d49f94d1dbc49a8b6be75d7551da093f788f7286c3a9cb885cfc8e52710eac5f1d5e5b4bf19b2",
"private_key": "ba81e6e56d293895b299bc495ae75d490644429a5e0028fabeb5e1871c1098e7eb2c78364525a210d994a83e02d18b4287ab81f6670cf4510ab6c9f51e296d91",
"consensus": {
"max_mempool_bytes": 500000000,
"pacemaker_config": {
"timeout_msec": 5000,
"manual": true,
"debug_time_between_steps_msec": 1000
},
"private_key": "b37d3ba2f232060c41ba1177fea6008d885fcccad6826d64ee7d49f94d1dbc49a8b6be75d7551da093f788f7286c3a9cb885cfc8e52710eac5f1d5e5b4bf19b2"
"private_key": "ba81e6e56d293895b299bc495ae75d490644429a5e0028fabeb5e1871c1098e7eb2c78364525a210d994a83e02d18b4287ab81f6670cf4510ab6c9f51e296d91"
},
"utility": {
"max_mempool_transaction_bytes": 1073741824,
Expand All @@ -30,7 +30,7 @@
"consensus_port": 8080,
"use_rain_tree": true,
"is_empty_connection_type": false,
"private_key": "b37d3ba2f232060c41ba1177fea6008d885fcccad6826d64ee7d49f94d1dbc49a8b6be75d7551da093f788f7286c3a9cb885cfc8e52710eac5f1d5e5b4bf19b2",
"private_key": "ba81e6e56d293895b299bc495ae75d490644429a5e0028fabeb5e1871c1098e7eb2c78364525a210d994a83e02d18b4287ab81f6670cf4510ab6c9f51e296d91",
"max_mempool_count": 100000
},
"telemetry": {
Expand Down
6 changes: 3 additions & 3 deletions build/config/config3.json
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
{
"root_directory": "/go/src/github.com/pocket-network",
"private_key": "5db3e9d97d04d6d70359de924bb02039c602080d6bf01a692bad31ad5ef93524c16043323c83ffd901a8bf7d73543814b8655aa4695f7bfb49d01926fc161cdb",
"private_key": "25b385b367a827eaafcdb1003bd17a25f2ecc0d10d41f138846f52ae1015aa941041a9c76539791fef9bee5b4fcd5bf4a1a489e0790c44cbdfa776b901e13b50",
"consensus": {
"max_mempool_bytes": 500000000,
"pacemaker_config": {
"timeout_msec": 5000,
"manual": true,
"debug_time_between_steps_msec": 1000
},
"private_key": "5db3e9d97d04d6d70359de924bb02039c602080d6bf01a692bad31ad5ef93524c16043323c83ffd901a8bf7d73543814b8655aa4695f7bfb49d01926fc161cdb"
"private_key": "25b385b367a827eaafcdb1003bd17a25f2ecc0d10d41f138846f52ae1015aa941041a9c76539791fef9bee5b4fcd5bf4a1a489e0790c44cbdfa776b901e13b50"
},
"utility": {
"max_mempool_transaction_bytes": 1073741824,
Expand All @@ -30,7 +30,7 @@
"consensus_port": 8080,
"use_rain_tree": true,
"is_empty_connection_type": false,
"private_key": "5db3e9d97d04d6d70359de924bb02039c602080d6bf01a692bad31ad5ef93524c16043323c83ffd901a8bf7d73543814b8655aa4695f7bfb49d01926fc161cdb",
"private_key": "25b385b367a827eaafcdb1003bd17a25f2ecc0d10d41f138846f52ae1015aa941041a9c76539791fef9bee5b4fcd5bf4a1a489e0790c44cbdfa776b901e13b50",
"max_mempool_count": 100000
},
"telemetry": {
Expand Down
6 changes: 3 additions & 3 deletions build/config/config4.json
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
{
"root_directory": "/go/src/github.com/pocket-network",
"private_key": "6fd0bc54cc2dd205eaf226eebdb0451629b321f11d279013ce6fdd5a33059256b2eda2232ffb2750bf761141f70f75a03a025f65b2b2b417c7f8b3c9ca91e8e4",
"private_key": "4ff3292ff14213149446f8208942b35439cb4b2c5e819f41fb612e880b5614bdd6cea8706f6ee6672c1e013e667ec8c46231e0e7abcf97ba35d89fceb8edae45",
"consensus": {
"max_mempool_bytes": 500000000,
"pacemaker_config": {
"timeout_msec": 5000,
"manual": true,
"debug_time_between_steps_msec": 1000
},
"private_key": "6fd0bc54cc2dd205eaf226eebdb0451629b321f11d279013ce6fdd5a33059256b2eda2232ffb2750bf761141f70f75a03a025f65b2b2b417c7f8b3c9ca91e8e4"
"private_key": "4ff3292ff14213149446f8208942b35439cb4b2c5e819f41fb612e880b5614bdd6cea8706f6ee6672c1e013e667ec8c46231e0e7abcf97ba35d89fceb8edae45"
},
"utility": {
"max_mempool_transaction_bytes": 1073741824,
Expand All @@ -30,7 +30,7 @@
"consensus_port": 8080,
"use_rain_tree": true,
"is_empty_connection_type": false,
"private_key": "6fd0bc54cc2dd205eaf226eebdb0451629b321f11d279013ce6fdd5a33059256b2eda2232ffb2750bf761141f70f75a03a025f65b2b2b417c7f8b3c9ca91e8e4",
"private_key": "4ff3292ff14213149446f8208942b35439cb4b2c5e819f41fb612e880b5614bdd6cea8706f6ee6672c1e013e667ec8c46231e0e7abcf97ba35d89fceb8edae45",
"max_mempool_count": 100000
},
"telemetry": {
Expand Down
Loading