From e0c841729774102aab4121dc81ab7ee66f97d5f2 Mon Sep 17 00:00:00 2001 From: Greg Fitzgerald Date: Mon, 19 Mar 2018 10:23:43 -0600 Subject: [PATCH] Apply renames to docs --- README.md | 16 ++++++++-------- doc/historian.md | 6 +++--- 2 files changed, 11 insertions(+), 11 deletions(-) diff --git a/README.md b/README.md index 1e2645145..cde984d1e 100644 --- a/README.md +++ b/README.md @@ -37,9 +37,9 @@ Install the silk executables: $ cargo install silk ``` -The testnode server is initialized with a transaction log from stdin and -generates new log entries on stdout. To create the input log, we'll need -to create *the mint* and use it to generate a *genesis log*. It's done in +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. @@ -55,23 +55,23 @@ 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 log. +the JSON configuration file here, not the genesis ledger. ```bash $ cat mint.json | silk-client-demo ``` -Now kill the server with Ctrl-C, and take a look at the transaction log. You should +Now kill the server with Ctrl-C, and take a look at the ledger. You should see something similar to: ```json {"num_hashes":27,"id":[0, "..."],"event":"Tick"} -{"num_hashes":3,"id":[67, "..."],"event":{"Transaction":{"asset":42}}} +{"num_hashes":3,"id":[67, "..."],"event":{"Transaction":{"tokens":42}}} {"num_hashes":27,"id":[0, "..."],"event":"Tick"} ``` -Now restart the server from where we left off. Pass it both the genesis log, and -the transaction log. +Now restart the server from where we left off. Pass it both the genesis ledger, and +the transaction ledger. ```bash $ cat genesis.log transactions0.log | silk-testnode > transactions1.log diff --git a/doc/historian.md b/doc/historian.md index 468b912a2..b6dafedb4 100644 --- a/doc/historian.md +++ b/doc/historian.md @@ -19,9 +19,9 @@ use std::sync::mpsc::SendError; fn create_ledger(hist: &Historian) -> Result<(), SendError>> { sleep(Duration::from_millis(15)); - let asset = Hash::default(); + let tokens = 42; let keypair = generate_keypair(); - let event0 = Event::new_claim(get_pubkey(&keypair), asset, sign_claim_data(&asset, &keypair)); + let event0 = Event::new_claim(get_pubkey(&keypair), tokens, sign_claim_data(&tokens, &keypair)); hist.sender.send(event0)?; sleep(Duration::from_millis(10)); Ok(()) @@ -46,7 +46,7 @@ Running the program should produce a ledger similar to: ```rust Entry { num_hashes: 0, id: [0, ...], event: Tick } -Entry { num_hashes: 3, id: [67, ...], event: Transaction { asset: [37, ...] } } +Entry { num_hashes: 3, id: [67, ...], event: Transaction { tokens: 42 } } Entry { num_hashes: 3, id: [123, ...], event: Tick } ```