概要
Elixir full node implementation of the aeternity specification
ビジネス・金融計測したスター増加
- 24時間
- 0
- 7日間
- 0
- 15日間
- 0
- 1か月
- 履歴を収集中
期間ごとの純増数です。期間は重複しており、日別の値ではありません。未計測の値は空欄です。スター数は注目度の指標であり、品質の保証ではありません。
README.md
オリジナルCURRENTLY NOT COMPATIBLE TO THE AETERNITY NETWORK
This implementation aims to be a aims to be a full node that complies with the aeternity specification, in the current state this is not ready yet and should never be used to join the aeternity network.
Aeternity Elixir Full Node
This is an elixir full node implementation of the aeternity specification.
Compatibility to the erlang aeternity implementation is documented in docs/aeternity-erlang-compatibility.md.
Getting started
Required packages
Elixir 1.6 with Erlang/OTP20 is the basis of the project
Rust is needed for persistent storage dependency
libsodium 1.0.16 is needed for elliptic curve support
sudo apt-get install autoconf autogen libtool libgmp3-dev lsof
wget -O libsodium-src.tar.gz https://github.com/jedisct1/libsodium/releases/download/1.0.16/libsodium-1.0.16.tar.gz
mkdir libsodium-src && tar -zxf libsodium-src.tar.gz -C libsodium-src --strip-components=1
cd libsodium-src && ./configure && make && make check && sudo make install && cd ..
Fetching dependencies
mix deps.get
Starting the application
Start the application in interactive Elixir
- Development config:
make iex-0 - Production config:
MIX_ENV=prod make iex-0
The default sync port is 3015, this can be adjusted using SYNC_PORT=some_port iex -S mix phx.server.
The node will run an http api at localhost:4000, this can be adjusted using PORT=some_port iex -S mix phx.server.
Usage
Elixir interactive api-calls
Miner.resume()to start the minerMiner.suspend()to stop the minerMiner.mine_sync_block_to_chain()mine the next blockChain.top_block()to get the top block of the current chainChain.top_block_chain_state()to get the top block chainstateChain.chain_state(block_hash)to get the chainstate of certain blockPool.get_pool()to get all transactions from the poolPeers.all_peers()to get all connected peersPeers.try_connect(%{host: host, port: port, pubkey: pubkey})to manually connect a new peerPeers.get_info_try_connect(uri)to connect to another elixir node, providing a get connection info interface
Running the tests
Run the testsuite with mix test
Logging
Debug, error, warning and info logs is found in apps/aecore/logs
Docker Container
A Dockerfile and docker-compose.yml are found in the base directory, prebuilt images are not yet published.
Build container
docker build . -t elixir-nodeRun node in container
docker run --name elixir-node -it -p 4000:4000 -p 3015:3015 elixir-nodeRun multiple nodes network with docker compose
docker-compose upruns 3 connected nodes, with 2 mining
Detailed Usage
Developer Documentation
関連プロジェクトを探す
読み込み中…