Skip to content

Commit

Permalink
Add shell syntax highlighting to README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
Benjamin-Loison committed Sep 23, 2024
1 parent e4cba4e commit 3053e44
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,12 +18,12 @@ timestamping functionality assumes that it has exclusive use of the wallet.

Install the requirements:

```
```shell
pip3 install -r requirements.txt
```

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

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

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

```
```shell
ots -l http://127.0.0.1:14788 upgrade FILE.ots
```

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

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

```
```shell
bitcoin-cli -generate 10
```

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

## Unit tests

```
```shell
python3 -m unittest discover -v
```

0 comments on commit 3053e44

Please sign in to comment.