diff --git a/.gitignore b/.gitignore index b263945..6320cd2 100644 --- a/.gitignore +++ b/.gitignore @@ -1,5 +1 @@ -openethereum/.env -openethereum/key -openethereum/data -openethereum/password -devops/caddy \ No newline at end of file +data \ No newline at end of file diff --git a/README.md b/README.md index b3bf12b..1440cf9 100644 --- a/README.md +++ b/README.md @@ -1,61 +1,2 @@ -## Kitabu Chain +# kitabu-chain -### Prerequisites - -_This step assumes you have root access on a Debian or Ubuntu based host OS_ - -```bash -$ apt get update -$ apt install chrony curl git -$ curl -fsSL https://get.docker.com | bash -$ curl -L "https://github.com/docker/compose/releases/download/1.29.2/docker-compose-$(uname -s)-$(uname -m)" -o /usr/local/bin/docker-compose -$ chmod +x /usr/local/bin/docker-compose -``` - -### Validator node setup - -#### 1. Clone this repo - -```bash -$ git clone https://git.grassecon.net/grassrootseconomics/kitabu-chain -$ cd kitabu chain -``` - -#### 2. Obtain your private key - -If you have an existing keystore file, rename it to `key` else create a new one: - -```bash -$ openethereum account new --base-path=$(pwd) -$ mv keys/ethereum/UTC* ./key -$ rm -rf keys -``` - -Save the password of the key created above in a `password` file. Save the key's public address for the next step. - -#### 3. Setup environmental variables and other configs - -```bash -cp .env.example .env -``` - -Edit the `.env` file: - -- `EXT_IP`: Your server's external IP (`curl ifconfig.me`) -- `ACCOUNT`: Your private key's public address - -Edit `docker-compose.yml` or `kitabu.toml` to tweak the Openethereum config as per your own preferences. - -#### 4. Start the validator node - -```bash -$ docker-compose up -# or... -$ docker-compose up -d -``` - -#### 5. Reverse proxy setup - -The `devops` folder contains a Caddy config to use as a reverse proxy to further control access to your validator node's API. - -Replace `.yourdomain` in the `Caddyfile` and point it to your server IP. diff --git a/aux/bash-templater/LICENSE b/aux/bash-templater/LICENSE new file mode 100644 index 0000000..2e4491a --- /dev/null +++ b/aux/bash-templater/LICENSE @@ -0,0 +1,21 @@ +MIT License + +Copyright (c) 2017 Sébastien Lavoie + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. diff --git a/aux/bash-templater/templater.sh b/aux/bash-templater/templater.sh new file mode 100755 index 0000000..b6fe194 --- /dev/null +++ b/aux/bash-templater/templater.sh @@ -0,0 +1,93 @@ +#!/bin/bash +# Replaces all {{VAR}} by the $VAR value in a template file and outputs it +# Use with -h to output all variables + +if [[ ! -f "$1" ]]; then + echo "Usage: VAR=value $0 template" >&2 + exit 1 +fi + +template="$1" +vars=$(grep -oE '\{\{\s*[A-Za-z0-9_]+\s*\}\}' "$template" | sort | uniq | sed -e 's/^{{//' -e 's/}}$//') + +if [[ -z "$vars" ]]; then + echo "Warning: No variable was found in $template, syntax is {{VAR}}" >&2 +fi + +var_value() { + var="${1}" + eval echo \$"${var}" +} + +## +# Escape custom characters in a string +# Example: escape "ab'\c" '\' "'" ===> ab\'\\c +# +function escape_chars() { + local content="${1}" + shift + + for char in "$@"; do + content="${content//${char}/\\${char}}" + done + + echo "${content}" +} + +function echo_var() { + local var="${1}" + local content="${2}" + local escaped="$(escape_chars "${content}" "\\" '"')" + + echo "${var}=\"${escaped}\"" +} + +declare -a replaces +replaces=() + +# Reads default values defined as {{VAR=value}} and delete those lines +# There are evaluated, so you can do {{PATH=$HOME}} or {{PATH=`pwd`}} +# You can even reference variables defined in the template before +defaults=$(grep -oE '^\{\{[A-Za-z0-9_]+=.+\}\}$' "${template}" | sed -e 's/^{{//' -e 's/}}$//') +IFS=$'\n' +for default in $defaults; do + var=$(echo "${default}" | grep -oE "^[A-Za-z0-9_]+") + current="$(var_value "${var}")" + + # Replace only if var is not set + if [[ -n "$current" ]]; then + eval "$(echo_var "${var}" "${current}")" + else + eval "${default}" + fi + + # remove define line + replaces+=("-e") + replaces+=("/^{{${var}=/d") + vars="${vars} ${var}" +done + +vars="$(echo "${vars}" | tr " " "\n" | sort | uniq)" + +if [[ "$2" = "-h" ]]; then + for var in $vars; do + value="$(var_value "${var}")" + echo_var "${var}" "${value}" + done + exit 0 +fi + +# Replace all {{VAR}} by $VAR value +for var in $vars; do + value="$(var_value "${var}")" + if [[ -z "$value" ]]; then + echo "Warning: $var is not defined and no default is set, replacing by empty" >&2 + fi + + # Escape slashes + value="$(escape_chars "${value}" "\\" '/' ' ')"; + replaces+=("-e") + replaces+=("s/{{\s*${var}\s*}}/${value}/g") +done + +sed "${replaces[@]}" "${template}" diff --git a/bloxberg.json b/bloxberg.json new file mode 100644 index 0000000..ac036a3 --- /dev/null +++ b/bloxberg.json @@ -0,0 +1,161 @@ +{ + "name": "Bloxberg", + "engine": { + "authorityRound": { + "params": { + "maximumUncleCountTransition": 0, + "maximumUncleCount": 0, + "stepDuration": "5", + "validators": { + "multi": { + "0": { + "list": [ + "0x25327e6ec0B7A0b552Fb907bD6b3726A2F3D99FE", + "0x92db87a17af5083b3327f35b3d77d8d4abfb0cdc", + "0x09e5abedae50639406df6c86d748fbaff66a6df1", + "0x411636d64bb7ba6e1cc3b950bec9a837f59cd46f" + ] + } + } + } + } + } + }, + "params": { + "gasLimitBoundDivisor": "0x400", + "maximumExtraDataSize": "0x20", + "minGasLimit": "0x7A1200", + "networkID": "0x2325", + + "eip140Transition": "0x0", + "eip211Transition": "0x0", + "eip214Transition": "0x0", + "eip658Transition": "0x0", + + "eip145Transition": "0x0", + "eip1014Transition": "0x0", + "eip1052Transition": "0x0", + + "eip1283Transition": "0x0", + "eip1344Transition": "0x0", + "eip1706Transition": "0x0", + "eip1884Transition": "0x0", + "eip2028Transition": "0x0" + }, + "genesis": { + "seal": { + "authorityRound": { + "step": "0x0", + "signature": "0x0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" + } + }, + "difficulty": "0x20000", + "gasLimit": "0x7A1200" + }, + "accounts": { + "0x0000000000000000000000000000000000000001": { + "balance": "1", + "builtin": { + "name": "ecrecover", + "pricing": { "linear": { "base": 3000, "word": 0 } } + } + }, + "0x0000000000000000000000000000000000000002": { + "balance": "1", + "builtin": { + "name": "sha256", + "pricing": { "linear": { "base": 60, "word": 12 } } + } + }, + "0x0000000000000000000000000000000000000003": { + "balance": "1", + "builtin": { + "name": "ripemd160", + "pricing": { "linear": { "base": 600, "word": 120 } } + } + }, + "0x0000000000000000000000000000000000000004": { + "balance": "1", + "builtin": { + "name": "identity", + "pricing": { "linear": { "base": 15, "word": 3 } } + } + }, + "0x0000000000000000000000000000000000000005": { + "builtin": { + "name": "modexp", + "activate_at": 0, + "pricing": { "modexp": { "divisor": 20 } } + } + }, + "0x0000000000000000000000000000000000000006": { + "builtin": { + "name": "alt_bn128_add", + "activate_at": 0, + "pricing": { + "alt_bn128_const_operations": { + "price": 500 + } + } + } + }, + "0000000000000000000000000000000000000007": { + "builtin": { + "name": "alt_bn128_mul", + "pricing": { + "0": { + "info": "Istanbul HF", + "price": { + "alt_bn128_const_operations": { + "price": 6000 + } + } + } + } + } + }, + "0000000000000000000000000000000000000008": { + "builtin": { + "name": "alt_bn128_pairing", + "pricing": { + "0": { + "info": "Istanbul HF", + "price": { + "alt_bn128_pairing": { + "base": 45000, + "pair": 34000 + } + } + } + } + } + }, + "0x0000000000000000000000000000000000000009": { + "builtin": { + "name": "blake2_f", + "pricing": { + "0": { + "info": "Istanbul HF", + "price": { + "blake2_f": { + "gas_per_round": 1 + } + } + } + } + } + }, + "0x25327e6ec0B7A0b552Fb907bD6b3726A2F3D99FE": { + "balance": "100000000000000000000000000000000" + }, + "0x92db87a17af5083b3327f35b3d77d8d4abfb0cdc": { + "balance": "100000000000000000000000000000000" + }, + "0x09e5abedae50639406df6c86d748fbaff66a6df1": { + "balance": "100000000000000000000000000000000" + }, + "0x411636d64bb7ba6e1cc3b950bec9a837f59cd46f": { + "balance": "100000000000000000000000000000000" + } + } +} diff --git a/devops/Caddyfile b/devops/Caddyfile deleted file mode 100644 index 385236d..0000000 --- a/devops/Caddyfile +++ /dev/null @@ -1,12 +0,0 @@ -rpc.yourdomain { - reverse_proxy openethereum:8545 -} - -ws.yourdomain { - @websockets { - header Connection *Upgrade* - header Upgrade websocket - } - - reverse_proxy @websockets openethereum:8546 -} diff --git a/devops/docker-compose.yml b/devops/docker-compose.yml deleted file mode 100644 index 14d58b8..0000000 --- a/devops/docker-compose.yml +++ /dev/null @@ -1,17 +0,0 @@ -version: '3.9' -services: - caddy: - restart: unless-stopped - container_name: caddy - image: caddy:2-alpine - volumes: - - ./Caddyfile:/etc/caddy/Caddyfile - - ./caddy/data:/data - ports: - - '80:80' - - '443:443' - networks: - - openethereum_kitabu -networks: - openethereum_kitabu: - external: true diff --git a/openethereum/.env.example b/openethereum/.env.example deleted file mode 100644 index fe09ed2..0000000 --- a/openethereum/.env.example +++ /dev/null @@ -1,2 +0,0 @@ -EXT_IP= -ACCOUNT= \ No newline at end of file diff --git a/openethereum/docker-compose.yml b/openethereum/docker-compose.yml deleted file mode 100644 index 55a9f50..0000000 --- a/openethereum/docker-compose.yml +++ /dev/null @@ -1,37 +0,0 @@ -version: '3.9' -services: - openethereum: - init: true - user: root - restart: unless-stopped - container_name: kitabu-openethereum - image: openethereum/openethereum:v3.3.3 - command: - --config=/root/kitabu.toml - --nat='extip:$EXT_IP' - --engine-signer='$ACCOUNT' - --jsonrpc-port=8545 - --jsonrpc-cors=all - --jsonrpc-interface=all - --jsonrpc-hosts=all - --jsonrpc-apis=web3,eth,net,parity - --ws-port=8546 - --ws-interface=all - --ws-hosts=all - volumes: - - ./key:/root/data/keys/kitabu_sarafu/key - - ./kitabu.json:/root/kitabu.json - - ./kitabu.toml:/root/kitabu.toml - - ./password:/root/password - - ./data:/root/data - expose: - - '8545' - - '8546' - ports: - - '30303:30303' - - '30303:30303/udp' - networks: - - kitabu -networks: - kitabu: - driver: bridge diff --git a/openethereum/kitabu.json b/openethereum/kitabu.json deleted file mode 100644 index 48c6e86..0000000 --- a/openethereum/kitabu.json +++ /dev/null @@ -1,205 +0,0 @@ -{ - "name": "Kitabu Sarafu", - "dataDir": "kitabu_sarafu", - "engine": { - "authorityRound": { - "params": { - "stepDuration": 4, - "maximumUncleCountTransition": 0, - "maximumUncleCount": 0, - "emptyStepsTransition": 4, - "maximumEmptySteps": 60, - "validators": { - "safeContract": "0x000000000000000000000000000000000000000a" - } - } - } - }, - "params": { - "accountStartNonce": "0x0", - "chainID": "0x13ba", - "eip140Transition": "0x0", - "eip145Transition": "0x0", - "eip150Transition": "0x0", - "eip155Transition": "0x0", - "eip160Transition": "0x0", - "eip161abcTransition": "0x0", - "eip161dTransition": "0x0", - "eip211Transition": "0x0", - "eip214Transition": "0x0", - "eip658Transition": "0x0", - "eip1014Transition": "0x0", - "eip1052Transition": "0x0", - "eip1283Transition": "0x0", - "eip1283DisableTransition": "0x0", - "eip1283ReenableTransition": "0x0", - "eip1344Transition": "0x0", - "eip1706Transition": "0x0", - "eip1884Transition": "0x0", - "eip2028Transition": "0x0", - "eip1559Transition": "0x1", - "eip1559BaseFeeMaxChangeDenominator": "0x8", - "eip1559ElasticityMultiplier": "0x2", - "gasLimitBoundDivisor": "0x400", - "maxCodeSize": "0x6000", - "maxCodeSizeTransition": "0x0", - "maximumExtraDataSize": "0xffff", - "minGasLimit": "0x1", - "networkID": "0x13ba" - }, - "genesis": { - "seal": { - "authorityRound": { - "step": "0x0", - "signature": "0x0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" - } - }, - "difficulty": "0x2", - "gasLimit": "0x5b8d80" - }, - "accounts": { - "0x0000000000000000000000000000000000000000": { - "balance": "0x1" - }, - "0x0000000000000000000000000000000000000001": { - "balance": "0x1", - "builtin": { - "name": "ecrecover", - "pricing": { - "linear": { - "base": 3000, - "word": 0 - } - } - } - }, - "0x0000000000000000000000000000000000000002": { - "balance": "0x1", - "builtin": { - "name": "sha256", - "pricing": { - "linear": { - "base": 60, - "word": 12 - } - } - } - }, - "0x0000000000000000000000000000000000000003": { - "balance": "0x1", - "builtin": { - "name": "ripemd160", - "pricing": { - "linear": { - "base": 600, - "word": 120 - } - } - } - }, - "0x0000000000000000000000000000000000000004": { - "balance": "0x1", - "builtin": { - "name": "identity", - "pricing": { - "linear": { - "base": 15, - "word": 3 - } - } - } - }, - "0x0000000000000000000000000000000000000005": { - "balance": "0x1", - "builtin": { - "name": "modexp", - "pricing": { - "0x0": { - "info": "EIP-198: Big integer modular exponentiation. Byzantium hardfork", - "price": { - "modexp": { - "divisor": 20 - } - } - }, - "0x441064": { - "info": "EIP-2565: ModExp Gas Cost. Berlin hardfork (4_460_644)", - "price": { - "modexp2565": {} - } - } - } - } - }, - "0x0000000000000000000000000000000000000006": { - "balance": "0x1", - "builtin": { - "name": "alt_bn128_add", - "pricing": { - "0": { - "price": { "alt_bn128_const_operations": { "price": 500 } } - }, - "0x17d433": { - "info": "EIP 1108 transition at block 1_561_651 (0x17d433)", - "price": { "alt_bn128_const_operations": { "price": 150 } } - } - } - } - }, - "0x0000000000000000000000000000000000000007": { - "balance": "0x1", - "builtin": { - "name": "alt_bn128_mul", - "pricing": { - "0": { - "price": { "alt_bn128_const_operations": { "price": 40000 } } - }, - "0x17d433": { - "info": "EIP 1108 transition at block 1_561_651 (0x17d433)", - "price": { "alt_bn128_const_operations": { "price": 6000 } } - } - } - } - }, - "0x0000000000000000000000000000000000000008": { - "balance": "0x1", - "builtin": { - "name": "alt_bn128_pairing", - "pricing": { - "0": { - "price": { "alt_bn128_pairing": { "base": 100000, "pair": 80000 } } - }, - "0x17d433": { - "info": "EIP 1108 transition at block 1_561_651 (0x17d433)", - "price": { "alt_bn128_pairing": { "base": 45000, "pair": 34000 } } - } - } - } - }, - "0x0000000000000000000000000000000000000009": { - "balance": "0x1", - "builtin": { - "name": "blake2_f", - "activate_at": "0x17d433", - "pricing": { - "blake2_f": { - "gas_per_round": 1 - } - } - } - }, - "0x000000000000000000000000000000000000000a": { - "balance": "0x1", - "constructor": "0x6080604052739f57b4a25638f3bdffcb1f3d2902860601a1aa656000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550604051806020016040528073d36ac22d450a9b3a08969cf057fb40e9b2c2640a73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681525060019060016100b7929190610218565b503480156100c457600080fd5b5060005b6001805490508110156101f7576002600182815481106100e457fe5b9060005260206000200160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169080600181540180825580915050600190039060005260206000200160009091909190916101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555080600460006001848154811061018157fe5b9060005260206000200160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000208190555080806001019150506100c8565b506001600360006101000a81548160ff0219169083151502179055506102dd565b828054828255906000526020600020908101928215610291579160200282015b828111156102905782518260006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555091602001919060010190610238565b5b50905061029e91906102a2565b5090565b5b808211156102d957600081816101000a81549073ffffffffffffffffffffffffffffffffffffffff0219169055506001016102a3565b5090565b6108ae806102ec6000396000f3fe608060405234801561001057600080fd5b506004361061007d5760003560e01c8063a7873c1b1161005b578063a7873c1b14610114578063b3f05b9714610148578063b7ab4db514610168578063f559ae80146101c75761007d565b806340a141ff146100825780634d238c8e146100c6578063752862111461010a575b600080fd5b6100c46004803603602081101561009857600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff16906020019092919050505061020b565b005b610108600480360360208110156100dc57600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190505050610312565b005b61011261043d565b005b61011c610506565b604051808273ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b61015061052a565b60405180821515815260200191505060405180910390f35b61017061053d565b6040518080602001828103825283818151815260200191508051906020019060200280838360005b838110156101b3578082015181840152602081019050610198565b505050509050019250505060405180910390f35b610209600480360360208110156101dd57600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff1690602001909291905050506105cb565b005b60008054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff161461026357600080fd5b600360009054906101000a900460ff1661027c57600080fd5b6102c4600460008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020546106e0565b600460008273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000905561030f6107d7565b50565b60008054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff161461036a57600080fd5b600360009054906101000a900460ff1661038357600080fd5b6002819080600181540180825580915050600190039060005260206000200160009091909190916101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550600160028054905003600460008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000208190555061043a6107d7565b50565b6001600360006101000a81548160ff0219169083151502179055507f8564cd629b15f47dc310d45bcbfc9bcf5420b0d51bf0659a16c67f91d27632536002604051808060200182810382528381815481526020019150805480156104f657602002820191906000526020600020905b8160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190600101908083116104ac575b50509250505060405180910390a1565b60008054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b600360009054906101000a900460ff1681565b606060028054806020026020016040519081016040528092919081815260200182805480156105c157602002820191906000526020600020905b8160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019060010190808311610577575b5050505050905090565b60008054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff161461062357600080fd5b8073ffffffffffffffffffffffffffffffffffffffff1660008054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff167f39487b135b88702be9a144e7066245bf92d7fac0f685ddcf8e721cabfa5a912760405160405180910390a3806000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b60008190505b600160028054905003811015610793576002600182018154811061070657fe5b9060005260206000200160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff166002828154811061073e57fe5b9060005260206000200160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555080806001019150506106e6565b50600280548061079f57fe5b6001900381819060005260206000200160006101000a81549073ffffffffffffffffffffffffffffffffffffffff0219169055905550565b6000600360006101000a81548160ff02191690831515021790555060014303407f55252fa6eee4741b4e24a74a70e9c11fd2c2281df8d6ea13126ff845f7825c8961082061053d565b6040518080602001828103825283818151815260200191508051906020019060200280838360005b83811015610863578082015181840152602081019050610848565b505050509050019250505060405180910390a256fea2646970667358221220ede1992767acd8d86f2946bc23a83d9df282223dc0144b6bf1ef16f5d7c15a0464736f6c634300060c0033" - }, - "0x77Bea3320Fa46aFF3C7c128B83F5E436596Ba73D": { - "balance": "0x204fce5e3e25026110000000" - }, - "0x9F57B4A25638F3bdfFcB1F3d2902860601a1Aa65": { - "balance": "0x204fce5e3e25026110000000" - }, - "0x0568a760219d13Dd3d4f4cBC13e0Fe4b138CaB24": { - "balance": "0x204fce5e3e25026110000000" - } - } -} diff --git a/openethereum/kitabu.toml b/openethereum/kitabu.toml deleted file mode 100644 index 0178be9..0000000 --- a/openethereum/kitabu.toml +++ /dev/null @@ -1,22 +0,0 @@ -[parity] -chain = "/root/kitabu.json" -base_path = "/root/data" - -[network] -max_peers = 25 -snapshot_peers = 10 - -[account] -password = ["/root/password"] - -[mining] -reseal_on_txs = "none" -force_sealing = true -min_gas_price = 1 -gas_floor_target = "1" - -[footprint] -tracing = "on" -pruning = "archive" -pruning_history = 256 -cache_size_db = 2000 diff --git a/openethereum/kitabu/config.sh b/openethereum/kitabu/config.sh new file mode 100644 index 0000000..70bd4e7 --- /dev/null +++ b/openethereum/kitabu/config.sh @@ -0,0 +1,19 @@ +#!/bin/bash + +templater_bin=../../aux/bash-templater/templater.sh + +set +a +CONFIG_DIR=${CONFIG_DIR:-$(realpath $(pwd))} +DATA_DIR=${DATA_DIR:-${CONFIG_DIR}/data} +LOG_DIR=${LOG_DIR:-$DATA_DIR} +KEYSTORE_DIR=${DATA_DIR}/data/keys/kitabu_sarafu +EXTERNAL_IP=${EXTERNAL_IP:-127.0.0.1} + +mkdir -vp $CONFIG_DIR +mkdir -vp $DATA_DIR +mkdir -vp $LOG_DIR +mkdir -vp $KEYSTORE_DIR +cp -v keyfile.json $KEYSTORE_DIR/ + +. $templater_bin kitabu.toml.template > kitabu.toml +set -a diff --git a/openethereum/kitabu/kitabu.json b/openethereum/kitabu/kitabu.json new file mode 100644 index 0000000..7fd5606 --- /dev/null +++ b/openethereum/kitabu/kitabu.json @@ -0,0 +1,934 @@ +{ + "name": "Kitabu Sarafu", + "dataDir": "kitabu_sarafu", + "engine": { + "clique": { + "params": { + "period": 2, + "epoch": 30000, + "validators": [ + "0x5C5aB0D602EEF41f82B6fc087A24e61383589C39" + ] + } + } + }, + "params": { + "accountStartNonce": "0x0", + "chainID": "0x1a0a", + "eip140Transition": "0x0", + "eip145Transition": "0x0", + "eip150Transition": "0x0", + "eip155Transition": "0x0", + "eip160Transition": "0x0", + "eip161abcTransition": "0x0", + "eip161dTransition": "0x0", + "eip211Transition": "0x0", + "eip214Transition": "0x0", + "eip658Transition": "0x0", + "eip1014Transition": "0x0", + "eip1052Transition": "0x0", + "eip1283Transition": "0x0", + "eip1283DisableTransition": "0x0", + "eip1283ReenableTransition": "0x0", + "eip1344Transition": "0x0", + "eip1706Transition": "0x0", + "eip1884Transition": "0x0", + "eip2028Transition": "0x0", + "eip1559Transition": "0x1", + "eip1559BaseFeeMaxChangeDenominator": "0x8", + "eip1559ElasticityMultiplier": "0x2", + "gasLimitBoundDivisor": "0x400", + "maxCodeSize": "0x6000", + "maxCodeSizeTransition": "0x0", + "maximumExtraDataSize": "0xffff", + "minGasLimit": "0x1", + "networkID": "0x1a0a" + }, + "genesis": { + "author": "0x0000000000000000000000000000000000000000", + "difficulty": "0x1", + "extraData": "0x536172616675204b61726962752053616e6100000000000000000000000000005C5aB0D602EEF41f82B6fc087A24e61383589C398c6f7b75d90c3b32bdc9b4fcfbb4ad43c853446a2c0c9d3a9590a3349c8e45ce50446bd276cbb99c1f38132cd7e520d6be0ccba78acc59ab50a82f711ff7cb9d00", + "gasLimit": "0xb00000", + "parentHash": "0x0000000000000000000000000000000000000000000000000000000000000000", + "seal": { + "ethereum": { + "nonce": "0x0000000000000000", + "mixHash": "0x0000000000000000000000000000000000000000000000000000000000000000" + } + }, + "timestamp": "0x5c51a607" + }, + "accounts": { + "0x0000000000000000000000000000000000000000": { + "balance": "0x1" + }, + "0x0000000000000000000000000000000000000001": { + "balance": "0x1", + "builtin": { + "name": "ecrecover", + "pricing": { + "linear": { + "base": 3000, + "word": 0 + } + } + } + }, + "0x0000000000000000000000000000000000000002": { + "balance": "0x1", + "builtin": { + "name": "sha256", + "pricing": { + "linear": { + "base": 60, + "word": 12 + } + } + } + }, + "0x0000000000000000000000000000000000000003": { + "balance": "0x1", + "builtin": { + "name": "ripemd160", + "pricing": { + "linear": { + "base": 600, + "word": 120 + } + } + } + }, + "0x0000000000000000000000000000000000000004": { + "balance": "0x1", + "builtin": { + "name": "identity", + "pricing": { + "linear": { + "base": 15, + "word": 3 + } + } + } + }, + "0x0000000000000000000000000000000000000005": { + "balance": "0x1", + "builtin": { + "name": "modexp", + "pricing": { + "0x0": { + "info": "EIP-198: Big integer modular exponentiation. Byzantium hardfork", + "price": { + "modexp": { + "divisor": 20 + } + } + }, + "0x441064": { + "info": "EIP-2565: ModExp Gas Cost. Berlin hardfork (4_460_644)", + "price": { + "modexp2565": {} + } + } + } + } + }, + "0x0000000000000000000000000000000000000006": { + "balance": "0x1", + "builtin": { + "name": "alt_bn128_add", + "pricing": { + "0": { + "price": { "alt_bn128_const_operations": { "price": 500 } } + }, + "0x17d433": { + "info": "EIP 1108 transition at block 1_561_651 (0x17d433)", + "price": { "alt_bn128_const_operations": { "price": 150 } } + } + } + } + }, + "0x0000000000000000000000000000000000000007": { + "balance": "0x1", + "builtin": { + "name": "alt_bn128_mul", + "pricing": { + "0": { + "price": { "alt_bn128_const_operations": { "price": 40000 } } + }, + "0x17d433": { + "info": "EIP 1108 transition at block 1_561_651 (0x17d433)", + "price": { "alt_bn128_const_operations": { "price": 6000 } } + } + } + } + }, + "0x0000000000000000000000000000000000000008": { + "balance": "0x1", + "builtin": { + "name": "alt_bn128_pairing", + "pricing": { + "0": { + "price": { "alt_bn128_pairing": { "base": 100000, "pair": 80000 } } + }, + "0x17d433": { + "info": "EIP 1108 transition at block 1_561_651 (0x17d433)", + "price": { "alt_bn128_pairing": { "base": 45000, "pair": 34000 } } + } + } + } + }, + "0x0000000000000000000000000000000000000009": { + "balance": "0x1", + "builtin": { + "name": "blake2_f", + "activate_at": "0x17d433", + "pricing": { + "blake2_f": { + "gas_per_round": 1 + } + } + } + }, + "0x000000000000000000000000000000000000000a": { + "balance": "0x1" + }, + "0x000000000000000000000000000000000000000b": { + "balance": "0x1" + }, + "0x000000000000000000000000000000000000000c": { + "balance": "0x1" + }, + "0x000000000000000000000000000000000000000d": { + "balance": "0x1" + }, + "0x000000000000000000000000000000000000000e": { + "balance": "0x1" + }, + "0x000000000000000000000000000000000000000f": { + "balance": "0x1" + }, + "0x0000000000000000000000000000000000000010": { + "balance": "0x1" + }, + "0x0000000000000000000000000000000000000011": { + "balance": "0x1" + }, + "0x0000000000000000000000000000000000000012": { + "balance": "0x1" + }, + "0x0000000000000000000000000000000000000013": { + "balance": "0x1" + }, + "0x0000000000000000000000000000000000000014": { + "balance": "0x1" + }, + "0x0000000000000000000000000000000000000015": { + "balance": "0x1" + }, + "0x0000000000000000000000000000000000000016": { + "balance": "0x1" + }, + "0x0000000000000000000000000000000000000017": { + "balance": "0x1" + }, + "0x0000000000000000000000000000000000000018": { + "balance": "0x1" + }, + "0x0000000000000000000000000000000000000019": { + "balance": "0x1" + }, + "0x000000000000000000000000000000000000001a": { + "balance": "0x1" + }, + "0x000000000000000000000000000000000000001b": { + "balance": "0x1" + }, + "0x000000000000000000000000000000000000001c": { + "balance": "0x1" + }, + "0x000000000000000000000000000000000000001d": { + "balance": "0x1" + }, + "0x000000000000000000000000000000000000001e": { + "balance": "0x1" + }, + "0x000000000000000000000000000000000000001f": { + "balance": "0x1" + }, + "0x0000000000000000000000000000000000000020": { + "balance": "0x1" + }, + "0x0000000000000000000000000000000000000021": { + "balance": "0x1" + }, + "0x0000000000000000000000000000000000000022": { + "balance": "0x1" + }, + "0x0000000000000000000000000000000000000023": { + "balance": "0x1" + }, + "0x0000000000000000000000000000000000000024": { + "balance": "0x1" + }, + "0x0000000000000000000000000000000000000025": { + "balance": "0x1" + }, + "0x0000000000000000000000000000000000000026": { + "balance": "0x1" + }, + "0x0000000000000000000000000000000000000027": { + "balance": "0x1" + }, + "0x0000000000000000000000000000000000000028": { + "balance": "0x1" + }, + "0x0000000000000000000000000000000000000029": { + "balance": "0x1" + }, + "0x000000000000000000000000000000000000002a": { + "balance": "0x1" + }, + "0x000000000000000000000000000000000000002b": { + "balance": "0x1" + }, + "0x000000000000000000000000000000000000002c": { + "balance": "0x1" + }, + "0x000000000000000000000000000000000000002d": { + "balance": "0x1" + }, + "0x000000000000000000000000000000000000002e": { + "balance": "0x1" + }, + "0x000000000000000000000000000000000000002f": { + "balance": "0x1" + }, + "0x0000000000000000000000000000000000000030": { + "balance": "0x1" + }, + "0x0000000000000000000000000000000000000031": { + "balance": "0x1" + }, + "0x0000000000000000000000000000000000000032": { + "balance": "0x1" + }, + "0x0000000000000000000000000000000000000033": { + "balance": "0x1" + }, + "0x0000000000000000000000000000000000000034": { + "balance": "0x1" + }, + "0x0000000000000000000000000000000000000035": { + "balance": "0x1" + }, + "0x0000000000000000000000000000000000000036": { + "balance": "0x1" + }, + "0x0000000000000000000000000000000000000037": { + "balance": "0x1" + }, + "0x0000000000000000000000000000000000000038": { + "balance": "0x1" + }, + "0x0000000000000000000000000000000000000039": { + "balance": "0x1" + }, + "0x000000000000000000000000000000000000003a": { + "balance": "0x1" + }, + "0x000000000000000000000000000000000000003b": { + "balance": "0x1" + }, + "0x000000000000000000000000000000000000003c": { + "balance": "0x1" + }, + "0x000000000000000000000000000000000000003d": { + "balance": "0x1" + }, + "0x000000000000000000000000000000000000003e": { + "balance": "0x1" + }, + "0x000000000000000000000000000000000000003f": { + "balance": "0x1" + }, + "0x0000000000000000000000000000000000000040": { + "balance": "0x1" + }, + "0x0000000000000000000000000000000000000041": { + "balance": "0x1" + }, + "0x0000000000000000000000000000000000000042": { + "balance": "0x1" + }, + "0x0000000000000000000000000000000000000043": { + "balance": "0x1" + }, + "0x0000000000000000000000000000000000000044": { + "balance": "0x1" + }, + "0x0000000000000000000000000000000000000045": { + "balance": "0x1" + }, + "0x0000000000000000000000000000000000000046": { + "balance": "0x1" + }, + "0x0000000000000000000000000000000000000047": { + "balance": "0x1" + }, + "0x0000000000000000000000000000000000000048": { + "balance": "0x1" + }, + "0x0000000000000000000000000000000000000049": { + "balance": "0x1" + }, + "0x000000000000000000000000000000000000004a": { + "balance": "0x1" + }, + "0x000000000000000000000000000000000000004b": { + "balance": "0x1" + }, + "0x000000000000000000000000000000000000004c": { + "balance": "0x1" + }, + "0x000000000000000000000000000000000000004d": { + "balance": "0x1" + }, + "0x000000000000000000000000000000000000004e": { + "balance": "0x1" + }, + "0x000000000000000000000000000000000000004f": { + "balance": "0x1" + }, + "0x0000000000000000000000000000000000000050": { + "balance": "0x1" + }, + "0x0000000000000000000000000000000000000051": { + "balance": "0x1" + }, + "0x0000000000000000000000000000000000000052": { + "balance": "0x1" + }, + "0x0000000000000000000000000000000000000053": { + "balance": "0x1" + }, + "0x0000000000000000000000000000000000000054": { + "balance": "0x1" + }, + "0x0000000000000000000000000000000000000055": { + "balance": "0x1" + }, + "0x0000000000000000000000000000000000000056": { + "balance": "0x1" + }, + "0x0000000000000000000000000000000000000057": { + "balance": "0x1" + }, + "0x0000000000000000000000000000000000000058": { + "balance": "0x1" + }, + "0x0000000000000000000000000000000000000059": { + "balance": "0x1" + }, + "0x000000000000000000000000000000000000005a": { + "balance": "0x1" + }, + "0x000000000000000000000000000000000000005b": { + "balance": "0x1" + }, + "0x000000000000000000000000000000000000005c": { + "balance": "0x1" + }, + "0x000000000000000000000000000000000000005d": { + "balance": "0x1" + }, + "0x000000000000000000000000000000000000005e": { + "balance": "0x1" + }, + "0x000000000000000000000000000000000000005f": { + "balance": "0x1" + }, + "0x0000000000000000000000000000000000000060": { + "balance": "0x1" + }, + "0x0000000000000000000000000000000000000061": { + "balance": "0x1" + }, + "0x0000000000000000000000000000000000000062": { + "balance": "0x1" + }, + "0x0000000000000000000000000000000000000063": { + "balance": "0x1" + }, + "0x0000000000000000000000000000000000000064": { + "balance": "0x1" + }, + "0x0000000000000000000000000000000000000065": { + "balance": "0x1" + }, + "0x0000000000000000000000000000000000000066": { + "balance": "0x1" + }, + "0x0000000000000000000000000000000000000067": { + "balance": "0x1" + }, + "0x0000000000000000000000000000000000000068": { + "balance": "0x1" + }, + "0x0000000000000000000000000000000000000069": { + "balance": "0x1" + }, + "0x000000000000000000000000000000000000006a": { + "balance": "0x1" + }, + "0x000000000000000000000000000000000000006b": { + "balance": "0x1" + }, + "0x000000000000000000000000000000000000006c": { + "balance": "0x1" + }, + "0x000000000000000000000000000000000000006d": { + "balance": "0x1" + }, + "0x000000000000000000000000000000000000006e": { + "balance": "0x1" + }, + "0x000000000000000000000000000000000000006f": { + "balance": "0x1" + }, + "0x0000000000000000000000000000000000000070": { + "balance": "0x1" + }, + "0x0000000000000000000000000000000000000071": { + "balance": "0x1" + }, + "0x0000000000000000000000000000000000000072": { + "balance": "0x1" + }, + "0x0000000000000000000000000000000000000073": { + "balance": "0x1" + }, + "0x0000000000000000000000000000000000000074": { + "balance": "0x1" + }, + "0x0000000000000000000000000000000000000075": { + "balance": "0x1" + }, + "0x0000000000000000000000000000000000000076": { + "balance": "0x1" + }, + "0x0000000000000000000000000000000000000077": { + "balance": "0x1" + }, + "0x0000000000000000000000000000000000000078": { + "balance": "0x1" + }, + "0x0000000000000000000000000000000000000079": { + "balance": "0x1" + }, + "0x000000000000000000000000000000000000007a": { + "balance": "0x1" + }, + "0x000000000000000000000000000000000000007b": { + "balance": "0x1" + }, + "0x000000000000000000000000000000000000007c": { + "balance": "0x1" + }, + "0x000000000000000000000000000000000000007d": { + "balance": "0x1" + }, + "0x000000000000000000000000000000000000007e": { + "balance": "0x1" + }, + "0x000000000000000000000000000000000000007f": { + "balance": "0x1" + }, + "0x0000000000000000000000000000000000000080": { + "balance": "0x1" + }, + "0x0000000000000000000000000000000000000081": { + "balance": "0x1" + }, + "0x0000000000000000000000000000000000000082": { + "balance": "0x1" + }, + "0x0000000000000000000000000000000000000083": { + "balance": "0x1" + }, + "0x0000000000000000000000000000000000000084": { + "balance": "0x1" + }, + "0x0000000000000000000000000000000000000085": { + "balance": "0x1" + }, + "0x0000000000000000000000000000000000000086": { + "balance": "0x1" + }, + "0x0000000000000000000000000000000000000087": { + "balance": "0x1" + }, + "0x0000000000000000000000000000000000000088": { + "balance": "0x1" + }, + "0x0000000000000000000000000000000000000089": { + "balance": "0x1" + }, + "0x000000000000000000000000000000000000008a": { + "balance": "0x1" + }, + "0x000000000000000000000000000000000000008b": { + "balance": "0x1" + }, + "0x000000000000000000000000000000000000008c": { + "balance": "0x1" + }, + "0x000000000000000000000000000000000000008d": { + "balance": "0x1" + }, + "0x000000000000000000000000000000000000008e": { + "balance": "0x1" + }, + "0x000000000000000000000000000000000000008f": { + "balance": "0x1" + }, + "0x0000000000000000000000000000000000000090": { + "balance": "0x1" + }, + "0x0000000000000000000000000000000000000091": { + "balance": "0x1" + }, + "0x0000000000000000000000000000000000000092": { + "balance": "0x1" + }, + "0x0000000000000000000000000000000000000093": { + "balance": "0x1" + }, + "0x0000000000000000000000000000000000000094": { + "balance": "0x1" + }, + "0x0000000000000000000000000000000000000095": { + "balance": "0x1" + }, + "0x0000000000000000000000000000000000000096": { + "balance": "0x1" + }, + "0x0000000000000000000000000000000000000097": { + "balance": "0x1" + }, + "0x0000000000000000000000000000000000000098": { + "balance": "0x1" + }, + "0x0000000000000000000000000000000000000099": { + "balance": "0x1" + }, + "0x000000000000000000000000000000000000009a": { + "balance": "0x1" + }, + "0x000000000000000000000000000000000000009b": { + "balance": "0x1" + }, + "0x000000000000000000000000000000000000009c": { + "balance": "0x1" + }, + "0x000000000000000000000000000000000000009d": { + "balance": "0x1" + }, + "0x000000000000000000000000000000000000009e": { + "balance": "0x1" + }, + "0x000000000000000000000000000000000000009f": { + "balance": "0x1" + }, + "0x00000000000000000000000000000000000000a0": { + "balance": "0x1" + }, + "0x00000000000000000000000000000000000000a1": { + "balance": "0x1" + }, + "0x00000000000000000000000000000000000000a2": { + "balance": "0x1" + }, + "0x00000000000000000000000000000000000000a3": { + "balance": "0x1" + }, + "0x00000000000000000000000000000000000000a4": { + "balance": "0x1" + }, + "0x00000000000000000000000000000000000000a5": { + "balance": "0x1" + }, + "0x00000000000000000000000000000000000000a6": { + "balance": "0x1" + }, + "0x00000000000000000000000000000000000000a7": { + "balance": "0x1" + }, + "0x00000000000000000000000000000000000000a8": { + "balance": "0x1" + }, + "0x00000000000000000000000000000000000000a9": { + "balance": "0x1" + }, + "0x00000000000000000000000000000000000000aa": { + "balance": "0x1" + }, + "0x00000000000000000000000000000000000000ab": { + "balance": "0x1" + }, + "0x00000000000000000000000000000000000000ac": { + "balance": "0x1" + }, + "0x00000000000000000000000000000000000000ad": { + "balance": "0x1" + }, + "0x00000000000000000000000000000000000000ae": { + "balance": "0x1" + }, + "0x00000000000000000000000000000000000000af": { + "balance": "0x1" + }, + "0x00000000000000000000000000000000000000b0": { + "balance": "0x1" + }, + "0x00000000000000000000000000000000000000b1": { + "balance": "0x1" + }, + "0x00000000000000000000000000000000000000b2": { + "balance": "0x1" + }, + "0x00000000000000000000000000000000000000b3": { + "balance": "0x1" + }, + "0x00000000000000000000000000000000000000b4": { + "balance": "0x1" + }, + "0x00000000000000000000000000000000000000b5": { + "balance": "0x1" + }, + "0x00000000000000000000000000000000000000b6": { + "balance": "0x1" + }, + "0x00000000000000000000000000000000000000b7": { + "balance": "0x1" + }, + "0x00000000000000000000000000000000000000b8": { + "balance": "0x1" + }, + "0x00000000000000000000000000000000000000b9": { + "balance": "0x1" + }, + "0x00000000000000000000000000000000000000ba": { + "balance": "0x1" + }, + "0x00000000000000000000000000000000000000bb": { + "balance": "0x1" + }, + "0x00000000000000000000000000000000000000bc": { + "balance": "0x1" + }, + "0x00000000000000000000000000000000000000bd": { + "balance": "0x1" + }, + "0x00000000000000000000000000000000000000be": { + "balance": "0x1" + }, + "0x00000000000000000000000000000000000000bf": { + "balance": "0x1" + }, + "0x00000000000000000000000000000000000000c0": { + "balance": "0x1" + }, + "0x00000000000000000000000000000000000000c1": { + "balance": "0x1" + }, + "0x00000000000000000000000000000000000000c2": { + "balance": "0x1" + }, + "0x00000000000000000000000000000000000000c3": { + "balance": "0x1" + }, + "0x00000000000000000000000000000000000000c4": { + "balance": "0x1" + }, + "0x00000000000000000000000000000000000000c5": { + "balance": "0x1" + }, + "0x00000000000000000000000000000000000000c6": { + "balance": "0x1" + }, + "0x00000000000000000000000000000000000000c7": { + "balance": "0x1" + }, + "0x00000000000000000000000000000000000000c8": { + "balance": "0x1" + }, + "0x00000000000000000000000000000000000000c9": { + "balance": "0x1" + }, + "0x00000000000000000000000000000000000000ca": { + "balance": "0x1" + }, + "0x00000000000000000000000000000000000000cb": { + "balance": "0x1" + }, + "0x00000000000000000000000000000000000000cc": { + "balance": "0x1" + }, + "0x00000000000000000000000000000000000000cd": { + "balance": "0x1" + }, + "0x00000000000000000000000000000000000000ce": { + "balance": "0x1" + }, + "0x00000000000000000000000000000000000000cf": { + "balance": "0x1" + }, + "0x00000000000000000000000000000000000000d0": { + "balance": "0x1" + }, + "0x00000000000000000000000000000000000000d1": { + "balance": "0x1" + }, + "0x00000000000000000000000000000000000000d2": { + "balance": "0x1" + }, + "0x00000000000000000000000000000000000000d3": { + "balance": "0x1" + }, + "0x00000000000000000000000000000000000000d4": { + "balance": "0x1" + }, + "0x00000000000000000000000000000000000000d5": { + "balance": "0x1" + }, + "0x00000000000000000000000000000000000000d6": { + "balance": "0x1" + }, + "0x00000000000000000000000000000000000000d7": { + "balance": "0x1" + }, + "0x00000000000000000000000000000000000000d8": { + "balance": "0x1" + }, + "0x00000000000000000000000000000000000000d9": { + "balance": "0x1" + }, + "0x00000000000000000000000000000000000000da": { + "balance": "0x1" + }, + "0x00000000000000000000000000000000000000db": { + "balance": "0x1" + }, + "0x00000000000000000000000000000000000000dc": { + "balance": "0x1" + }, + "0x00000000000000000000000000000000000000dd": { + "balance": "0x1" + }, + "0x00000000000000000000000000000000000000de": { + "balance": "0x1" + }, + "0x00000000000000000000000000000000000000df": { + "balance": "0x1" + }, + "0x00000000000000000000000000000000000000e0": { + "balance": "0x1" + }, + "0x00000000000000000000000000000000000000e1": { + "balance": "0x1" + }, + "0x00000000000000000000000000000000000000e2": { + "balance": "0x1" + }, + "0x00000000000000000000000000000000000000e3": { + "balance": "0x1" + }, + "0x00000000000000000000000000000000000000e4": { + "balance": "0x1" + }, + "0x00000000000000000000000000000000000000e5": { + "balance": "0x1" + }, + "0x00000000000000000000000000000000000000e6": { + "balance": "0x1" + }, + "0x00000000000000000000000000000000000000e7": { + "balance": "0x1" + }, + "0x00000000000000000000000000000000000000e8": { + "balance": "0x1" + }, + "0x00000000000000000000000000000000000000e9": { + "balance": "0x1" + }, + "0x00000000000000000000000000000000000000ea": { + "balance": "0x1" + }, + "0x00000000000000000000000000000000000000eb": { + "balance": "0x1" + }, + "0x00000000000000000000000000000000000000ec": { + "balance": "0x1" + }, + "0x00000000000000000000000000000000000000ed": { + "balance": "0x1" + }, + "0x00000000000000000000000000000000000000ee": { + "balance": "0x1" + }, + "0x00000000000000000000000000000000000000ef": { + "balance": "0x1" + }, + "0x00000000000000000000000000000000000000f0": { + "balance": "0x1" + }, + "0x00000000000000000000000000000000000000f1": { + "balance": "0x1" + }, + "0x00000000000000000000000000000000000000f2": { + "balance": "0x1" + }, + "0x00000000000000000000000000000000000000f3": { + "balance": "0x1" + }, + "0x00000000000000000000000000000000000000f4": { + "balance": "0x1" + }, + "0x00000000000000000000000000000000000000f5": { + "balance": "0x1" + }, + "0x00000000000000000000000000000000000000f6": { + "balance": "0x1" + }, + "0x00000000000000000000000000000000000000f7": { + "balance": "0x1" + }, + "0x00000000000000000000000000000000000000f8": { + "balance": "0x1" + }, + "0x00000000000000000000000000000000000000f9": { + "balance": "0x1" + }, + "0x00000000000000000000000000000000000000fa": { + "balance": "0x1" + }, + "0x00000000000000000000000000000000000000fb": { + "balance": "0x1" + }, + "0x00000000000000000000000000000000000000fc": { + "balance": "0x1" + }, + "0x00000000000000000000000000000000000000fd": { + "balance": "0x1" + }, + "0x00000000000000000000000000000000000000fe": { + "balance": "0x1" + }, + "0x00000000000000000000000000000000000000ff": { + "balance": "0x1" + }, + "0xeb3907ecad74a0013c259d5874ae7f22dcbcc95c": { + "balance": "0x152d02c7e14af6800000" + } + } +} diff --git a/openethereum/kitabu/kitabu.toml.template b/openethereum/kitabu/kitabu.toml.template new file mode 100644 index 0000000..2ffa85a --- /dev/null +++ b/openethereum/kitabu/kitabu.toml.template @@ -0,0 +1,47 @@ +# File bootnode.toml + +[parity] +chain = "{{CONFIG_DIR}}/kitabu.json" +base_path = "{{DATA_DIR}}/data" + +[network] +port = 30303 +#reserved_peers = "{{CONFIG_DIR}}/bootnodes.txt" +# reserved_only = true +max_peers = 10 +snapshot_peers = 25 +#nat = "extip:100.102.26.121" +nat = "extip:{{EXTERNAL_IP}}" + +[rpc] +port = 8545 +apis = ["web3", "eth", "net", "personal", "parity", "parity_set", "traces", "rpc", "parity_accounts"] +interface = "all" +cors = ["*"] + +[websockets] +disable = false +port = 8546 +interface = "all" +origins = ["all"] + +[account] +password = ["{{CONFIG_DIR}}/kitabu.pwd"] + +[mining] +#CHANGE ENGINE SIGNER TO VALIDATOR ADDRESS +engine_signer = "{{SIGNER_ADDRESS}}" +reseal_on_txs = "none" +force_sealing = true +min_gas_price = 1 +gas_floor_target = "1" + +[footprint] +tracing = "on" +pruning = "archive" +pruning_history = 256 +cache_size_db = 2000 + +[misc] +log_file = "{{LOG_DIR}}/kitabu.log" +