mirror of
https://github.com/aljazceru/cyphernode.git
synced 2026-01-31 10:14:35 +01:00
Correctly added testnet OTS server to whitelist and using a fixed fork of javascript-opentimestamps
This commit is contained in:
@@ -4,7 +4,7 @@ RUN apk add --update --no-cache \
|
||||
git \
|
||||
jq \
|
||||
su-exec \
|
||||
&& git clone --branch bitcoinconf_props https://github.com/Kexkey/javascript-opentimestamps.git \
|
||||
&& git clone --branch parsecommon https://github.com/Kexkey/javascript-opentimestamps.git \
|
||||
&& cd javascript-opentimestamps \
|
||||
&& npm install -g
|
||||
|
||||
|
||||
@@ -60,8 +60,8 @@ upgrade() {
|
||||
local returncode
|
||||
|
||||
if [ "${TESTNET}" -eq "1" ]; then
|
||||
trace "[upgrade] ots-cli.js -l \"https://testnet.calendar.kexkey.com/\" upgrade -c \"https://testnet.calendar.kexkey.com/\" ${hash}.ots"
|
||||
result=$(cd /otsfiles && ots-cli.js -l "https://testnet.calendar.kexkey.com/" upgrade -c "https://testnet.calendar.kexkey.com/" ${hash}.ots 2>&1)
|
||||
trace "[upgrade] ots-cli.js -l \"https://testnet.calendar.kexkey.com/\" --no-default-whitelist upgrade -c \"https://testnet.calendar.kexkey.com/\" ${hash}.ots"
|
||||
result=$(cd /otsfiles && ots-cli.js -l "https://testnet.calendar.kexkey.com/" --no-default-whitelist upgrade -c "https://testnet.calendar.kexkey.com/" ${hash}.ots 2>&1)
|
||||
returncode=$?
|
||||
else
|
||||
trace "[upgrade] ots-cli.js upgrade ${hash}.ots"
|
||||
@@ -113,8 +113,8 @@ verify() {
|
||||
echo "${base64otsfile}" | base64 -d > /otsfiles/otsfile-$$.ots
|
||||
|
||||
if [ "${TESTNET}" -eq "1" ]; then
|
||||
trace "[verify] ots-cli.js -l \"https://testnet.calendar.kexkey.com/\" verify -d ${hash} /otsfiles/otsfile-$$.ots"
|
||||
result=$(ots-cli.js -l "https://testnet.calendar.kexkey.com/" verify -d ${hash} /otsfiles/otsfile-$$.ots 2>&1)
|
||||
trace "[verify] ots-cli.js -l \"https://testnet.calendar.kexkey.com/\" --no-default-whitelist verify -d ${hash} /otsfiles/otsfile-$$.ots"
|
||||
result=$(ots-cli.js -l "https://testnet.calendar.kexkey.com/" --no-default-whitelist verify -d ${hash} /otsfiles/otsfile-$$.ots 2>&1)
|
||||
returncode=$?
|
||||
else
|
||||
trace "[verify] ots-cli.js verify -d ${hash} /otsfiles/otsfile-$$.ots"
|
||||
|
||||
Reference in New Issue
Block a user