From 6772d9f516f46ce0d76f41a031403380ae84381c Mon Sep 17 00:00:00 2001 From: Riccardo Casatta Date: Mon, 21 Aug 2017 18:56:26 +0200 Subject: [PATCH] various typos in docs (#95) * various typos in docs * fix a number in comments --- core/src/core/pmmr.rs | 2 +- doc/build.md | 6 +++--- doc/chainsync.md | 2 +- doc/intro.md | 2 +- doc/merkle.md | 2 +- 5 files changed, 7 insertions(+), 7 deletions(-) diff --git a/core/src/core/pmmr.rs b/core/src/core/pmmr.rs index c2398e48d..275390834 100644 --- a/core/src/core/pmmr.rs +++ b/core/src/core/pmmr.rs @@ -380,7 +380,7 @@ fn peaks(num: u64) -> Vec { /// To get the height of any node (say 1101), we need to travel left in the /// tree, get the leftmost node and count the ones. To travel left, we just /// need to subtract the position by it's most significant bit, mins one. For -/// example to get from 1101 to 110 we subtract it by (1000-1) (`13-(8-1)=5`). +/// example to get from 1101 to 110 we subtract it by (1000-1) (`13-(8-1)=6`). /// Then to to get 110 to 11, we subtract it by (100-1) ('6-(4-1)=3`). /// /// By applying this operation recursively, until we get a number that, in diff --git a/doc/build.md b/doc/build.md index dad62ca27..41ad78ec9 100644 --- a/doc/build.md +++ b/doc/build.md @@ -46,11 +46,11 @@ For the sake of example, we're going to run three nodes with varying setups. Cre As before, node 1 will create the blockchain and begin mining. As we'll be running many servers from the same machine, we'll configure specific ports for other servers to explicitly connect to. -First, we run a wallet server to recieve rewards on port 15000 (we'll log in debug mode for more information about what's happening) +First, we run a wallet server to receive rewards on port 15000 (we'll log in debug mode for more information about what's happening) node1$ RUST_LOG=grin=debug grin wallet -p "password" -r 15000 receive -Then we start node 1 mining with its P2P server bound to port 10000 and its api server at 10001. We also provide our wallet address where we'll recieve mining rewards. In another terminal: +Then we start node 1 mining with its P2P server bound to port 10000 and its api server at 10001. We also provide our wallet address where we'll receive mining rewards. In another terminal: node1$ RUST_LOG=grin=debug grin server -m -p 10000 -a 10001 -w "http://127.0.0.1:15000" run @@ -79,7 +79,7 @@ who will add a blinding factor before posting it to the blockchain. The above co ### Node 1 - Send money to node 3 -With all of your severs happily running and your terminals scrolling away, let's spend some of the coins mined in node 1 by sending them to node 3's listening wallet. +With all of your servers happily running and your terminals scrolling away, let's spend some of the coins mined in node 1 by sending them to node 3's listening wallet. In yet another terminal in node 1's directory, create a new partial transaction spending 20000 coins and send them on to node 3's wallet listener. We'll also specify that we'll use node 2's API listener to validate our transaction inputs before sending: diff --git a/doc/chainsync.md b/doc/chainsync.md index f7246c5b8..ec5839932 100644 --- a/doc/chainsync.md +++ b/doc/chainsync.md @@ -63,7 +63,7 @@ With this information it can verify: * the total difficulty on that chain (present in all block headers) * the sum of all UTXO commitments equals the expected money supply -* the root hash of all UTXOs match the rooth hash in the block header +* the root hash of all UTXOs match the root hash in the block header Once the validation done, the peer can download and validate the blocks content from the horizon up to the head. diff --git a/doc/intro.md b/doc/intro.md index 1e20d4137..7b23b35d0 100644 --- a/doc/intro.md +++ b/doc/intro.md @@ -19,7 +19,7 @@ The main goal and characteristics of the Grin project are: * Strong and proven cryptography. MimbleWimble only relies on Elliptic Curve Cryptography which has been tried and tested for decades. * Design simplicity that makes it easy to audit and maintain over time. -* Community driven, using an asic-resistent mining algorithm (Cuckoo Cycle) +* Community driven, using an asic-resistant mining algorithm (Cuckoo Cycle) encouraging mining decentralization. # Tongue Tying for Everyone diff --git a/doc/merkle.md b/doc/merkle.md index 7d9b52845..09f57c21b 100644 --- a/doc/merkle.md +++ b/doc/merkle.md @@ -233,7 +233,7 @@ easily, in the background, apply it as a whole on affected chunks. Note that our sum MMR never actually fully deletes a key (i.e. output commitment) as subsequent leaf nodes aren't shifted and parents don't need -rebalancing. Deleting a node just makes its storage in the tree unecessary, +rebalancing. Deleting a node just makes its storage in the tree unnecessary, allowing for potential additional pruning of parent nodes. ### Key to Tree Insertion Position Index