Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use latest hyperchains version #14

Open
wants to merge 6 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions docker-compose.full.yml
Original file line number Diff line number Diff line change
Expand Up @@ -48,9 +48,11 @@ services:
- ae_mdw_node_db:/home/aeternity/node/local/rel/aeternity/data/mnesia
- ae_mdw_db:/home/aeternity/node/local/rel/aeternity/data/mdw.db
environment:
# workaround
TELEMETRY_STATSD_HOST: localhost
# mdw configuration
ENABLE_TELEMETRY: "false"
ENABLE_CONSOLE_LOG: "true"
LOG_LEVEL: warning
# node configuration
AETERNITY_CONFIG: /home/aeternity/aeternity.yaml
AE__MINING__AUTOSTART: "false"
AE__HTTP__CORS__ALLOW_DOMAINS: '["*"]'
Expand Down
44 changes: 25 additions & 19 deletions docker-compose.hyperchain.yml
Original file line number Diff line number Diff line change
@@ -1,40 +1,46 @@
services:
hc_mdw:
image: aeternity/ae_mdw
# image: aeternity/ae_mdw
# platform: linux/x86_64
# image: aeternity/ae_mdw:local
# build:
# context: https://github.com/aeternity/ae_mdw.git#v1.90.0
# args:
# BUILDKIT_CONTEXT_KEEP_GIT_DIR: 1
# NODE_VERSION: 7.2.0
image: aeternity/ae_mdw:local
build:
context: https://github.com/aeternity/ae_mdw.git#master
args:
BUILDKIT_CONTEXT_KEEP_GIT_DIR: 1
# NODE_VERSION: master
NODE_IMAGE: aeternity/aeternity:master
hostname: hc_mdw
networks:
default:
aliases:
- "hc-mdw.local.gd"
ports:
- "24000:24000" #MDW's default port
- "24001:24001" #MDW's websocket default port
- "23113:23113" #Node's default internal API port
- "23013:23013" #Node's default external API port
- "23014:23014" #Node's channels default websocket port
- "24000:24000" #MDW's port
- "24001:24001" #MDW's websocket port
- "23113:23113" #Node's internal API port
- "23013:23013" #Node's external API port
- "23014:23014" #Node's channels websocket port
- "23015:23015" #Node's sync port
volumes:
- ${PWD}/node/hyperchain/aeternity.yaml:/home/aeternity/aeternity.yaml
- ${PWD}/node/hyperchain/accounts.json:/home/aeternity/node/local/rel/aeternity/data/aecore/.iris/hc_devnet_accounts.json
- ${PWD}/node/hyperchain/contracts.json:/home/aeternity/node/local/rel/aeternity/data/aecore/.iris/hc_devnet_contracts.json
- ${PWD}/node/hyperchain/accounts.json:/home/aeternity/node/local/rel/aeternity/data/aecore/.ceres/hc_devnet_accounts.json
- ${PWD}/node/hyperchain/contracts.json:/home/aeternity/node/local/rel/aeternity/data/aecore/.ceres/hc_devnet_contracts.json
- ${PWD}/node/hyperchain/keys:/home/aeternity/node/local/rel/aeternity/data/aecore/keys
- ae_hyperchain_node_db:/home/aeternity/node/local/rel/aeternity/data/mnesia
- ae_hyperchain_mdw_db:/home/aeternity/node/local/rel/aeternity/data/mdw.db
environment:
# workaround
TELEMETRY_STATSD_HOST: localhost
# mdw configuration
ENABLE_TELEMETRY: "false"
ENABLE_CONSOLE_LOG: "true"
AETERNITY_CONFIG: /home/aeternity/aeternity.yaml
LOG_LEVEL: warning
PORT: 24000
WS_PORT: 24001
# node configuration
AETERNITY_CONFIG: /home/aeternity/aeternity.yaml
AE__HTTP__EXTERNAL__PORT: 23013
AE__HTTP__INTERNAL__PORT: 23113
AE__WEBSOCKET__CHANNEL__PORT: 23014
AE__SYNC__PORT: 23015
AE__HTTP__CORS__ALLOW_DOMAINS: '["*"]'
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:24000/status"]
Expand All @@ -53,7 +59,7 @@ services:
NODE_URL: http://hc_mdw:23013/
EPOCH_URL_DEBUG: http://hc_mdw:23113/
EXPLORER_URL: http://localhost:28020
FAUCET_ACCOUNT_PRIV_KEY: 1327C9AD3650EF196DDF156E8F53FA01294C68D57A1DF5363AAB03EC314C8A270CF6CB1DCC6B8FC14DEF3F66B834D881CFBB5C120934903DCD859FC05675429E
FAUCET_ACCOUNT_PRIV_KEY: EBEAB332C627DC6F79E1D305ABFD448781C0101F3E1A5261B37EC4821702E4032757508127D7A9BA0AC449547085FAF3A18C96903800C0245F0A79949D930792
ports:
- "28030:5000"
depends_on:
Expand Down Expand Up @@ -106,7 +112,7 @@ services:

ui:
platform: linux/x86_64
image: aeternity/aepp-hyperchain:master
image: public.ecr.aws/aeternity/aepp-hyperchain:v0.3
environment:
AE_FAUCET_URL: "http://localhost:28030/"
AE_WALLET_URL: "http://localhost:28010/"
Expand Down
13 changes: 6 additions & 7 deletions node/hyperchain/accounts.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
{
"ak_2b8YNe9XoFDJtwaCAc6A4LLLj2sSUNqoJth66xRa87EQPGwxe7": 1000000000000000000000000000000000000000000000000,
"ak_6i9dyDyiXgJZ8CKvDWbPrdzBAHzjkCix26ZasbBaUJyK7yLmu": 3100000000000000000000000000,
"ak_2KAcA2Pp1nrR8Wkt3FtCkReGzAi8vJ9Snxa4PcmrthVx8AhPe8": 3100000000000000000000000000,
"ak_2Q9pmuxKdMmgdjcbQr3BonaucbYGjdeDkqMS2mewMKYgybJ2WJ": 3100000000000000000000000000,
"ak_2PgF7npGXkiAfJjhdkwWj4gnTi9UDwiRhP41Gru5Y9VGwe6bJS": 3100000000000000000000000000,
"ak_ovfcHoShxHfyKhvpwr4PWVhGmYdyhfM3DwAFztwgL886rhVS7": 3100000000000000000000000000
}
"ak_U3S1Ear6WVsfbwckUrVjU3XKaKuPz8G1p3Tn7XJXVFSeTXUpj": 1000000000000000000000000000000000000000000000000,
"ak_JKv4gPruHmYn4c8T8a7L1w12tn6YfR4tSdXgmmALYgCZEyHLM": 3100000000000000000000000000,
"ak_35dj3xq5XToJX6sjKaE886BLR6kJicqfATgggXKy93brWbYQ7": 3100000000000000000000000000,
"ak_Vi71E49G2jQD3fUdmzHQjG3X5oA844oZKx7QHfDDTm8NhqUaM": 3100000000000000000000000000,
"ak_FFAuLh2W236SfVPg6YasUW9VwzmsshstdHQ1Nx5wGtWaZQQy2": 3100000000000000000000000000
}
55 changes: 26 additions & 29 deletions node/hyperchain/aeternity.yaml
Original file line number Diff line number Diff line change
@@ -1,59 +1,56 @@
chain:
consensus:
'0':
type: 'hyper_chain'
config:
child_block_time: 3000
child_epoch_length: 600
contract_owner: 'ak_11111111111111111111111111111115rHyByZ'
election_contract: 'ct_t7ESuRFvGdYHwM6KJhKbSnFUJQhnB9aCFed1RWR89ShNDgwWA'
rewards_contract: 'ct_LRbi65kmLtE7YMkG6mvG5TxAXTsPJDZjAtsPuaXtRyPA7gnfJ'
expected_key_block_rate: 30000
lazy_leader_trigger_time: 5000
parent_chain:
confirmations: 0
start_height: 10
producing_commitments: true
consensus:
fee: 100000000000000
amount: 1
network_id: 'devnet'
spend_address: 'ak_2MGLPW2CHTDXJhqFJezqSwYSNwbZokSKkG7wSbGtVmeyjGfHtm'
type: 'AE2AE'
parent_epoch_length: 10
polling:
fetch_interval: 250
fetch_interval: 500
nodes:
- "http://mdw:3013"
- 'http://mdw:3013'
start_height: 10
rewards_contract: 'ct_LRbi65kmLtE7YMkG6mvG5TxAXTsPJDZjAtsPuaXtRyPA7gnfJ'
stakers:
- hyper_chain_account:
priv: 'f191dcb1fc96fadf6c08677e7a479288977db3feab9375dd39ff85db187d851ab8440e688d6737ae51741b668c97def0bf8eff7159f77b9fd1b5b4f2c614fce4'
pub: 'ak_2Q9pmuxKdMmgdjcbQr3BonaucbYGjdeDkqMS2mewMKYgybJ2WJ'
parent_chain_account:
priv: '91450EFE0516C24476390086426008147CFDEECFE6935FADA1C056C3A5BA73FBB1B577BCD327CB39E55E6C026BD6A74A1B35DE6C0650C4AE51EFAB759E415B66'
pub: 'ak_2MGLPW2CHTDXJhqFJezqSwYSNwbZokSKkG7wSbGtVmeyjGfHtm'
priv: '61784e636987c2e6a508a35f078105f1f380addbc770eb613f704dd8baa24f9704b8fe238454ddae58fc1a5133631b6736d45d988e9c70300907d567a3fa0fd7'
pub: 'ak_35dj3xq5XToJX6sjKaE886BLR6kJicqfATgggXKy93brWbYQ7'
- hyper_chain_account:
priv: '38940358aefaeb3c1c5ffc9ec9ed7dd1408c1377ea43cf02b04d72697c96e3ccb72fa51be777030b9163feb913da04e0a444ae0300d4103fa7c5cdd24c76cf23'
pub: 'ak_2PgF7npGXkiAfJjhdkwWj4gnTi9UDwiRhP41Gru5Y9VGwe6bJS'
parent_chain_account:
priv: '91450EFE0516C24476390086426008147CFDEECFE6935FADA1C056C3A5BA73FBB1B577BCD327CB39E55E6C026BD6A74A1B35DE6C0650C4AE51EFAB759E415B66'
pub: 'ak_2MGLPW2CHTDXJhqFJezqSwYSNwbZokSKkG7wSbGtVmeyjGfHtm'
priv: '776e98b16b0f0165b78d3fbbd6938a71cef36479c232a4731b65bab38acdaaa3412fc33de634276ce3e226476308c36cfdfb906776233aec318e8d3bdf6256ab'
pub: 'ak_Vi71E49G2jQD3fUdmzHQjG3X5oA844oZKx7QHfDDTm8NhqUaM'
- hyper_chain_account:
priv: 'd9f8966dc27065551c85381e72516769fdfd4c0f3496ffa350d6d8ddea9fabc86a8cb05e195a50004e495495bb9960acdae2ab466239e9b3761b0b722d968297'
pub: 'ak_ovfcHoShxHfyKhvpwr4PWVhGmYdyhfM3DwAFztwgL886rhVS7'
parent_chain_account:
priv: '91450EFE0516C24476390086426008147CFDEECFE6935FADA1C056C3A5BA73FBB1B577BCD327CB39E55E6C026BD6A74A1B35DE6C0650C4AE51EFAB759E415B66'
pub: 'ak_2MGLPW2CHTDXJhqFJezqSwYSNwbZokSKkG7wSbGtVmeyjGfHtm'
priv: 'ee8717e491a973e06730cfcd6d700d41f0c68ca36fd22ad0be7102513b3fca6c2057ee2969052490e3638e8ffb22bdaf5060189125481268611f046f951d4715'
pub: 'ak_FFAuLh2W236SfVPg6YasUW9VwzmsshstdHQ1Nx5wGtWaZQQy2'
staking_contract: 'ct_LRbi65kmLtE7YMkG6mvG5TxAXTsPJDZjAtsPuaXtRyPA7gnfJ'
type: 'hyperchain'
db_direct_access: true
hard_forks:
'5': 0
'6': 0
persist: true

fork_management:
network_id: 'hc_devnet'

http:
endpoints:
hyperchain: true
dry-run: true

peers: []
include_default_peers: false

mining:
autostart: true
beneficiary: 'ak_2b8YNe9XoFDJtwaCAc6A4LLLj2sSUNqoJth66xRa87EQPGwxe7'
peers: []

logging:
level: warning

metrics:
port: 0
Loading