Skip to content

Commit 60ca30c

Browse files
committed
Merge opentimestamps#34: Default min interval and systemd init script
6b188e3 adding systemd script to manage otsd (Riccardo Casatta) 12bf477 change default value for --btc-min-tx-interval from 10 minutes to 1 hour (Riccardo Casatta) Pull request description: Tree-SHA512: e05dffa0b02eed079da0a77cc98748e1d4f03fa113befe28bb4216cf34e4ab03d25f9b4708ae3187a5f29a7e3418b5f3f3c82c7fbb73de41e7ddf7af02830290
2 parents cb25ede + 6b188e3 commit 60ca30c

File tree

3 files changed

+21
-1
lines changed

3 files changed

+21
-1
lines changed

contrib/systemd/bitcoind-ready.sh

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
#/bin/bash
2+
until /usr/local/bin/bitcoin-cli getblockchaininfo
3+
do
4+
/bin/sleep 3
5+
done

contrib/systemd/otsd.service

+15
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
[Unit]
2+
Description=OpenTimestamps server
3+
After=bitcoind.service
4+
5+
[Service]
6+
User=ots
7+
Group=ots
8+
ExecStartPre=/bin/bash /usr/local/bin/bitcoind-ready.sh
9+
ExecStart=/home/ots/opentimestamps-server/otsd -v
10+
Restart=on-failure
11+
12+
KillSignal=SIGINT
13+
14+
[Install]
15+
WantedBy=multi-user.target

otsd

+1-1
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ parser.add_argument("--btc-min-confirmations", metavar='N', type=int,
6363
default=6,
6464
help="Confirmations required before we save a Bitcoin timestamp permanently, must be greater than 1 (default: %(default)d)")
6565
parser.add_argument("--btc-min-tx-interval", metavar='SECONDS', type=int,
66-
default=600,
66+
default=3600,
6767
help="Minimum interval between timestamp transactions (default: %(default)d seconds)")
6868
parser.add_argument("--btc-max-fee", metavar='FEE', type=float,
6969
default=0.001,

0 commit comments

Comments
 (0)