leovct / kurtosis-pos-devnet Goto Github PK
View Code? Open in Web Editor NEWA Kurtosis package that deploys a private, portable, and modular Polygon PoS devnet
A Kurtosis package that deploys a private, portable, and modular Polygon PoS devnet
Bor nodes are trying to peer with each other but somehow it fails and the peer count stays at zero.
INFO [02-29|18:31:49.158] Looking for peers peercount=0 tried=1 static=1
INFO [02-29|18:32:24.159] Looking for peers peercount=0 tried=1 static=1
INFO [02-29|18:32:59.160] Looking for peers peercount=0 tried=1 static=1
Each bor node lists all the other bor nodes as static-peers
in their config.toml
file.
// config.toml
[p2p]
...
[p2p.discovery]
...
static-nodes = ["enode://83da94ab446aed017d319ee745da5b30d4d6affcec5a7bcd9fb613ef01306faac16df77ef18b98f6252e574ff9aa4a0d45b18c170c16ccd344d3c6920054be90@172.16.0.11:30303"]
Only the rootchain
, mnemonic
and validator_count
are available in the config file. There should be ways to configure Heimdall and Bor from the configuration file too.
It's possible to use a rootchain_rpc_url
and not bother setting up a local L1 chain, but it's also possible to deploy a custom rootchain. However, this configuration currently breaks the devnet.
Deploy MATIC contracts on Bor side chain and update the values of the registry on the rootchain. This should allow bridging ERC20 and ERC721 tokens from rootcahin to sidechain and vice versa.
The node always checks its configuration at the default location, which is /root/.heimdalld
or $HOME/.heimdalld
. This happens even if we set DATA_PATH
to other values such as /var/lib/heimdall
.
The genesis file that is being generated for Heimdall is not complete or accurate. For example, the bor_chain_id
is hardcoded and set to 15001
. The validator set does not include all the validators, etc.
For reference: https://github.com/maticnetwork/polygon-devnets/blob/main/docker/pos/init.sh#L169
TODOs:
false
and null
. It may need a final sed command to remove quotes.$ diff tmp/heimdall/kurtosis-genesis.json tmp/heimdall/docker-genesis.json
2c2
< "genesis_time": "2024-02-29T12:22:16.46214851Z",
---
> "genesis_time": "2024-02-29T12:15:21.604179943Z",
33c33
< "address": "0x7761708dfe9fd7434c4cccd7a1c3a364632c5f4b",
---
> "address": "0x85da99c8a7c2c95964c8efd687e95e632fc533d6",
43a44,82
> },
> {
> "address": "0x125fb391ba829e0865963d3b91711610049a9e78",
> "coins": [
> {
> "denom": "matic",
> "amount": "1000000000000000000000"
> }
> ],
> "sequence_number": "0",
> "account_number": "0",
> "module_name": "",
> "module_permissions": null
> },
> {
> "address": "0x964ec59d0e05db08440c822d7c588e63bbde8c4e",
> "coins": [
> {
> "denom": "matic",
> "amount": "1000000000000000000000"
> }
> ],
> "sequence_number": "0",
> "account_number": "0",
> "module_name": "",
> "module_permissions": null
> },
> {
> "address": "0x62210af667d8c4b15ab07c88541b562426d41604",
> "coins": [
> {
> "denom": "matic",
> "amount": "1000000000000000000000"
> }
> ],
> "sequence_number": "0",
> "account_number": "0",
> "module_name": "",
> "module_permissions": null
52,53c91,92
< "sprint_duration": "64",
< "span_duration": "6400",
---
> "sprint_duration": "16",
> "span_duration": "128",
64c103
< "ID": "0",
---
> "ID": "1",
68,70c107,109
< "power": "1",
< "pubKey": "0x04dd60cb4576516c97af3efb4b852b2baa85ec9ef890db3d2d10b073aa0dfe2af476424c420a4667cd774ad654a9a61512c61cfe11d516e77d70740f4ad49255e1",
< "signer": "0x7761708dfe9fd7434c4cccd7a1c3a364632c5f4b",
---
> "power": "10000",
> "pubKey": "0x04507cf9a75e053cda6922467721ddb10412da9bec30620347d9529cc77fca24334a4cf59685be4a2fdeabf4e7753350e42d2d3a20250fd9dc554d226463c8a3d5",
> "signer": "0x85da99c8a7c2c95964c8efd687e95e632fc533d6",
73a113,148
> },
> {
> "ID": "2",
> "startEpoch": "0",
> "endEpoch": "0",
> "nonce": "1",
> "power": "10000",
> "pubKey": "0x048429adbc21ce5a6b1247aa331eca007fe87e285059ddd457727e2ff4193309399c6f18ab9132365d1286b60fc67b3e3da2277fdb034a52d5f697613894063382",
> "signer": "0x125fb391ba829e0865963d3b91711610049a9e78",
> "last_updated": "",
> "jailed": false,
> "accum": "0"
> },
> {
> "ID": "3",
> "startEpoch": "0",
> "endEpoch": "0",
> "nonce": "1",
> "power": "10000",
> "pubKey": "0x04ff2a9f1e172536cc12168e64cf34b5c6fddda5763418cad2216262add91018f74bf843ccb38ce710f11203e5c5170eb4337fb803e77e22368a854c957e3059e9",
> "signer": "0x964ec59d0e05db08440c822d7c588e63bbde8c4e",
> "last_updated": "",
> "jailed": false,
> "accum": "0"
> },
> {
> "ID": "4",
> "startEpoch": "0",
> "endEpoch": "0",
> "nonce": "1",
> "power": "10000",
> "pubKey": "0x04c89fd561af56029c1120a0948993751322b26501ce682b713b02d0cc5d9bcc4428858bd70512940e50bd3e296ef11171af23eea439ed3ed8e9d0ec671846705c",
> "signer": "0x62210af667d8c4b15ab07c88541b562426d41604",
> "last_updated": "",
> "jailed": false,
> "accum": "0"
77c152
< "ID": "0",
---
> "ID": "1",
81,83c156,158
< "power": "1",
< "pubKey": "0x04dd60cb4576516c97af3efb4b852b2baa85ec9ef890db3d2d10b073aa0dfe2af476424c420a4667cd774ad654a9a61512c61cfe11d516e77d70740f4ad49255e1",
< "signer": "0x7761708dfe9fd7434c4cccd7a1c3a364632c5f4b",
---
> "power": "10000",
> "pubKey": "0x04507cf9a75e053cda6922467721ddb10412da9bec30620347d9529cc77fca24334a4cf59685be4a2fdeabf4e7753350e42d2d3a20250fd9dc554d226463c8a3d5",
> "signer": "0x85da99c8a7c2c95964c8efd687e95e632fc533d6",
91c166
< "ID": "0",
---
> "ID": "1",
95,97c170,172
< "power": "1",
< "pubKey": "0x04dd60cb4576516c97af3efb4b852b2baa85ec9ef890db3d2d10b073aa0dfe2af476424c420a4667cd774ad654a9a61512c61cfe11d516e77d70740f4ad49255e1",
< "signer": "0x7761708dfe9fd7434c4cccd7a1c3a364632c5f4b",
---
> "power": "10000",
> "pubKey": "0x04507cf9a75e053cda6922467721ddb10412da9bec30620347d9529cc77fca24334a4cf59685be4a2fdeabf4e7753350e42d2d3a20250fd9dc554d226463c8a3d5",
> "signer": "0x85da99c8a7c2c95964c8efd687e95e632fc533d6",
100a176,211
> },
> {
> "ID": "2",
> "startEpoch": "0",
> "endEpoch": "0",
> "nonce": "1",
> "power": "10000",
> "pubKey": "0x048429adbc21ce5a6b1247aa331eca007fe87e285059ddd457727e2ff4193309399c6f18ab9132365d1286b60fc67b3e3da2277fdb034a52d5f697613894063382",
> "signer": "0x125fb391ba829e0865963d3b91711610049a9e78",
> "last_updated": "",
> "jailed": false,
> "accum": "0"
> },
> {
> "ID": "3",
> "startEpoch": "0",
> "endEpoch": "0",
> "nonce": "1",
> "power": "10000",
> "pubKey": "0x04ff2a9f1e172536cc12168e64cf34b5c6fddda5763418cad2216262add91018f74bf843ccb38ce710f11203e5c5170eb4337fb803e77e22368a854c957e3059e9",
> "signer": "0x964ec59d0e05db08440c822d7c588e63bbde8c4e",
> "last_updated": "",
> "jailed": false,
> "accum": "0"
> },
> {
> "ID": "4",
> "startEpoch": "0",
> "endEpoch": "0",
> "nonce": "1",
> "power": "10000",
> "pubKey": "0x04c89fd561af56029c1120a0948993751322b26501ce682b713b02d0cc5d9bcc4428858bd70512940e50bd3e296ef11171af23eea439ed3ed8e9d0ec671846705c",
> "signer": "0x62210af667d8c4b15ab07c88541b562426d41604",
> "last_updated": "",
> "jailed": false,
> "accum": "0"
103c214
< "bor_chain_id": "15001"
---
> "bor_chain_id": "137"
112,118c223,229
< "bor_chain_id": "15001",
< "matic_token_address": "0x0000000000000000000000000000000000000000",
< "staking_manager_address": "0x0000000000000000000000000000000000000000",
< "slash_manager_address": "0x0000000000000000000000000000000000000000",
< "root_chain_address": "0x0000000000000000000000000000000000000000",
< "staking_info_address": "0x0000000000000000000000000000000000000000",
< "state_sender_address": "0x0000000000000000000000000000000000000000",
---
> "bor_chain_id": "137",
> "matic_token_address": "0xD5B4042e357F7088f01842f1B4dEA88779496958",
> "staking_manager_address": "0x1c537faB97840a2fef787B75D37E6F621C870Eb9",
> "slash_manager_address": "0x311981b16534238422D301e95A42f6C27A24F346",
> "root_chain_address": "0x0B145246eB505C1fCE2382c741B95A3A094921A3",
> "staking_info_address": "0x642195cdd894623f5Ee48d241Dc1a512138a4B84",
> "state_sender_address": "0x51cFDa32A220242292F26b1e7fD3BF3aD95bfe01",
180,181c291,292
< "0": {
< "valID": "0",
---
> "1": {
> "valID": "1",
183a295,309
> },
> "2": {
> "valID": "2",
> "startHeight": "0",
> "indexOffset": "0"
> },
> "3": {
> "valID": "3",
> "startHeight": "0",
> "indexOffset": "0"
> },
> "4": {
> "valID": "4",
> "startHeight": "0",
> "indexOffset": "0"
194c320
< "ID": "0",
---
> "ID": "1",
198,200c324,326
< "power": "1",
< "pubKey": "0x04dd60cb4576516c97af3efb4b852b2baa85ec9ef890db3d2d10b073aa0dfe2af476424c420a4667cd774ad654a9a61512c61cfe11d516e77d70740f4ad49255e1",
< "signer": "0x7761708dfe9fd7434c4cccd7a1c3a364632c5f4b",
---
> "power": "10000",
> "pubKey": "0x04507cf9a75e053cda6922467721ddb10412da9bec30620347d9529cc77fca24334a4cf59685be4a2fdeabf4e7753350e42d2d3a20250fd9dc554d226463c8a3d5",
> "signer": "0x85da99c8a7c2c95964c8efd687e95e632fc533d6",
203a330,365
> },
> {
> "ID": "2",
> "startEpoch": "0",
> "endEpoch": "0",
> "nonce": "1",
> "power": "10000",
> "pubKey": "0x048429adbc21ce5a6b1247aa331eca007fe87e285059ddd457727e2ff4193309399c6f18ab9132365d1286b60fc67b3e3da2277fdb034a52d5f697613894063382",
> "signer": "0x125fb391ba829e0865963d3b91711610049a9e78",
> "last_updated": "",
> "jailed": false,
> "accum": "0"
> },
> {
> "ID": "3",
> "startEpoch": "0",
> "endEpoch": "0",
> "nonce": "1",
> "power": "10000",
> "pubKey": "0x04ff2a9f1e172536cc12168e64cf34b5c6fddda5763418cad2216262add91018f74bf843ccb38ce710f11203e5c5170eb4337fb803e77e22368a854c957e3059e9",
> "signer": "0x964ec59d0e05db08440c822d7c588e63bbde8c4e",
> "last_updated": "",
> "jailed": false,
> "accum": "0"
> },
> {
> "ID": "4",
> "startEpoch": "0",
> "endEpoch": "0",
> "nonce": "1",
> "power": "10000",
> "pubKey": "0x04c89fd561af56029c1120a0948993751322b26501ce682b713b02d0cc5d9bcc4428858bd70512940e50bd3e296ef11171af23eea439ed3ed8e9d0ec671846705c",
> "signer": "0x62210af667d8c4b15ab07c88541b562426d41604",
> "last_updated": "",
> "jailed": false,
> "accum": "0"
209c371
< "ID": "0",
---
> "ID": "1",
213,215c375,377
< "power": "1",
< "pubKey": "0x04dd60cb4576516c97af3efb4b852b2baa85ec9ef890db3d2d10b073aa0dfe2af476424c420a4667cd774ad654a9a61512c61cfe11d516e77d70740f4ad49255e1",
< "signer": "0x7761708dfe9fd7434c4cccd7a1c3a364632c5f4b",
---
> "power": "10000",
> "pubKey": "0x04507cf9a75e053cda6922467721ddb10412da9bec30620347d9529cc77fca24334a4cf59685be4a2fdeabf4e7753350e42d2d3a20250fd9dc554d226463c8a3d5",
> "signer": "0x85da99c8a7c2c95964c8efd687e95e632fc533d6",
218a381,416
> },
> {
> "ID": "2",
> "startEpoch": "0",
> "endEpoch": "0",
> "nonce": "1",
> "power": "10000",
> "pubKey": "0x048429adbc21ce5a6b1247aa331eca007fe87e285059ddd457727e2ff4193309399c6f18ab9132365d1286b60fc67b3e3da2277fdb034a52d5f697613894063382",
> "signer": "0x125fb391ba829e0865963d3b91711610049a9e78",
> "last_updated": "",
> "jailed": false,
> "accum": "0"
> },
> {
> "ID": "3",
> "startEpoch": "0",
> "endEpoch": "0",
> "nonce": "1",
> "power": "10000",
> "pubKey": "0x04ff2a9f1e172536cc12168e64cf34b5c6fddda5763418cad2216262add91018f74bf843ccb38ce710f11203e5c5170eb4337fb803e77e22368a854c957e3059e9",
> "signer": "0x964ec59d0e05db08440c822d7c588e63bbde8c4e",
> "last_updated": "",
> "jailed": false,
> "accum": "0"
> },
> {
> "ID": "4",
> "startEpoch": "0",
> "endEpoch": "0",
> "nonce": "1",
> "power": "10000",
> "pubKey": "0x04c89fd561af56029c1120a0948993751322b26501ce682b713b02d0cc5d9bcc4428858bd70512940e50bd3e296ef11171af23eea439ed3ed8e9d0ec671846705c",
> "signer": "0x62210af667d8c4b15ab07c88541b562426d41604",
> "last_updated": "",
> "jailed": false,
> "accum": "0"
222c420
< "ID": "0",
---
> "ID": "1",
226,228c424,426
< "power": "1",
< "pubKey": "0x04dd60cb4576516c97af3efb4b852b2baa85ec9ef890db3d2d10b073aa0dfe2af476424c420a4667cd774ad654a9a61512c61cfe11d516e77d70740f4ad49255e1",
< "signer": "0x7761708dfe9fd7434c4cccd7a1c3a364632c5f4b",
---
> "power": "10000",
> "pubKey": "0x04507cf9a75e053cda6922467721ddb10412da9bec30620347d9529cc77fca24334a4cf59685be4a2fdeabf4e7753350e42d2d3a20250fd9dc554d226463c8a3d5",
> "signer": "0x85da99c8a7c2c95964c8efd687e95e632fc533d6",
245c443
< "user": "0x7761708dfe9fd7434c4cccd7a1c3a364632c5f4b",
---
> "user": "0x85da99c8a7c2c95964c8efd687e95e632fc533d6",
246a445,456
> },
> {
> "user": "0x125fb391ba829e0865963d3b91711610049a9e78",
> "feeAmount": "0"
> },
> {
> "user": "0x964ec59d0e05db08440c822d7c588e63bbde8c4e",
> "feeAmount": "0"
> },
> {
> "user": "0x62210af667d8c4b15ab07c88541b562426d41604",
> "feeAmount": "0"
251c461
< }
\ No newline at end of file
---
> }
init.sh
for bor, start.sh
for heimdall and run.sh
for validator-keys-generator.Dockerfile
s.We currently deploy a very old version of the MATIC contracts to the root chain. It would be great to update to the latest version.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.