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
{ | |
"config": { | |
"chainId": 89, | |
"homesteadBlock": 1, | |
"eip150Block": 2, | |
"eip150Hash": "0x0000000000000000000000000000000000000000000000000000000000000000", | |
"eip155Block": 3, | |
"eip158Block": 3, | |
"byzantiumBlock": 4, | |
"clique": { |
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
#!/bin/sh | |
# get tomochain container id | |
container_id=$(docker ps -q -f "name=tomochain") | |
# remove first peer | |
echo "\n------------------------\n!! Removing all peers\n------------------------\n" | |
docker exec -t $container_id tomo attach data/tomo.ipc --exec "for (i = 0; i < admin.peers.length; i++) { admin.removePeer(admin.peers[i].id) }" | |
# restart node |
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
#!/bin/sh | |
# get tomochain container id | |
container_id=$(docker ps -q -f "name=tomochain") | |
# remove all peers | |
echo "\n------------------------\n!! Removing all peers\n------------------------\n" | |
docker exec -t $container_id tomo attach data/tomo.ipc --exec "for (i = 0; i < admin.peers.length; i++) { admin.removePeer(admin.peers[i].id) }" | |
# add TomoChain peers |
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
#!/bin/bash | |
# get tomochain container id | |
container_id=$(docker ps -q -f "name=tomochain") | |
cur_date=$(date +%Y-%m-%d) | |
# remove all peers | |
echo "\n----------------Save logs to /tmn/tomochain-${cur_date}.log----------------\n" | |
docker logs $container_id &> /tmp/tomochain-${cur_date}.log |
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
curl -sL https://deb.nodesource.com/setup_10.x | sudo -E bash - |
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
curl -sSL https://get.docker.com/ | sh |
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
/* | |
* RPC: https://rpc.tomochain.com mainnet, https://testnet.tomochain.com testnet | |
* chainId: 88 mainnet, 89 testnet | |
* Owner address: balance at least 50000 TOMO | |
* Coinbase is node address. You can create a empty wallet with https://wallet.testnet.tomochain.com | |
*/ | |
const rpc = 'https://testnet.tomochain.com' | |
chainId = 89 | |
const pkey = '[OWNER_PKEY]' // include 0x |
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
/* | |
* RPC: https://rpc.tomochain.com mainnet, https://rpc.testnet.tomochain.com testnet | |
* chainId: 88 mainnet, 89 testnet | |
*/ | |
const Web3 = require('web3') | |
const rpc = 'https://rpc.testnet.tomochain.com' | |
const chainId = 89 | |
const pkey = 'YOUR_PKEY' // token holder pkey |
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
/* | |
* RPC: https://rpc.tomochain.com mainnet, https://testnet.tomochain.com testnet | |
* chainId: 88 mainnet, 89 testnet | |
*/ | |
const Web3 = require('web3') | |
const rpc = 'https://testnet.tomochain.com' | |
const chainId = 89 | |
const pkey = 'YOUR_PKEY' // token holder pkey |
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
0x5248bfb72fd4f234e062d3e9bb76f08643004fcd | |
0x5ac26105b35ea8935be382863a70281ec7a985e9 | |
0x09c4f991a41e7ca0645d7dfbfee160b55e562ea4 | |
0xb3157bbc5b401a45d6f60b106728bb82ebaa585b | |
0x741277a8952128d5c2ffe0550f5001e4c8247674 | |
0x10ba49c1caa97d74b22b3e74493032b180cebe01 | |
0x07048d51d9e6179578a6e3b9ee28cdc183b865e4 | |
0x4b899001d73c7b4ec404a771d37d9be13b8983de | |
0x85cb320a9007f26b7652c19a2a65db1da2d0016f | |
0x06869dbd0e3a2ea37ddef832e20fa005c6f0ca39 |