diff --git a/README.md b/README.md index 611be8a83..f476dbe5b 100644 --- a/README.md +++ b/README.md @@ -39,25 +39,25 @@ $ cd solana 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 +two steps because the mint-demo.json file contains private keys that will be used later in this demo. ```bash - $ echo 1000000000 | cargo run --release --bin solana-mint | tee mint.json - $ cat mint.json | cargo run --release --bin solana-genesis | tee genesis.log + $ echo 1000000000 | cargo run --release --bin solana-mint-demo > mint-demo.json + $ cat mint-demo.json | cargo run --release --bin solana-genesis-demo > genesis.log ``` Now you can start the server: ```bash - $ cat genesis.log | cargo run --release --bin solana-testnode | tee transactions0.log + $ cat genesis.log | cargo run --release --bin solana-testnode > transactions0.log ``` Then, in a separate shell, let's execute some transactions. Note we pass in the JSON configuration file here, not the genesis ledger. ```bash - $ cat mint.json | cargo run --release --bin solana-client-demo + $ cat mint-demo.json | cargo run --release --bin solana-client-demo ``` Now kill the server with Ctrl-C, and take a look at the ledger. You should @@ -73,14 +73,14 @@ Now restart the server from where we left off. Pass it both the genesis ledger, the transaction ledger. ```bash - $ cat genesis.log transactions0.log | cargo run --release --bin solana-testnode | tee transactions1.log + $ cat genesis.log transactions0.log | cargo run --release --bin solana-testnode > transactions1.log ``` Lastly, run the client demo again, and verify that all funds were spent in the previous round, and so no additional transactions are added. ```bash - $ cat mint.json | cargo run --release --bin solana-client-demo + $ cat mint-demo.json | cargo run --release --bin solana-client-demo ``` Stop the server again, and verify there are only Tick entries, and no Transaction entries.