lint: add markdown linter (#5254)

This commit is contained in:
Marko
2020-08-17 16:40:50 +02:00
committed by GitHub
parent 022b255ed6
commit 42e4e8b58e
52 changed files with 515 additions and 415 deletions

View File

@@ -32,7 +32,7 @@ echo export GO111MODULE=on >> ~/.bash_profile
Then run
```
```sh
go get github.com/tendermint/tendermint
cd $GOPATH/src/github.com/tendermint/tendermint
make tools
@@ -55,7 +55,7 @@ full transaction bytes are stored as the key and the value.
Let's start a kvstore application.
```
```sh
abci-cli kvstore
```
@@ -64,7 +64,7 @@ Tendermint binary installed. If not, follow the steps from
[here](../introduction/install.md). If you have never run Tendermint
before, use:
```
```sh
tendermint init
tendermint node
```
@@ -77,7 +77,7 @@ details, see [the guide on using Tendermint](../tendermint-core/using-tendermint
You should see Tendermint making blocks! We can get the status of our
Tendermint node as follows:
```
```sh
curl -s localhost:26657/status
```
@@ -86,7 +86,7 @@ tool like [jq](https://stedolan.github.io/jq/) or `json_pp`.
Now let's send some transactions to the kvstore.
```
```sh
curl -s 'localhost:26657/broadcast_tx_commit?tx="abcd"'
```
@@ -96,7 +96,7 @@ transaction with bytes `abcd`, so `abcd` will be stored as both the key
and the value in the Merkle tree. The response should look something
like:
```
```json
{
"jsonrpc": "2.0",
"id": "",
@@ -123,13 +123,13 @@ like:
We can confirm that our transaction worked and the value got stored by
querying the app:
```
```sh
curl -s 'localhost:26657/abci_query?data="abcd"'
```
The result should look like:
```
```json
{
"jsonrpc": "2.0",
"id": "",
@@ -153,14 +153,14 @@ human-readable](https://github.com/tendermint/tendermint/issues/1794).
Now let's try setting a different key and value:
```
```sh
curl -s 'localhost:26657/broadcast_tx_commit?tx="name=satoshi"'
```
Now if we query for `name`, we should get `satoshi`, or `c2F0b3NoaQ==`
in base64:
```
```sh
curl -s 'localhost:26657/abci_query?data="name"'
```
@@ -196,13 +196,13 @@ Let's kill the previous instance of `tendermint` and the `kvstore`
application, and start the counter app. We can enable `serial=on` with a
flag:
```
```sh
abci-cli counter --serial
```
In another window, reset then start Tendermint:
```
```sh
tendermint unsafe_reset_all
tendermint node
```
@@ -211,14 +211,14 @@ Once again, you can see the blocks streaming by. Let's send some
transactions. Since we have set `serial=on`, the first transaction must
be the number `0`:
```
```sh
curl localhost:26657/broadcast_tx_commit?tx=0x00
```
Note the empty (hence successful) response. The next transaction must be
the number `1`. If instead, we try to send a `5`, we get an error:
```
```json
> curl localhost:26657/broadcast_tx_commit?tx=0x05
{
"jsonrpc": "2.0",
@@ -237,7 +237,7 @@ the number `1`. If instead, we try to send a `5`, we get an error:
But if we send a `1`, it works again:
```
```json
> curl localhost:26657/broadcast_tx_commit?tx=0x01
{
"jsonrpc": "2.0",
@@ -263,7 +263,7 @@ to [install node](https://nodejs.org/en/download/).
You'll also need to fetch the relevant repository, from
[here](https://github.com/tendermint/js-abci), then install it:
```
```sh
git clone https://github.com/tendermint/js-abci.git
cd js-abci
npm install abci
@@ -271,13 +271,13 @@ npm install abci
Kill the previous `counter` and `tendermint` processes. Now run the app:
```
```sh
node example/counter.js
```
In another window, reset and start `tendermint`:
```
```sh
tendermint unsafe_reset_all
tendermint node
```
@@ -286,7 +286,7 @@ Once again, you should see blocks streaming by - but now, our
application is written in Javascript! Try sending some transactions, and
like before - the results should be the same:
```
```sh
# ok
curl localhost:26657/broadcast_tx_commit?tx=0x00
# invalid nonce