From 396f48b0a5a32030b3ade25b4c9729b7778e8d66 Mon Sep 17 00:00:00 2001 From: Benjamin Loison <12752145+Benjamin-Loison@users.noreply.github.com> Date: Mon, 23 Sep 2024 13:05:05 +0200 Subject: [PATCH] Add shell syntax highlighting to `README.md` --- README.md | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/README.md b/README.md index e5f6cdf..7f15d92 100644 --- a/README.md +++ b/README.md @@ -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 @@ -50,7 +50,7 @@ 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 ``` @@ -58,20 +58,20 @@ 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 ``` @@ -81,6 +81,6 @@ example configuration for nginx is provided under `contrib/nginx`. ## Unit tests -``` +```shell python3 -m unittest discover -v ```