Skip to content

æternity testnet: solving scalability problems by making sense of state-channels

Notifications You must be signed in to change notification settings

shouhuas/testnet

Repository files navigation

æternity

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.

Compiling and Runing

You will need Erlang and a couple of libraries. Please follow instructions: For Ubuntu

Then, start your node with following script:

sh start.sh

Commands

Sync with the network

To sync with the network and download the blockchain:

easy:sync()

Mining

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().

Spend

easy:spend(To, Amount) 

To is the recipient's account ID

Last transactions

tx_pool:data().

Find out your account ID

keys:id().

If it returns something less than 1, that means you don't have an account yet.

Create an account

(does get done automatically when no accocunt and mining starts) Make an account

Check your balance

easy:balance().

Stop a node

To stop a node run:

easy:off().

Else

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).

About

æternity testnet: solving scalability problems by making sense of state-channels

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published