Skip to content

Commit 3053e44

Browse files
Add shell syntax highlighting to README.md
1 parent e4cba4e commit 3053e44

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

README.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -18,12 +18,12 @@ timestamping functionality assumes that it has exclusive use of the wallet.
1818

1919
Install the requirements:
2020

21-
```
21+
```shell
2222
pip3 install -r requirements.txt
2323
```
2424

2525
Create the calendar:
26-
```
26+
```shell
2727
mkdir -p ~/.otsd/calendar/
2828
echo "http://127.0.0.1:14788" > ~/.otsd/calendar/uri
2929
echo "bitcoin donation address" > ~/.otsd/calendar/donation_addr
@@ -50,28 +50,28 @@ protocol does *not* distinguish between mainnet, testnet, and regtest, so make
5050
sure you don't mix them up!
5151

5252
To use your calendar server, tell your OpenTimestamps client to connect to it:
53-
```
53+
```shell
5454
ots stamp -c http://127.0.0.1:14788 -m 1 FILE
5555
```
5656

5757
OpenTimestamps clients have a whitelist of calendars they'll connect to
5858
automatically; you'll need to manually add your new server to that whitelist to
5959
use it when upgrading or verifying:
6060

61-
```
61+
```shell
6262
ots -l http://127.0.0.1:14788 upgrade FILE.ots
6363
```
6464

6565
If your server is running on testnet or regtest, make sure to tell your client
6666
what chain to use when verifying. For example, regtest:
67-
```
67+
```shell
6868
ots --btc-regtest -l http://127.0.0.1:14788 upgrade FILE.ots
6969
```
7070

7171
Tip: with regtest you can mine blocks on demand to make your timestamp confirm
7272
with the `generate` RPC command. For example, to mine ten blocks instantly:
7373

74-
```
74+
```shell
7575
bitcoin-cli -generate 10
7676
```
7777

@@ -81,6 +81,6 @@ example configuration for nginx is provided under `contrib/nginx`.
8181

8282
## Unit tests
8383

84-
```
84+
```shell
8585
python3 -m unittest discover -v
8686
```

0 commit comments

Comments
 (0)