Disclaimer
All claims, content, designs, algorithms, estimates, roadmaps, specifications, and performance measurements described in this project are done with the author's best effort. It is up to the reader to check and validate their accuracy and truthfulness. Furthermore nothing in this project constitutes a solicitation for investment.
Solana: High Performance Blockchain
Solanaâ„¢ is a new architecture for a high performance blockchain. It aims to support over 700 thousand transactions per second on a gigabit network.
Running the demo
First, install Rust's package manager Cargo.
|
The testnode server is initialized with a ledger from stdin and generates new ledger entries on stdout. To create the input ledger, we'll need to create the mint and use it to generate a genesis ledger. It's done in two steps because the mint.json file contains a private key that will be used later in this demo.
| |
| |
Now you can start the server:
| |
Then, in a separate shell, let's execute some transactions. Note we pass in the JSON configuration file here, not the genesis ledger.
|
Now kill the server with Ctrl-C, and take a look at the ledger. You should see something similar to:
Now restart the server from where we left off. Pass it both the genesis ledger, and the transaction ledger.
| |
Lastly, run the client demo again, and verify that all funds were spent in the previous round, and so no additional transactions are added.
|
Stop the server again, and verify there are only Tick entries, and no Transaction entries.
Developing
Building
Install rustc, cargo and rustfmt:
|
Download the source code:
Testing
Run the test suite:
Benchmarking
First install the nightly build of rustc. cargo bench
requires unstable features:
Run the benchmarks: