Last active
February 6, 2023 15:11
-
-
Save pnowosie/4e9f938ce28673f2efd0c8cc238eee90 to your computer and use it in GitHub Desktop.
Local 2 nodes setup - helpers
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
| { | |
| "networkID": 1002, | |
| "camino": { | |
| "verifyNodeSignature": true, | |
| "lockModeBondDeposit": true, | |
| "initialAdmin": "X-kopernikus1g65uqn6t77p656w64023nh8nd9updzmxh8ttv3", | |
| "depositOffers": [ | |
| { | |
| "interestRateNominator": 80000, | |
| "startOffset": 0, | |
| "endOffset": 112795200, | |
| "minAmount": 1, | |
| "minDuration": 110376000, | |
| "maxDuration": 110376000, | |
| "unlockPeriodDuration": 31536000, | |
| "noRewardsPeriodDuration": 15768000, | |
| "flags": { | |
| "locked": true | |
| } | |
| }, | |
| { | |
| "interestRateNominator": 0, | |
| "startOffset": 0, | |
| "endOffset": 160099200, | |
| "minAmount": 1, | |
| "minDuration": 157680000, | |
| "maxDuration": 157680000, | |
| "unlockPeriodDuration": 63072000, | |
| "noRewardsPeriodDuration": 31536000, | |
| "flags": { | |
| "locked": true | |
| } | |
| }, | |
| { | |
| "interestRateNominator": 90000, | |
| "startOffset": 0, | |
| "endOffset": 144331200, | |
| "minAmount": 1, | |
| "minDuration": 141912000, | |
| "maxDuration": 141912000, | |
| "unlockPeriodDuration": 31536000, | |
| "noRewardsPeriodDuration": 15768000, | |
| "flags": { | |
| "locked": true | |
| } | |
| }, | |
| { | |
| "interestRateNominator": 100000, | |
| "startOffset": 0, | |
| "endOffset": 175867200, | |
| "minAmount": 1, | |
| "minDuration": 173448000, | |
| "maxDuration": 173448000, | |
| "unlockPeriodDuration": 31536000, | |
| "noRewardsPeriodDuration": 15768000, | |
| "flags": { | |
| "locked": true | |
| } | |
| }, | |
| { | |
| "interestRateNominator": 90000, | |
| "startOffset": 0, | |
| "endOffset": 32745600, | |
| "minAmount": 1, | |
| "minDuration": 31536000, | |
| "maxDuration": 31536000, | |
| "unlockPeriodDuration": 31536000, | |
| "noRewardsPeriodDuration": 15768000, | |
| "flags": { | |
| "locked": true | |
| } | |
| }, | |
| { | |
| "interestRateNominator": 110000, | |
| "startOffset": 0, | |
| "endOffset": 64281600, | |
| "minAmount": 1, | |
| "minDuration": 60, | |
| "maxDuration": 31536000, | |
| "unlockPeriodDuration": 0, | |
| "noRewardsPeriodDuration": 0, | |
| "flags": { | |
| "locked": false | |
| } | |
| }, | |
| { | |
| "interestRateNominator": 210000, | |
| "startOffset": 0, | |
| "endOffset": 64281600, | |
| "minAmount": 1, | |
| "minDuration": 86400, | |
| "maxDuration": 31536000, | |
| "unlockPeriodDuration": 43200, | |
| "noRewardsPeriodDuration": 43200, | |
| "flags": { | |
| "locked": false | |
| } | |
| } | |
| ], | |
| "allocations": [ | |
| { | |
| "ethAddr": "0x0000000000000000000000000000000000000000", | |
| "avaxAddr": "X-kopernikus1g65uqn6t77p656w64023nh8nd9updzmxh8ttv3", | |
| "xAmount": 988990000000000000, | |
| "addressStates": { | |
| "consortiumMember": true, | |
| "kycVerified": true | |
| }, | |
| "platformAllocations": [ | |
| { | |
| "amount": 4000000000000, | |
| "nodeID": "NodeID-AK7sPBsZM9rQwse23aLhEEBPHZD5gkLrL", | |
| "validatorDuration": 31536000, | |
| "depositDuration": 110376000, | |
| "timestampOffset": 0, | |
| "depositOfferIndex": 1, | |
| "memo": "KOPERNIKUS" | |
| }, | |
| { | |
| "amount": 10000000000000000, | |
| "depositDuration": 110376000, | |
| "timestampOffset": 0, | |
| "depositOfferIndex": 1 | |
| }, | |
| { | |
| "amount": 4000000000000 | |
| } | |
| ] | |
| }, | |
| { | |
| "ethAddr": "0x0000000000000000000000000000000000000000", | |
| "avaxAddr": "X-kopernikus18jma8ppw3nhx5r4ap8clazz0dps7rv5uuvjh68", | |
| "xAmount": 988990000000000000, | |
| "addressStates": { | |
| "consortiumMember": true, | |
| "kycVerified": true | |
| }, | |
| "platformAllocations": [ | |
| { | |
| "amount": 4000000000000, | |
| "nodeID": "NodeID-D1LbWvUf9iaeEyUbTYYtYq4b7GaYR5tnJ", | |
| "validatorDuration": 31536000, | |
| "depositDuration": 110376000, | |
| "timestampOffset": 0, | |
| "depositOfferIndex": 1, | |
| "memo": "KOPERNIKUS" | |
| }, | |
| { | |
| "amount": 10000000000000000, | |
| "depositDuration": 110376000, | |
| "timestampOffset": 0, | |
| "depositOfferIndex": 1 | |
| }, | |
| { | |
| "amount": 4000000000000 | |
| } | |
| ] | |
| } | |
| ], | |
| "initialMultisigAddresses": [ | |
| { | |
| "alias": "X-kopernikus1fq0jc8svlyazhygkj0s36qnl6s0km0h3uuc99w", | |
| "addresses": [ | |
| "X-kopernikus1g65uqn6t77p656w64023nh8nd9updzmxh8ttv3" | |
| ], | |
| "threshold": 1 | |
| } | |
| ] | |
| }, | |
| "startTime": 1671058800, | |
| "initialStakeDurationOffset": 0, | |
| "cChainGenesis": "{\"config\":{\"chainId\":502},\"initialAdmin\":\"0x8db97C7cEcE249c2b98bDC0226Cc4C2A57BF52FC\", \"nonce\":\"0x0\",\"timestamp\":\"0x0\",\"extraData\":\"0x00\",\"gasLimit\":\"0x5f5e100\",\"difficulty\":\"0x0\",\"mixHash\":\"0x0000000000000000000000000000000000000000000000000000000000000000\",\"coinbase\":\"0x0000000000000000000000000000000000000000\",\"alloc\":{\"0100000000000000000000000000000000000000\":{\"code\":\"0x7300000000000000000000000000000000000000003014608060405260043610603d5760003560e01c80631e010439146042578063b6510bb314606e575b600080fd5b605c60048036036020811015605657600080fd5b503560b1565b60408051918252519081900360200190f35b818015607957600080fd5b5060af60048036036080811015608e57600080fd5b506001600160a01b03813516906020810135906040810135906060013560b6565b005b30cd90565b836001600160a01b031681836108fc8690811502906040516000604051808303818888878c8acf9550505050505015801560f4573d6000803e3d6000fd5b505050505056fea26469706673582212201eebce970fe3f5cb96bf8ac6ba5f5c133fc2908ae3dcd51082cfee8f583429d064736f6c634300060a0033\",\"balance\":\"0x0\"}, \"0x8db97C7cEcE249c2b98bDC0226Cc4C2A57BF52FC\":{\"balance\":\"0x56BC75E2D63100000\"}},\"number\":\"0x0\",\"gasUsed\":\"0x0\",\"parentHash\":\"0x0000000000000000000000000000000000000000000000000000000000000000\"}", | |
| "message": "Have a nice trip!" | |
| } |
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
| # Prerequisities | |
| # Rewrite submodule dependencies to local folders | |
| # Check out proper branches in camino-node, caminogo, caminoethvm | |
| # Replace caminogo/genesis/genesis_kopernikus.json with the content of attached 👇 file | |
| # From camino-node folder | |
| # 1. Build | |
| ./scripts/build.sh | |
| node1_args="--public-ip=127.0.0.1 \ | |
| --http-port=9650 \ | |
| --staking-port=9651 \ | |
| --db-dir=dbs/node1 \ | |
| --network-id=kopernikus \ | |
| --staking-tls-cert-file=${HOME}/Proj/caminogo/staking/local/staker1.crt \ | |
| --staking-tls-key-file=${HOME}/Proj/caminogo/staking/local/staker1.key \ | |
| --index-enabled \ | |
| --index-allow-incomplete" | |
| node2_args="--public-ip=127.0.0.1 \ | |
| --http-port=9652 \ | |
| --staking-port=9653 \ | |
| --db-dir=dbs/node2 \ | |
| --network-id=kopernikus \ | |
| --bootstrap-ips=127.0.0.1:9651 \ | |
| --bootstrap-ids=NodeID-AK7sPBsZM9rQwse23aLhEEBPHZD5gkLrL \ | |
| --staking-tls-cert-file=${HOME}/Proj/caminogo/staking/local/staker2.crt \ | |
| --staking-tls-key-file=${HOME}/Proj/caminogo/staking/local/staker2.key \ | |
| --index-enabled \ | |
| --index-allow-incomplete" | |
| WORK_DIR="$HOME/Proj/camino-node/build" | |
| # Run in 2 terminal sessions | |
| cd ${WORK_DIR} | |
| LOG_FILE=$(date +'nodeX-%A-%H%M.log') | |
| ./camino-node ${nodeX_args} | tee ${LOG_FILE} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment