-
Notifications
You must be signed in to change notification settings - Fork 215
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #6592 from spacemeshos/node-split-demo
[WIP] Node split demo
- Loading branch information
Showing
6 changed files
with
452 additions
and
0 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,3 @@ | ||
# Node split PoC | ||
|
||
Best to follow docs in ![here](https://docs.spacemesh.io/docs/experimental/node-split) |
118 changes: 118 additions & 0 deletions
118
activation_service_poc/demo/config.testnet-16-smesher-service.json
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,118 @@ | ||
{ | ||
"api": { | ||
"grpc-public-listener": "0.0.0.0:9092", | ||
"grpc-private-listener": "0.0.0.0:9093", | ||
"grpc-local-services": ["smeshing_identities_v2alpha1"] | ||
}, | ||
"cache": { | ||
"atx-size": 1000 | ||
}, | ||
"fetch": { | ||
"streaming": true, | ||
"servers": { | ||
"ax/1": { | ||
"interval": "1s", | ||
"queue": 10, | ||
"requests": 5 | ||
}, | ||
"hs/1": { | ||
"interval": "1s", | ||
"queue": 200, | ||
"requests": 100 | ||
} | ||
}, | ||
"servers-metrics": true | ||
}, | ||
"genesis": { | ||
"genesis-time": "2024-12-21T13:00:00.000Z" | ||
}, | ||
"hare3": { | ||
"enable": true, | ||
"enable-layer": 0, | ||
"disable-layer": 4294967295, | ||
"committee": 800, | ||
"committeeupgrade": { | ||
"layer": 4860, | ||
"size": 50 | ||
}, | ||
"leaders": 5, | ||
"iterations-limit": 4, | ||
"preround-delay": "25s", | ||
"round-duration": "12s" | ||
}, | ||
"logging": {}, | ||
"main": { | ||
"db-prune-interval": "30m", | ||
"db-query-cache": true, | ||
"db-query-cache-sizes": { | ||
"active-set-blob": 200, | ||
"atx-blob": 1000000, | ||
"epoch-atxs": 100 | ||
}, | ||
"pprof-listener": "localhost:6060", | ||
"poet-servers": [ | ||
{ | ||
"address": "https://testnet-16-poet-0.spacemesh.network", | ||
"pubkey": "cBDiEhk9Q+MfVgWh5anDDgyyEKi4x2ORrSvd4YwWoX4=" | ||
}, | ||
{ | ||
"address": "https://testnet-16-poet-1.spacemesh.network", | ||
"pubkey": "Yl8KPls3OSQWwfJfg6ekI5Tl4k76wgkMj3Ki6Ji3+mI=" | ||
}, | ||
{ | ||
"address": "https://testnet-16-poet-2.spacemesh.network", | ||
"pubkey": "Om4YBKakqZYYtrDzmgzaGdjpj36PWoww8bJt5Mt17rY=" | ||
} | ||
], | ||
"node-service-address": "http://0.0.0.0:9099", | ||
"data-folder": "/tmp/spacemesh-client", | ||
"filelock": "/tmp/spacemesh-client/node.lock" | ||
}, | ||
"p2p": { | ||
"auto-nat-server": { | ||
"global-max": 1000 | ||
}, | ||
"autoscale-peers": true, | ||
"high-peers": 150, | ||
"listen": ["/ip4/0.0.0.0/tcp/7513", "/ip4/0.0.0.0/udp/7513/quic-v1"], | ||
"enable-routing-discovery": false, | ||
"routing-discovery-advertise": false, | ||
"enable-quic-transport": true, | ||
"enable-tcp-transport": true, | ||
"relay": true, | ||
"low-peers": 100, | ||
"min-peers": 20, | ||
"inbound-fraction": 1.1, | ||
"outbound-fraction": 1.1, | ||
"p2p-bootnode": true, | ||
"p2p-metrics": true, | ||
"p2p-reachability": "public", | ||
"bootnodes": [ | ||
"/dns4/testnet-16-bootnode-0.spacemesh.network/tcp/5000/p2p/12D3KooWQMAAL9nkgXJgTM2psJLMbWRgZLjAxJozx7dNkKYczs2V", | ||
"/dns4/testnet-16-bootnode-4.spacemesh.network/tcp/5000/p2p/12D3KooWE1YEa3roqamhPt3CNiVRBzS7Lbv8HRbByE7fpSyLAZis", | ||
"/dns4/testnet-16-bootnode-7.spacemesh.network/tcp/5000/p2p/12D3KooWRvAVZrK3EURQBh1wdMPRDgjtowU84div3YxWYKuGDaFU" | ||
] | ||
}, | ||
"post": { | ||
"post-min-numunits": 2, | ||
"post-max-numunits": 100, | ||
"post-labels-per-unit": 1024 | ||
}, | ||
"tortoise": { | ||
"tortoise-window-size": 600 | ||
}, | ||
"beacon": { | ||
"beacon-rounds-number": 0 | ||
}, | ||
"bootstrap": { | ||
"bootstrap-url": "https://bootstrap.spacemesh.network/testnet-16" | ||
}, | ||
"preset": "testnet", | ||
"smeshing": { | ||
"smeshing-opts": { | ||
"smeshing-opts-datadir": "/tmp/spacemesh-client/post-data" | ||
}, | ||
"smeshing-coinbase": "stest1qqqqqqqpcpmljkxcscyj83uz6hl4dfhjgqjhzxqygkzwa", | ||
"smeshing-start": 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,107 @@ | ||
{ | ||
"api": { | ||
"grpc-public-listener": "0.0.0.0:9092", | ||
"grpc-private-listener": "0.0.0.0:9093" | ||
}, | ||
"cache": { | ||
"atx-size": 1000 | ||
}, | ||
"fetch": { | ||
"streaming": true, | ||
"servers": { | ||
"ax/1": { | ||
"interval": "1s", | ||
"queue": 10, | ||
"requests": 5 | ||
}, | ||
"hs/1": { | ||
"interval": "1s", | ||
"queue": 200, | ||
"requests": 100 | ||
} | ||
}, | ||
"servers-metrics": true | ||
}, | ||
"genesis": { | ||
"genesis-time": "2024-12-21T13:00:00.000Z" | ||
}, | ||
"hare3": { | ||
"enable": true, | ||
"enable-layer": 0, | ||
"disable-layer": 4294967295, | ||
"committee": 800, | ||
"committeeupgrade": { | ||
"layer": 4860, | ||
"size": 50 | ||
}, | ||
"leaders": 5, | ||
"iterations-limit": 4, | ||
"preround-delay": "25s", | ||
"round-duration": "12s" | ||
}, | ||
"logging": {}, | ||
"main": { | ||
"db-prune-interval": "30m", | ||
"db-query-cache": true, | ||
"db-query-cache-sizes": { | ||
"active-set-blob": 200, | ||
"atx-blob": 1000000, | ||
"epoch-atxs": 100 | ||
}, | ||
"pprof-listener": "localhost:6060", | ||
"poet-servers": [ | ||
{ | ||
"address": "https://testnet-16-poet-0.spacemesh.network", | ||
"pubkey": "cBDiEhk9Q+MfVgWh5anDDgyyEKi4x2ORrSvd4YwWoX4=" | ||
}, | ||
{ | ||
"address": "https://testnet-16-poet-1.spacemesh.network", | ||
"pubkey": "Yl8KPls3OSQWwfJfg6ekI5Tl4k76wgkMj3Ki6Ji3+mI=" | ||
}, | ||
{ | ||
"address": "https://testnet-16-poet-2.spacemesh.network", | ||
"pubkey": "Om4YBKakqZYYtrDzmgzaGdjpj36PWoww8bJt5Mt17rY=" | ||
} | ||
] | ||
}, | ||
"p2p": { | ||
"auto-nat-server": { | ||
"global-max": 1000 | ||
}, | ||
"autoscale-peers": true, | ||
"high-peers": 150, | ||
"listen": ["/ip4/0.0.0.0/tcp/7513", "/ip4/0.0.0.0/udp/7513/quic-v1"], | ||
"enable-routing-discovery": false, | ||
"routing-discovery-advertise": false, | ||
"enable-quic-transport": true, | ||
"enable-tcp-transport": true, | ||
"relay": true, | ||
"low-peers": 100, | ||
"min-peers": 20, | ||
"inbound-fraction": 1.1, | ||
"outbound-fraction": 1.1, | ||
"p2p-bootnode": true, | ||
"p2p-metrics": true, | ||
"p2p-reachability": "public", | ||
"bootnodes": [ | ||
"/dns4/testnet-16-bootnode-0.spacemesh.network/tcp/5000/p2p/12D3KooWQMAAL9nkgXJgTM2psJLMbWRgZLjAxJozx7dNkKYczs2V", | ||
"/dns4/testnet-16-bootnode-4.spacemesh.network/tcp/5000/p2p/12D3KooWE1YEa3roqamhPt3CNiVRBzS7Lbv8HRbByE7fpSyLAZis", | ||
"/dns4/testnet-16-bootnode-7.spacemesh.network/tcp/5000/p2p/12D3KooWRvAVZrK3EURQBh1wdMPRDgjtowU84div3YxWYKuGDaFU" | ||
] | ||
}, | ||
"post": { | ||
"post-min-numunits": 2, | ||
"post-max-numunits": 100, | ||
"post-labels-per-unit": 1024 | ||
}, | ||
"tortoise": { | ||
"tortoise-window-size": 600 | ||
}, | ||
"beacon": { | ||
"beacon-rounds-number": 0 | ||
}, | ||
"bootstrap": { | ||
"bootstrap-url": "https://bootstrap.spacemesh.network/testnet-16" | ||
}, | ||
"preset": "testnet" | ||
} |
113 changes: 113 additions & 0 deletions
113
activation_service_poc/demo/config.testnet-16.node-service.json
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,113 @@ | ||
{ | ||
"api": { | ||
"grpc-public-listener": "0.0.0.0:19092", | ||
"grpc-private-listener": "0.0.0.0:19093", | ||
"node-service-listener": "0.0.0.0:19099" | ||
}, | ||
"cache": { | ||
"atx-size": 1000 | ||
}, | ||
"fetch": { | ||
"streaming": true, | ||
"servers": { | ||
"ax/1": { | ||
"interval": "1s", | ||
"queue": 10, | ||
"requests": 5 | ||
}, | ||
"hs/1": { | ||
"interval": "1s", | ||
"queue": 200, | ||
"requests": 100 | ||
} | ||
}, | ||
"servers-metrics": true | ||
}, | ||
"genesis": { | ||
"genesis-time": "2024-12-21T13:00:00.000Z" | ||
}, | ||
"hare3": { | ||
"enable": true, | ||
"enable-layer": 0, | ||
"disable-layer": 4294967295, | ||
"committee": 800, | ||
"committeeupgrade": { | ||
"layer": 4860, | ||
"size": 50 | ||
}, | ||
"leaders": 5, | ||
"iterations-limit": 4, | ||
"preround-delay": "25s", | ||
"round-duration": "12s" | ||
}, | ||
"logging": {}, | ||
"main": { | ||
"db-prune-interval": "30m", | ||
"db-query-cache": true, | ||
"db-query-cache-sizes": { | ||
"active-set-blob": 200, | ||
"atx-blob": 1000000, | ||
"epoch-atxs": 100 | ||
}, | ||
"pprof-listener": "localhost:6060", | ||
"poet-servers": [ | ||
{ | ||
"address": "https://testnet-16-poet-0.spacemesh.network", | ||
"pubkey": "cBDiEhk9Q+MfVgWh5anDDgyyEKi4x2ORrSvd4YwWoX4=" | ||
}, | ||
{ | ||
"address": "https://testnet-16-poet-1.spacemesh.network", | ||
"pubkey": "Yl8KPls3OSQWwfJfg6ekI5Tl4k76wgkMj3Ki6Ji3+mI=" | ||
}, | ||
{ | ||
"address": "https://testnet-16-poet-2.spacemesh.network", | ||
"pubkey": "Om4YBKakqZYYtrDzmgzaGdjpj36PWoww8bJt5Mt17rY=" | ||
} | ||
], | ||
"data-folder": "/tmp/spacemesh-node-service", | ||
"filelock": "/tmp/spacemesh-node-service/node.lock" | ||
}, | ||
"p2p": { | ||
"auto-nat-server": { | ||
"global-max": 1000 | ||
}, | ||
"autoscale-peers": true, | ||
"high-peers": 150, | ||
"listen": ["/ip4/0.0.0.0/tcp/7513", "/ip4/0.0.0.0/udp/7513/quic-v1"], | ||
"enable-routing-discovery": false, | ||
"routing-discovery-advertise": false, | ||
"enable-quic-transport": true, | ||
"enable-tcp-transport": true, | ||
"relay": true, | ||
"low-peers": 100, | ||
"min-peers": 20, | ||
"inbound-fraction": 1.1, | ||
"outbound-fraction": 1.1, | ||
"p2p-bootnode": true, | ||
"p2p-metrics": true, | ||
"p2p-reachability": "public", | ||
"bootnodes": [ | ||
"/dns4/testnet-16-bootnode-0.spacemesh.network/tcp/5000/p2p/12D3KooWQMAAL9nkgXJgTM2psJLMbWRgZLjAxJozx7dNkKYczs2V", | ||
"/dns4/testnet-16-bootnode-4.spacemesh.network/tcp/5000/p2p/12D3KooWE1YEa3roqamhPt3CNiVRBzS7Lbv8HRbByE7fpSyLAZis", | ||
"/dns4/testnet-16-bootnode-7.spacemesh.network/tcp/5000/p2p/12D3KooWRvAVZrK3EURQBh1wdMPRDgjtowU84div3YxWYKuGDaFU" | ||
] | ||
}, | ||
"post": { | ||
"post-min-numunits": 2, | ||
"post-max-numunits": 100, | ||
"post-labels-per-unit": 1024 | ||
}, | ||
"tortoise": { | ||
"tortoise-window-size": 600 | ||
}, | ||
"beacon": { | ||
"beacon-rounds-number": 0 | ||
}, | ||
"bootstrap": { | ||
"bootstrap-url": "https://bootstrap.spacemesh.network/testnet-16" | ||
}, | ||
"preset": "testnet", | ||
"smeshing": { | ||
"smeshing-start": false | ||
} | ||
} |
Oops, something went wrong.