-
Notifications
You must be signed in to change notification settings - Fork 113
Internal Miner
Internal mining is configured by modifying the config.xml
file located within [aion_folder]/config
.
An example configuration enabling internal mining is shown below:
<consensus>
<mining>true</mining>
<miner-address>0000000000000000000000000000000000000000000000000000000000000111</miner-address>
<cpu-mine-threads>2</cpu-mine-threads>
<extra-data>MyAion</extra-data>
</consensus>
In order to ensure the kernel is mining the following fields must be configured:
- mining: true to enable mining, false to disable it
- miner-address: The wallet address that will collect AION for mining blocks
To create a new wallet, run ./aion.sh -a create
. To import an existing wallet, please refer to Importing Accounts.
-
cpu-mine-threads: 1 OR up to 75% of your max CPU logical cores
The number of logical cores may be seen in either task manager (Windows) or system monitor (Ubuntu). It is not recommended to go above 75% of the total logical cores.
Optional field:
- extraData: any hex string up to 32 bytes
Once the config file has been setup the kernel should pick up the mining settings next time it is started.
Mining is normally delayed 10s to allow time for the kernel to fully start.
Basics
Kernel Configuration
- Build Aion kernel from source
- Installation & Configuration
- Command Line Interface
- Graphical Interface
- Database
- Internal Miner
- Genesis Block
- Aion Seed Nodes
- JSON-RPC API Docs
For Developers
- How to load/debug project to IntelliJ IDEA
- Aion Code Conventions
- Migrating from Ethereum
- Precompiled contract details
- Troubleshooting the kernel
- Aion P2p Specifications
- Aion transaction Specifications
- Aion pending state and the transaction pool
Tutorials
- Importing Accounts
- Kernel Deployment Examples
- Reverting to Previous Blocks
- Application Development
- Enabling-HTTPS-for-JSONRPC
- Enabling Secure connection for Aion Java API
Modules
Tools