This page describes how to drive Mirena.
Please run it on Ubuntu or Docker.
Mirena needs ubuntu 18.04. When you download, decompress, and run the file, synchronization with the seed nodes automatically proceed.
$ wget http://developer.mirena.com/download/mirena_testnet.tar
$ tar -xvf mirena_testnet.tar
$ cd testnet
$ ./mirenad_testnet &
------------------------------------------------------
STARTING MIRENSA NETWORK
------------------------------------------------------
root public key: PUB8Q1XKzCxYkreTLaHBL3ZcfLJkes6AiExZrsL9GnQxux6Ef8GMn
chain id: 15e5ee033ee7923c6050ee42dae6a7a872134f8cdc9cad3981e9fe814d824322
blockchain version: 0.1.0
s/w version: 0.1.0
------------------------------------------------------
If it's not Ubuntu, run it with Docker. You can run it after receiving an image from the Docker Hub. The p2p port is set to 6001 and the rpc port is set to 6002.
$ docker run --name mirena_testnet -p 24530:24530 mirena/mirena_testnet:latest /mirena_testnet/mirenad_testnet --data-dir=/mirena_testnet/node_data_dir/
Unable to find image 'mirena/mirena_testnet:latest' locally
latest: Pulling from mirena/mirena_testnet
456d651ccb27: Already exists
6c644279714d: Pull complete
00de648b73e0: Pull complete
Digest: sha256:26c3ccec4ab59ad8bf434a3becdf90b7c609361797d302fe13422195a6d4c58e
Status: Downloaded newer image for mirena/mirena_testnet:latest
------------------------------------------------------
STARTING MIRENSA NETWORK
------------------------------------------------------
root public key: PUB8Q1XKzCxYkreTLaHBL3ZcfLJkes6AiExZrsL9GnQxux6Ef8GMn
chain id: 15e5ee033ee7923c6050ee42dae6a7a872134f8cdc9cad3981e9fe814d824322
blockchain version: 0.1.0
s/w version: 0.1.0
------------------------------------------------------
3036917ms th_a main.cpp:172 main ] parsing options
3036917ms th_a main.cpp:174 main ] initializing node
3036917ms th_a main.cpp:176 main ] initializing plugins
3036917ms th_a application.cpp:1160 initialize_plugins ] Initializing plugin account_by_key
3036917ms th_a account_by_key_plugin.cpp:193 plugin_initialize ] Initializing account_by_key plugin
3036917ms th_a application.cpp:1160 initialize_plugins ] Initializing plugin account_history
3036917ms th_a application.cpp:1160 initialize_plugins ] Initializing plugin bobserver
3036917ms th_a application.cpp:1160 initialize_plugins ] Initializing plugin dapp
3036917ms th_a dapp_plugin.cpp:223 plugin_initialize ] Intializing dapp plugin
3036917ms th_a application.cpp:1160 initialize_plugins ] Initializing plugin dapp_history
3036917ms th_a dapp_history_plugin.cpp:331 plugin_initialize ] Intializing dapp history plugin
3036917ms th_a application.cpp:1160 initialize_plugins ] Initializing plugin token
3036917ms th_a token_plugin.cpp:142 plugin_initialize ] Intializing token plugin
3036917ms th_a main.cpp:179 main ] starting node
3036917ms th_a application.cpp:259 startup ] Backtrace on segfault is enabled
3036917ms th_a application.cpp:263 startup ] shared_file_size is 57982058496 bytes
3036917ms th_a application.hpp:104 register_api_factory ] name: login_api
3036917ms th_a application.hpp:104 register_api_factory ] name: database_api
3036917ms th_a application.hpp:104 register_api_factory ] name: network_node_api
3036918ms th_a application.hpp:104 register_api_factory ] name: network_broadcast_api
3036918ms th_a application.cpp:281 startup ] Starting MirenaEngine node in write mode.
3036918ms th_a application.cpp:302 startup ] _options->count(black-list) : 0
3036957ms th_a database.cpp:1559 show_free_memory ] Free memory is now 53G
3036957ms th_a application.cpp:393 startup ] API database_api enabled publicly
3036957ms th_a application.cpp:393 startup ] API login_api enabled publicly
3036957ms th_a application.cpp:393 startup ] API account_by_key_api enabled publicly
3036957ms th_a application.cpp:393 startup ] API network_broadcast_api enabled publicly
3036957ms th_a application.cpp:393 startup ] API dapp_api enabled publicly
3036957ms th_a application.cpp:393 startup ] API token_api enabled publicly
3036957ms th_a application.cpp:393 startup ] API dapp_history_api enabled publicly
3036971ms th_a application.cpp:106 reset_p2p_node ] Adding seed node 43.203.166.225:17001
3036971ms th_a application.cpp:137 reset_p2p_node ] Configured p2p node to listen on 0.0.0.0:33095
3036971ms th_a application.cpp:145 reset_p2p_node ] head_block_id: 0000000000000000000000000000000000000000
3036971ms th_a application.cpp:187 reset_websocket_serv ] Configured websocket rpc to listen on 0.0.0.0:24530
3036972ms th_a main.cpp:181 main ] starting plugins
3036972ms th_a application.hpp:104 register_api_factory ] name: account_by_key_api
3036972ms th_a account_history_plugin.cpp:378 plugin_startup ] account_history plugin: plugin_startup() begin
3036972ms th_a account_history_plugin.cpp:380 plugin_startup ] account_history plugin: plugin_startup() end
3036972ms th_a bobserver_plugin.cpp:390 plugin_startup ] bobserver plugin: plugin_startup() begin
3036972ms th_a bobserver_plugin.cpp:408 plugin_startup ] No bobservers configured! Please add bobserver names and private keys to configuration.
3036972ms th_a bobserver_plugin.cpp:410 plugin_startup ] bobserver plugin: plugin_startup() end
3036972ms th_a application.hpp:104 register_api_factory ] name: dapp_api
3036972ms th_a application.hpp:104 register_api_factory ] name: dapp_history_api
3036972ms th_a application.hpp:104 register_api_factory ] name: token_api
3036972ms th_a main.cpp:198 operator() ] Started bobserver node on a chain with 0 blocks.
3037384ms th_a database.cpp:2286 apply_hardfork ] HARDFORK 1 at block 1
3039386ms th_a application.cpp:500 handle_block ] Syncing Blockchain --- Got block: #10000 time: 2024-06-10T14:33:21
3041754ms th_a application.cpp:500 handle_block ] Syncing Blockchain --- Got block: #20000 time: 2024-06-10T22:53:21
3044067ms th_a application.cpp:500 handle_block ] Syncing Blockchain --- Got block: #30000 time: 2024-06-11T07:18:30
To change the settings, change the [config.ini] in the [node_data_dir] folder and run it again.
# Endpoint for P2P node to listen on p2p-endpoint = # Maxmimum number of incoming connections on P2P endpoint # p2p-max-connections = # P2P nodes to connect to on startup (may specify multiple times) seed-node = 43.203.166.225:17001 # Pairs of [BLOCK_NUM,BLOCK_ID] that should be enforced as checkpoints. # checkpoint = # Location of the shared memory file. Defaults to data_dir/blockchain # shared-file-dir = # Size of the shared memory file. Default: 54G shared-file-size = 54G # Endpoint for websocket RPC to listen on rpc-endpoint = 0.0.0.0:24530 # Endpoint for TLS websocket RPC to listen on # rpc-tls-endpoint = # Endpoint to forward write API calls to for a read node # read-forward-rpc = # The TLS certificate file for this server # server-pem = # Password for this certificate # server-pem-password = # API user specification, may be specified multiple times # api-user = # Set an API to be publicly available, may be specified multiple times public-api = database_api login_api account_by_key_api network_broadcast_api dapp_api token_api dapp_history_api # Plugin(s) to enable, may be specified multiple times enable-plugin = bobserver account_history account_by_key dapp token dapp_history # Maximum age of head block when broadcasting tx via API max-block-age = 200 # Flush shared memory file to disk this many blocks flush = 100000 # Whether to print backtrace on SIGSEGV backtrace = yes # Defines a range of accounts to track as a json pair ["from","to"] [from,to] Can be specified multiple times # track-account-range = # Defines a list of operations which will be explicitly logged. # history-whitelist-ops = # Defines a list of operations which will be explicitly ignored. # history-blacklist-ops = # Track blockchain statistics by grouping orders into buckets of equal size measured in seconds specified as a JSON array of numbers chain-stats-bucket-size = [60,3600,21600,86400,604800,2592000] # How far back in time to track history for each bucket size, measured in the number of buckets (default: 100) chain-stats-history-per-bucket = 100 # Enable block production, even if the chain is stale. enable-stale-production = false # Percent of bobservers (0-99) that must be participating in order to produce blocks required-participation = false # name of bobserver controlled by this node (e.g. initbobserver ) #bobserver = # WIF PRIVATE KEY to be used by one or more bobservers or miners #private-key = # RPC endpoint of a trusted validating node (required) # trusted-node =
To change log settings, change log_config.ini in the node_data_dir folder and re-run it.
# declare an appender named "stderr" that writes messages to the console #[log.console_appender.stderr] #stream=std_error [log.file_appender.stderr] filename=logs/default/default.log limit_days=7 # declare an appender named "p2p" that writes messages to p2p.log [log.file_appender.p2p] filename=logs/p2p/p2p.log # filename can be absolute or relative to this config file limit_days=7 # route any messages logged to the default logger to the "stderr" logger we # declared above, if they are info level are higher [logger.default] level=info appenders=stderr # route messages sent to the "p2p" logger to the p2p appender declared above [logger.p2p] level=warn appenders=p2p
This is how to check the log when running in the background. (log.file_appender.stderr option in log_config.ini)
$ tail -f node_data_dir/logs/default/default.log 2024-06-25T23:19:33 th_a:invoke handle_block handle_block ] Got 0 transactions on block 452396 by mirenatestnet17 -- latency: 114 ms application.cpp:523 2024-06-25T23:19:36 th_a:invoke handle_block handle_block ] Got 0 transactions on block 452397 by mirenatestnet04 -- latency: 116 ms application.cpp:523 2024-06-25T23:19:39 th_a:invoke handle_block handle_block ] Got 0 transactions on block 452398 by mirenatestnet18 -- latency: 113 ms application.cpp:523 2024-06-25T23:19:42 th_a:invoke handle_block handle_block ] Got 0 transactions on block 452399 by mirenatestnet23 -- latency: 114 ms application.cpp:523 2024-06-25T23:19:45 th_a:invoke handle_block handle_block ] Got 0 transactions on block 452400 by mirenatestnet11 -- latency: 115 ms application.cpp:523 2024-06-25T23:19:48 th_a:invoke handle_block handle_block ] Got 0 transactions on block 452401 by mirenatestnet06 -- latency: 115 ms application.cpp:523 2024-06-25T23:19:51 th_a:invoke handle_block handle_block ] Got 0 transactions on block 452402 by mirenatestnet03 -- latency: 115 ms application.cpp:523 2024-06-25T23:19:54 th_a:invoke handle_block handle_block ] Got 0 transactions on block 452403 by mirenatestnet13 -- latency: 114 ms application.cpp:523 2024-06-25T23:19:57 th_a:invoke handle_block handle_block ] Got 0 transactions on block 452404 by mirenatestnet02 -- latency: 113 ms application.cpp:523 2024-06-25T23:20:00 th_a:invoke handle_block handle_block ] Got 0 transactions on block 452405 by mirenatestnet15 -- latency: 116 ms application.cpp:523
Please enter a nickname.
Your post has been completed.