Closed davidyuk closed 1 year ago
this is regarding base aepp testing now?
in the java sdk we are using mdw locally:
it's a custom build of us with node v6.3.0
right now. do you need latest features of v6.4.0
? I can trigger a build to use latest version of node and mdw if you need it
the docs currently say only ae_mainnet and ae_uat are supported, but I don't know the technical reason. @jyeshe @sborrazas
Since node v6.3.0 this is needed in config.exs:
config :aecore, network_id: "ae_uat"
@thepiwo @davidyuk @marc0olo
There's also the devnet configuration that can be used to set up a dev chain (where transactions are processed instantly).
This closed PR contains a sample on how you can additionally set up a devnet with the JS SDK to be able to create transactions locally
@davidyuk can you use something else then ae_uat
for this? Anyways I think its a node issue, not a mdw issue
Since node v6.3.0 this is needed in config.exs:
config :aecore, network_id: "ae_uat"
@thepiwo @davidyuk @marc0olo
At least when running ad-hoc images/containers with make docker-shell
do you need latest features of v6.4.0?
I just wasn't aware of what with what is compatible. Can we define it somehow explicitly in readme/release notes/#517?
the docs currently say only ae_mainnet and ae_uat are supported
I used ae_uat
but with peers disabled to get the needed behavior.
This closed PR contains a sample on how you can additionally set up a devnet
I don't need to setup a local mdw anymore, but would be nice to have it documented.
@davidyuk looking at the docs I believe setting peers to an empty array won't connect to any node from any network, which means it will remain without any new blocks, but we might have to ask the core team to be sure on this.
What kind of setup are you trying to have locally and for what use would it be?
@davidyuk looking at the docs I believe setting peers to an empty array won't connect to any node from any network, which means it will remain without any new blocks, but we might have to ask the core team to be sure on this.
as long the node is mining that should work as far as I know
@marc0olo once I removed the include_default_peers: False
config the node started syncing
@davidyuk have you verified the node without mdw would be syncing with that configuration? Genesis block is > 4 years old and I don't know how fast the difficulty adjustment happens. I'd think you are mining already, just not finding a block.
What kind of setup are you trying to have locally and for what use would it be?
Ideally, it shouldn't sync with anything, should mine blocks by interval, middleware endpoints should be in sync with mined blocks, I should be able to provide a genesis account with some coins.
I was planning to connect some aepp to it (to both middleware and node endpoints) to do some testing.
have you verified the node without mdw would be syncing with that configuration?
Actually, I didn't. I wouldn't use include_default_peers
if I am able to change the network id.
confirmed this is still an issue with this config
sync:
port: 3015
log_peer_connection_count_interval: 6000000
keys:
dir: keys
peer_password: "secret"
http:
external:
port: 3013
internal:
port: 3113
websocket:
channel:
port: 3014
mining:
autostart: true
beneficiary: "ak_2Dri7n9Bm2FgdN5ZFXzDn1ZAXUMox6roEWTfU1rCQ842pTdWiK"
expected_mine_rate: 5000
cuckoo:
miner:
executable: mean15-generic
extra_args: ""
edge_bits: 15
fork_management:
network_id: ae_devnet
running docker-compose up --build
@jyeshe is this resolved with the latest changes for HC?
@jyeshe is this resolved with the latest changes for HC?
It was a fix for another issue but solved this one too. Testing with your aeternity.yaml it syncs and the beneficary is found:
$ curl http://localhost:3013/v3/accounts/ak_2Dri7n9Bm2FgdN5ZFXzDn1ZAXUMox6roEWTfU1rCQ842pTdWiK
{"balance":1680535000000000000000,"id":"ak_2Dri7n9Bm2FgdN5ZFXzDn1ZAXUMox6roEWTfU1rCQ842pTdWiK","kind":"basic","nonce":0,"payable":true}
I've clonned both
ae_mdw
(067f2c4, 1.5.0 tag) andaeternity
(39941357, v6.4.0) to the same folder. Openedae_mdw
.Adjusted configuration a bit:
Executed
docker-compose build
anddocker-compose up
.The logs looks fine
``` docker-compose up [+] Running 1/0 ⠿ Container ae_mdw-ae_mdw-1 Created 0.0s Attaching to ae_mdw-ae_mdw-1 ae_mdw-ae_mdw-1 | warning: variable "deps" does not exist and is being expanded to "deps()", please use parentheses to remove the ambiguity or change the variable name ae_mdw-ae_mdw-1 | /home/aeternity/node/ae_mdw/deps/dbg/mix.exs:19: Dbg.Mixfile.project/0 ae_mdw-ae_mdw-1 | ae_mdw-ae_mdw-1 | Loading aecore and deps ae_mdw-ae_mdw-1 | Loading sext ae_mdw-ae_mdw-1 | Loading parse_trans ae_mdw-ae_mdw-1 | Loading syntax_tools ae_mdw-ae_mdw-1 | Loading goldrush ae_mdw-ae_mdw-1 | Loading gproc ae_mdw-ae_mdw-1 | Loading jobs ae_mdw-ae_mdw-1 | Loading exometer_core ae_mdw-ae_mdw-1 | Loading redbug ae_mdw-ae_mdw-1 | Loading yamerl ae_mdw-ae_mdw-1 | Loading lager ae_mdw-ae_mdw-1 | Loading aeutils ae_mdw-ae_mdw-1 | Loading base58 ae_mdw-ae_mdw-1 | Loading sha3 ae_mdw-ae_mdw-1 | Loading enacl ae_mdw-ae_mdw-1 | Loading enoise ae_mdw-ae_mdw-1 | Loading jsx ae_mdw-ae_mdw-1 | Loading unicode_util_compat ae_mdw-ae_mdw-1 | Loading idna ae_mdw-ae_mdw-1 | Loading nat ae_mdw-ae_mdw-1 | Loading aeminer ae_mdw-ae_mdw-1 | Loading aetx ae_mdw-ae_mdw-1 | Loading aevm ae_mdw-ae_mdw-1 | Loading aeprimop ae_mdw-ae_mdw-1 | Loading aeoracle ae_mdw-ae_mdw-1 | Loading aecontract ae_mdw-ae_mdw-1 | Loading aebytecode ae_mdw-ae_mdw-1 | Loading aens ae_mdw-ae_mdw-1 | Loading aega ae_mdw-ae_mdw-1 | Loading aefate ae_mdw-ae_mdw-1 | Loading aeserialization ae_mdw-ae_mdw-1 | Loading ranch ae_mdw-ae_mdw-1 | Setting up data paths ae_mdw-ae_mdw-1 | Running setup hooks ae_mdw-ae_mdw-1 | setenv A=aecore: K=persist, V=true ae_mdw-ae_mdw-1 | 14:28:36.531 [info] Application lager started on node aeternity@localhost ae_mdw-ae_mdw-1 | 14:28:36.652 [info] Database persist mode true ae_mdw-ae_mdw-1 | 14:28:36.652 [info] Database backend mnesia_rocksdb ae_mdw-ae_mdw-1 | 14:28:36.653 [info] Database directory /home/aeternity/node/local/rel/aeternity/data/mnesia ae_mdw-ae_mdw-1 | 14:28:36.893 [info] Application mnesia started on node aeternity@localhost ae_mdw-ae_mdw-1 | 14:28:43.067 [info] aec_db:check_db()-> ok ae_mdw-ae_mdw-1 | 14:28:43.067 [info] Setup phase 210 ae_mdw-ae_mdw-1 | 14:28:43.199 [info] Loaded empty persisted chain ae_mdw-ae_mdw-1 | 14:28:43.202 [info] aec_db:start_db()-> ok ae_mdw-ae_mdw-1 | 14:28:43.202 [info] Setup phase 1000 ae_mdw-ae_mdw-1 | 14:28:43.203 [info] Set app_ctrl mode: normal ae_mdw-ae_mdw-1 | Starting aecore ae_mdw-ae_mdw-1 | 14:28:43.216 [info] aecore_app:set_app_ctrl_mode()-> ok ae_mdw-ae_mdw-1 | 14:28:43.216 [info] Setup finished processing hooks (Mode=normal)... ae_mdw-ae_mdw-1 | 14:28:43.221 [info] Application sext started on node aeternity@localhost ae_mdw-ae_mdw-1 | 14:28:43.221 [info] Application parse_trans started on node aeternity@localhost ae_mdw-ae_mdw-1 | 14:28:43.262 [info] Application jobs started on node aeternity@localhost ae_mdw-ae_mdw-1 | 14:28:43.276 [info] Application hut started on node aeternity@localhost ae_mdw-ae_mdw-1 | 14:28:43.299 [info] Application bear started on node aeternity@localhost ae_mdw-ae_mdw-1 | 14:28:43.404 [info] Application folsom started on node aeternity@localhost ae_mdw-ae_mdw-1 | 14:28:43.560 [info] Application exometer_core started on node aeternity@localhost ae_mdw-ae_mdw-1 | 14:28:43.562 [info] Application redbug started on node aeternity@localhost ae_mdw-ae_mdw-1 | 14:28:43.584 [info] Application yamerl started on node aeternity@localhost ae_mdw-ae_mdw-1 | 14:28:43.602 [info] Application argparse started on node aeternity@localhost ae_mdw-ae_mdw-1 | 14:28:43.627 [info] Application aeutils started on node aeternity@localhost ae_mdw-ae_mdw-1 | 14:28:43.628 [info] Application base58 started on node aeternity@localhost ae_mdw-ae_mdw-1 | 14:28:43.642 [info] Application hex2bin started on node aeternity@localhost ae_mdw-ae_mdw-1 | 14:28:43.642 [info] Application sha3 started on node aeternity@localhost ae_mdw-ae_mdw-1 | 14:28:43.642 [info] Application enacl started on node aeternity@localhost ae_mdw-ae_mdw-1 | 14:28:43.642 [info] Application enoise started on node aeternity@localhost ae_mdw-ae_mdw-1 | 14:28:43.643 [info] Application jsx started on node aeternity@localhost ae_mdw-ae_mdw-1 | 14:28:43.643 [info] Application unicode_util_compat started on node aeternity@localhost ae_mdw-ae_mdw-1 | 14:28:43.643 [info] Application idna started on node aeternity@localhost ae_mdw-ae_mdw-1 | 14:28:43.661 [info] Application inet_cidr started on node aeternity@localhost ae_mdw-ae_mdw-1 | 14:28:43.673 [info] Application inet_ext started on node aeternity@localhost ae_mdw-ae_mdw-1 | 14:28:43.682 [info] Application xmerl started on node aeternity@localhost ae_mdw-ae_mdw-1 | 14:28:43.696 [info] Application rand_compat started on node aeternity@localhost ae_mdw-ae_mdw-1 | 14:28:43.733 [info] Application lhttpc started on node aeternity@localhost ae_mdw-ae_mdw-1 | 14:28:43.734 [info] Application nat started on node aeternity@localhost ae_mdw-ae_mdw-1 | 14:28:43.743 [info] Application aecuckoo started on node aeternity@localhost ae_mdw-ae_mdw-1 | 14:28:43.753 [info] Application aecuckooprebuilt started on node aeternity@localhost ae_mdw-ae_mdw-1 | 14:28:43.753 [info] Application aeminer started on node aeternity@localhost ae_mdw-ae_mdw-1 | 14:28:43.753 [info] Application aetx started on node aeternity@localhost ae_mdw-ae_mdw-1 | 14:28:43.767 [info] Application eblake2 started on node aeternity@localhost ae_mdw-ae_mdw-1 | 14:28:43.767 [info] Application aeserialization started on node aeternity@localhost ae_mdw-ae_mdw-1 | 14:28:43.783 [info] Application getopt started on node aeternity@localhost ae_mdw-ae_mdw-1 | 14:28:43.783 [info] Application aebytecode started on node aeternity@localhost ae_mdw-ae_mdw-1 | 14:28:43.783 [info] Application aevm started on node aeternity@localhost ae_mdw-ae_mdw-1 | 14:28:43.783 [info] Application aecontract started on node aeternity@localhost ae_mdw-ae_mdw-1 | 14:28:43.783 [info] Application aens started on node aeternity@localhost ae_mdw-ae_mdw-1 | 14:28:43.783 [info] Application aeoracle started on node aeternity@localhost ae_mdw-ae_mdw-1 | 14:28:43.783 [info] Application aeprimop started on node aeternity@localhost ae_mdw-ae_mdw-1 | 14:28:43.784 [info] Application aega started on node aeternity@localhost ae_mdw-ae_mdw-1 | 14:28:43.811 [info] Application ecrecoverprebuilt started on node aeternity@localhost ae_mdw-ae_mdw-1 | 14:28:43.811 [info] Application ecrecover started on node aeternity@localhost ae_mdw-ae_mdw-1 | 14:28:43.824 [info] Application emcl started on node aeternity@localhost ae_mdw-ae_mdw-1 | 14:28:43.824 [info] Application aefate started on node aeternity@localhost ae_mdw-ae_mdw-1 | 14:28:43.838 [info] Application ranch started on node aeternity@localhost ae_mdw-ae_mdw-1 | 14:28:43.839 [info] Starting aecore node ae_mdw-ae_mdw-1 | 14:28:43.899 [info] Initializing keys manager ae_mdw-ae_mdw-1 | 14:28:43.912 [info] Detailed peer statistics are disabled ae_mdw-ae_mdw-1 | 14:28:43.969 [info] aec_monitor_metrics_probe:probe_init([ae,epoch,aecore,eper], probe, [{module,aec_monitor_metrics_probe},{type,probe}]) ae_mdw-ae_mdw-1 | 14:28:44.042 [info] Application aecore started on node aeternity@localhost ae_mdw-ae_mdw-1 | 14:28:44.058 [info] Application ae_plugin started on node aeternity@localhost ae_mdw-ae_mdw-1 | 14:28:44.088 [info] Application deep_merge started on node aeternity@localhost ae_mdw-ae_mdw-1 | 14:28:44.090 [info] Application benchee started on node aeternity@localhost ae_mdw-ae_mdw-1 | 14:28:44.100 [info] Application smart_global started on node aeternity@localhost ae_mdw-ae_mdw-1 | 14:28:44.107 [info] Application jason started on node aeternity@localhost ae_mdw-ae_mdw-1 | 14:28:44.113 [info] Application smart_record started on node aeternity@localhost ae_mdw-ae_mdw-1 | 14:28:44.119 [info] Application ex_json_schema started on node aeternity@localhost ae_mdw-ae_mdw-1 | 14:28:44.127 [info] Application tesla started on node aeternity@localhost ae_mdw-ae_mdw-1 | 14:28:44.149 [info] Application websockex started on node aeternity@localhost ae_mdw-ae_mdw-1 | 14:28:44.156 [info] Application cors_plug started on node aeternity@localhost ae_mdw-ae_mdw-1 | 14:28:44.165 [info] Application cowlib started on node aeternity@localhost ae_mdw-ae_mdw-1 | 14:28:44.182 [info] Application cowboy started on node aeternity@localhost ae_mdw-ae_mdw-1 | 14:28:44.188 [info] Application cowboy_telemetry started on node aeternity@localhost ae_mdw-ae_mdw-1 | 14:28:44.197 [info] Application plug_cowboy started on node aeternity@localhost ae_mdw-ae_mdw-1 | 14:28:44.201 [info] Application phoenix_swagger started on node aeternity@localhost ae_mdw-ae_mdw-1 | 14:28:44.204 [info] Application phoenix_html started on node aeternity@localhost ae_mdw-ae_mdw-1 | 14:28:44.208 [info] Application msgpax started on node aeternity@localhost ae_mdw-ae_mdw-1 | 14:28:44.215 [info] Application poison started on node aeternity@localhost ae_mdw-ae_mdw-1 | 14:28:51.383 [warning] PID <0.50.0> triggered monitor long_schedule with [{timeout,514},{in,{erl_prim_loader,request,1}},{out,undefined}] ae_mdw-ae_mdw-1 | 14:28:55.343 [warning] PID <0.927.0> triggered monitor long_schedule with [{timeout,671},{in,{gen,do_call,4}},{out,{gen,do_call,4}}] ae_mdw-ae_mdw-1 | 14:28:58.634 [warning] PID <0.50.0> triggered monitor long_schedule with [{timeout,540},{in,{erl_prim_loader,request,1}},{out,undefined}] ae_mdw-ae_mdw-1 | 14:29:01.294 [warning] PID <0.50.0> triggered monitor long_schedule with [{timeout,671},{in,undefined},{out,{code_server,loop,1}}] ae_mdw-ae_mdw-1 | 14:29:10.704 [info] Application prometheus started on node aeternity@localhost ae_mdw-ae_mdw-1 | 14:29:10.711 [info] Application prometheus_ex started on node aeternity@localhost ae_mdw-ae_mdw-1 | 14:29:10.726 [info] Application accept started on node aeternity@localhost ae_mdw-ae_mdw-1 | 14:29:10.727 [info] Application prometheus_plugs started on node aeternity@localhost ae_mdw-ae_mdw-1 | 14:29:10.734 [info] Application secure_random started on node aeternity@localhost ae_mdw-ae_mdw-1 | 14:29:10.746 [info] Application elixir_uuid started on node aeternity@localhost ae_mdw-ae_mdw-1 | 14:29:10.753 [info] Application socket started on node aeternity@localhost ae_mdw-ae_mdw-1 | 14:29:10.761 [info] Application the_end started on node aeternity@localhost ae_mdw-ae_mdw-1 | 14:29:10.761 [info] Application riverside started on node aeternity@localhost ```But, the beneficiary account contains no tokens:
Node is not mining blocks: