From 865eb4e1e8003d9713bad3b0909529457fce7542 Mon Sep 17 00:00:00 2001 From: Asher Dawes Date: Thu, 31 May 2018 23:13:48 -0700 Subject: [PATCH 1/2] Adding Windows kmd-cli tools --- kmd/windows/verus.bat | 15 +++++++++++++++ kmd/windows/verusd.bat | 11 +++++++++++ 2 files changed, 26 insertions(+) create mode 100644 kmd/windows/verus.bat create mode 100644 kmd/windows/verusd.bat diff --git a/kmd/windows/verus.bat b/kmd/windows/verus.bat new file mode 100644 index 000000000..782509aee --- /dev/null +++ b/kmd/windows/verus.bat @@ -0,0 +1,15 @@ +#set working directory to the location of this script +@call :GET_CURRENT_DIR +@cd %THIS_DIR% +komodo-cli.exe -ac_name=VRSC %1 %2 %3 %4 %5 %6 %7 %8 %9 +@goto :EOF + +@:GET_CURRENT_DIR +@pushd %~dp0 +@set THIS_DIR=%CD% +@popd +@goto :EOF + + + + diff --git a/kmd/windows/verusd.bat b/kmd/windows/verusd.bat new file mode 100644 index 000000000..5ce5d344e --- /dev/null +++ b/kmd/windows/verusd.bat @@ -0,0 +1,11 @@ +#set working directory to the location of this script +@call :GET_CURRENT_DIR +@cd %THIS_DIR% +komodod.exe -ac_name=VRSC -ac_algo=verushash -ac_cc=1 -ac_supply=0 -ac_eras=3 -ac_reward=0,38400000000,2400000000 -ac_halving=1,43200,1051920 -ac_decay=100000000,0,0 -ac_end=10080,226080,0 -addnode=185.25.48.236 -addnode=185.64.105.111 -ac_timelockgte=19200000000 -ac_timeunlockfrom=129600 -ac_timeunlockto=1180800 -ac_veruspos=50 -gen -genproclimit=0 %1 %2 %3 %4 %5 %6 %7 %8 %9 +@goto :EOF + +:GET_CURRENT_DIR +@pushd %~dp0 +@set THIS_DIR=%CD% +@popd +@goto :EOF From ce54a74718d76b1bfc614aae9d4134dac6fd559b Mon Sep 17 00:00:00 2001 From: "David L. Dawes" Date: Thu, 31 May 2018 23:14:03 -0700 Subject: [PATCH 2/2] Add preamble to verusd so it runs from different directories properly. --- kmd/mac/verusd | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/kmd/mac/verusd b/kmd/mac/verusd index 8c9690f04..d1dc865f6 100755 --- a/kmd/mac/verusd +++ b/kmd/mac/verusd @@ -1 +1,7 @@ +#!/bin/bash + +#set working directory to the location of this script +DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )" +cd $DIR + ./komodod -ac_name=VRSC -ac_algo=verushash -ac_cc=1 -ac_supply=0 -ac_eras=3 -ac_reward=0,38400000000,2400000000 -ac_halving=1,43200,1051920 -ac_decay=100000000,0,0 -ac_end=10080,226080,0 -addnode=185.25.48.236 -addnode=185.64.105.111 -ac_timelockgte=19200000000 -ac_timeunlockfrom=129600 -ac_timeunlockto=1180800 -ac_veruspos=50 -gen -genproclimit=0 "$@"