This is the code used for the testnet for the æternity project.
This testnet uses simple PoW consensus. Its purpose is to show how state-channels work.
You will need Erlang version 18 or higher, and a couple of libraries. Please follow instructions: For Ubuntu For Mac
Then, start your node with following script:
sh start.sh
To download updates do this:
sh update.sh
To sync with the network and download the blockchain:
Then, start your node with following script:
sh start.sh
To sync with the network and download the blockchain:
easy:sync().
After fresh install, one can start mining.
To start mining with all CPU cores:
mine:start().
To stop mining:
mine:stop().
to check if you are currently mining:
mine:is_on().
easy:spend(To, Amount).
To is the recipient's account ID
tx_pool:data().
keys:id().
If it returns something less than 1, that means you don't have an account yet.
(does get done automatically when no accocunt and mining starts) Make an account
easy:balance().
To stop a node run:
easy:off().
You can read about how your private key is protected here
If you want to know more, check out our whitepaper on aeternity.com and get in touch with us via Gitter Chat or write us (emails in whitepaper).