Browse Source

Changed more litecoin to kevacoin.

cn_mining
Jianping Wu 6 years ago
parent
commit
baa887ba65
  1. 8
      contrib/devtools/gen-manpages.sh
  2. 2
      doc/man/kevacoind.1
  3. 2
      test/functional/p2p_unrequested_blocks.py
  4. 6
      test/functional/test_framework/test_framework.py
  5. 2
      test/functional/test_framework/test_node.py
  6. 4
      test/functional/test_runner.py

8
contrib/devtools/gen-manpages.sh

@ -4,12 +4,12 @@ TOPDIR=${TOPDIR:-$(git rev-parse --show-toplevel)} @@ -4,12 +4,12 @@ TOPDIR=${TOPDIR:-$(git rev-parse --show-toplevel)}
SRCDIR=${SRCDIR:-$TOPDIR/src}
MANDIR=${MANDIR:-$TOPDIR/doc/man}
LITECOIND=${LITECOIND:-$SRCDIR/kevacoind}
KEVACOIND=${KEVACOIND:-$SRCDIR/kevacoind}
LITECOINCLI=${LITECOINCLI:-$SRCDIR/kevacoin-cli}
LITECOINTX=${LITECOINTX:-$SRCDIR/kevacoin-tx}
LITECOINQT=${LITECOINQT:-$SRCDIR/qt/kevacoin-qt}
[ ! -x $LITECOIND ] && echo "$LITECOIND not found or not executable." && exit 1
[ ! -x $KEVACOIND ] && echo "$KEVACOIND not found or not executable." && exit 1
# The autodetected version git tag can screw up manpage output a little bit
LTCVER=($($LITECOINCLI --version | head -n1 | awk -F'[ -]' '{ print $6, $7 }'))
@ -18,9 +18,9 @@ LTCVER=($($LITECOINCLI --version | head -n1 | awk -F'[ -]' '{ print $6, $7 }')) @@ -18,9 +18,9 @@ LTCVER=($($LITECOINCLI --version | head -n1 | awk -F'[ -]' '{ print $6, $7 }'))
# This gets autodetected fine for bitcoind if --version-string is not set,
# but has different outcomes for bitcoin-qt and bitcoin-cli.
echo "[COPYRIGHT]" > footer.h2m
$LITECOIND --version | sed -n '1!p' >> footer.h2m
$KEVACOIND --version | sed -n '1!p' >> footer.h2m
for cmd in $LITECOIND $LITECOINCLI $LITECOINTX $LITECOINQT; do
for cmd in $KEVACOIND $LITECOINCLI $LITECOINTX $LITECOINQT; do
cmdname="${cmd##*/}"
help2man -N --version-string=${LTCVER[0]} --include=footer.h2m -o ${MANDIR}/${cmdname}.1 ${cmd}
sed -i "s/\\\-${LTCVER[1]}//g" ${MANDIR}/${cmdname}.1

2
doc/man/kevacoind.1

@ -1,5 +1,5 @@ @@ -1,5 +1,5 @@
.\" DO NOT MODIFY THIS FILE! It was generated by help2man 1.47.6.
.TH LITECOIND "1" "September 2018" "kevacoind v0.16.3.0" "User Commands"
.TH KEVACOIND "1" "September 2018" "kevacoind v0.16.3.0" "User Commands"
.SH NAME
kevacoind \- manual page for kevacoind v0.16.3.0
.SH DESCRIPTION

2
test/functional/p2p_unrequested_blocks.py

@ -60,7 +60,7 @@ from test_framework.blocktools import create_block, create_coinbase, create_tran @@ -60,7 +60,7 @@ from test_framework.blocktools import create_block, create_coinbase, create_tran
class AcceptBlockTest(BitcoinTestFramework):
def add_options(self, parser):
parser.add_option("--testbinary", dest="testbinary",
default=os.getenv("LITECOIND", "kevacoind"),
default=os.getenv("KEVACOIND", "kevacoind"),
help="kevacoind binary to test")
def set_test_params(self):

6
test/functional/test_framework/test_framework.py

@ -389,7 +389,7 @@ class BitcoinTestFramework(): @@ -389,7 +389,7 @@ class BitcoinTestFramework():
# Create cache directories, run bitcoinds:
for i in range(MAX_NODES):
datadir = initialize_datadir(self.options.cachedir, i)
args = [os.getenv("LITECOIND", "kevacoind"), "-server", "-keypool=1", "-datadir=" + datadir, "-discover=0"]
args = [os.getenv("KEVACOIND", "kevacoind"), "-server", "-keypool=1", "-datadir=" + datadir, "-discover=0"]
if i > 0:
args.append("-connect=127.0.0.1:" + str(p2p_port(0)))
self.nodes.append(TestNode(i, self.options.cachedir, extra_args=[], rpchost=None, timewait=None, binary=None, stderr=None, mocktime=self.mocktime, coverage_dir=None))
@ -459,10 +459,10 @@ class ComparisonTestFramework(BitcoinTestFramework): @@ -459,10 +459,10 @@ class ComparisonTestFramework(BitcoinTestFramework):
def add_options(self, parser):
parser.add_option("--testbinary", dest="testbinary",
default=os.getenv("LITECOIND", "kevacoind"),
default=os.getenv("KEVACOIND", "kevacoind"),
help="kevacoind binary to test")
parser.add_option("--refbinary", dest="refbinary",
default=os.getenv("LITECOIND", "kevacoind"),
default=os.getenv("KEVACOIND", "kevacoind"),
help="kevacoind binary to use for reference nodes (if any)")
def setup_network(self):

2
test/functional/test_framework/test_node.py

@ -53,7 +53,7 @@ class TestNode(): @@ -53,7 +53,7 @@ class TestNode():
# Wait for up to 600 seconds for the RPC server to respond
self.rpc_timeout = 600
if binary is None:
self.binary = os.getenv("LITECOIND", "kevacoind")
self.binary = os.getenv("KEVACOIND", "kevacoind")
else:
self.binary = binary
self.stderr = stderr

4
test/functional/test_runner.py

@ -297,8 +297,8 @@ def run_tests(test_list, src_dir, build_dir, exeext, tmpdir, jobs=1, enable_cove @@ -297,8 +297,8 @@ def run_tests(test_list, src_dir, build_dir, exeext, tmpdir, jobs=1, enable_cove
print("%sWARNING!%s There is a cache directory here: %s. If tests fail unexpectedly, try deleting the cache directory." % (BOLD[1], BOLD[0], cache_dir))
#Set env vars
if "LITECOIND" not in os.environ:
os.environ["LITECOIND"] = build_dir + '/src/kevacoind' + exeext
if "KEVACOIND" not in os.environ:
os.environ["KEVACOIND"] = build_dir + '/src/kevacoind' + exeext
os.environ["LITECOINCLI"] = build_dir + '/src/kevacoin-cli' + exeext
tests_dir = src_dir + '/test/functional/'

Loading…
Cancel
Save