aboutsummaryrefslogtreecommitdiff
path: root/qa
diff options
context:
space:
mode:
authorTomo Ueda <[email protected]>2021-09-02 12:22:51 -0700
committerTomo Ueda <[email protected]>2021-09-02 12:22:51 -0700
commit5dc1b84ed324b677ecb13d71fd38bcece1b54383 (patch)
tree085f913c1181febcf2dc42cd11e086fd89f74d4c /qa
parentMerge pull request #2469 from patricklodder/1.14.4-fixate (diff)
downloaddiscoin-5dc1b84ed324b677ecb13d71fd38bcece1b54383.tar.xz
discoin-5dc1b84ed324b677ecb13d71fd38bcece1b54383.zip
s/doge/dis/g
Diffstat (limited to 'qa')
-rw-r--r--qa/README.md4
-rwxr-xr-xqa/rpc-tests/fundrawtransaction.py2
-rwxr-xr-xqa/rpc-tests/maxblocksinflight.py2
-rwxr-xr-xqa/rpc-tests/multi_rpc.py2
-rwxr-xr-xqa/rpc-tests/p2p-acceptblock.py4
-rwxr-xr-xqa/rpc-tests/test_framework/mininode.py2
-rwxr-xr-xqa/rpc-tests/test_framework/test_framework.py16
-rw-r--r--qa/rpc-tests/test_framework/util.py10
-rwxr-xr-xqa/rpc-tests/wallet.py2
9 files changed, 22 insertions, 22 deletions
diff --git a/qa/README.md b/qa/README.md
index d0d54a0c4..59d1be626 100644
--- a/qa/README.md
+++ b/qa/README.md
@@ -1,7 +1,7 @@
The [pull-tester](/qa/pull-tester/) folder contains a script to call
multiple tests from the [rpc-tests](/qa/rpc-tests/) folder.
-Every pull request to the dogecoin repository is built and run through
+Every pull request to the discoin repository is built and run through
the regression test suite. You can also run all or only individual
tests locally.
@@ -80,7 +80,7 @@ to recover with:
```bash
rm -rf cache
-killall dogecoind
+killall discoind
```
Writing tests
diff --git a/qa/rpc-tests/fundrawtransaction.py b/qa/rpc-tests/fundrawtransaction.py
index 7274e9c41..73ad0f2c1 100755
--- a/qa/rpc-tests/fundrawtransaction.py
+++ b/qa/rpc-tests/fundrawtransaction.py
@@ -193,7 +193,7 @@ class RawTransactionsTest(BitcoinTestFramework):
dec_tx = self.nodes[2].decoderawtransaction(rawtx)
assert_equal(utx['txid'], dec_tx['vin'][0]['txid'])
- assert_raises_jsonrpc(-5, "changeAddress must be a valid dogecoin address", self.nodes[2].fundrawtransaction, rawtx, {'changeAddress':'foobar'})
+ assert_raises_jsonrpc(-5, "changeAddress must be a valid discoin address", self.nodes[2].fundrawtransaction, rawtx, {'changeAddress':'foobar'})
############################################################
# test a fundrawtransaction with a provided change address #
diff --git a/qa/rpc-tests/maxblocksinflight.py b/qa/rpc-tests/maxblocksinflight.py
index ff6fbeee4..7bf7ed516 100755
--- a/qa/rpc-tests/maxblocksinflight.py
+++ b/qa/rpc-tests/maxblocksinflight.py
@@ -73,7 +73,7 @@ class TestManager(NodeConnCB):
class MaxBlocksInFlightTest(BitcoinTestFramework):
def add_options(self, parser):
parser.add_option("--testbinary", dest="testbinary",
- default=os.getenv("DOGECOIND", "dogecoind"),
+ default=os.getenv("DOGECOIND", "discoind"),
help="Binary to test max block requests behavior")
def __init__(self):
diff --git a/qa/rpc-tests/multi_rpc.py b/qa/rpc-tests/multi_rpc.py
index 2facf6c9c..d666caf24 100755
--- a/qa/rpc-tests/multi_rpc.py
+++ b/qa/rpc-tests/multi_rpc.py
@@ -26,7 +26,7 @@ class HTTPBasicsTest (BitcoinTestFramework):
#Append rpcauth to bitcoin.conf before initialization
rpcauth = "rpcauth=rt:93648e835a54c573682c2eb19f882535$7681e9c5b74bdd85e78166031d2058e1069b3ed7ed967c93fc63abba06f31144"
rpcauth2 = "rpcauth=rt2:f8607b1a88861fac29dfccf9b52ff9f$ff36a0c23c8c62b4846112e50fa888416e94c17bfd4c42f88fd8f55ec6a3137e"
- with open(os.path.join(self.options.tmpdir+"/node0", "dogecoin.conf"), 'a', encoding='utf8') as f:
+ with open(os.path.join(self.options.tmpdir+"/node0", "discoin.conf"), 'a', encoding='utf8') as f:
f.write(rpcauth+"\n")
f.write(rpcauth2+"\n")
diff --git a/qa/rpc-tests/p2p-acceptblock.py b/qa/rpc-tests/p2p-acceptblock.py
index d06bcf5a3..c77fa522c 100755
--- a/qa/rpc-tests/p2p-acceptblock.py
+++ b/qa/rpc-tests/p2p-acceptblock.py
@@ -128,8 +128,8 @@ class TestNode(NodeConnCB):
class AcceptBlockTest(BitcoinTestFramework):
def add_options(self, parser):
parser.add_option("--testbinary", dest="testbinary",
- default=os.getenv("DOGECOIND", "dogecoind"),
- help="dogecoind binary to test")
+ default=os.getenv("DOGECOIND", "discoind"),
+ help="discoind binary to test")
def __init__(self):
super().__init__()
diff --git a/qa/rpc-tests/test_framework/mininode.py b/qa/rpc-tests/test_framework/mininode.py
index 964e98a1c..59a6fb41b 100755
--- a/qa/rpc-tests/test_framework/mininode.py
+++ b/qa/rpc-tests/test_framework/mininode.py
@@ -47,7 +47,7 @@ MY_RELAY = 1 # from version 70001 onwards, fRelay should be appended to version
MAX_INV_SZ = 50000
MAX_BLOCK_BASE_SIZE = 1000000
-COIN = 100000000 # mlumin 5/2021: In terms of Dogecoin, 1 dogecoin or 100,000,000 koinu.
+COIN = 100000000 # mlumin 5/2021: In terms of Dogecoin, 1 discoin or 100,000,000 koinu.
NODE_NETWORK = (1 << 0)
NODE_GETUTXO = (1 << 1)
diff --git a/qa/rpc-tests/test_framework/test_framework.py b/qa/rpc-tests/test_framework/test_framework.py
index 7dd368130..1487b849e 100755
--- a/qa/rpc-tests/test_framework/test_framework.py
+++ b/qa/rpc-tests/test_framework/test_framework.py
@@ -104,11 +104,11 @@ class BitcoinTestFramework(object):
parser = optparse.OptionParser(usage="%prog [options]")
parser.add_option("--nocleanup", dest="nocleanup", default=False, action="store_true",
- help="Leave dogecoinds and test.* datadir on exit or error")
+ help="Leave discoinds and test.* datadir on exit or error")
parser.add_option("--noshutdown", dest="noshutdown", default=False, action="store_true",
- help="Don't stop dogecoinds after the test execution")
+ help="Don't stop discoinds after the test execution")
parser.add_option("--srcdir", dest="srcdir", default=os.path.normpath(os.path.dirname(os.path.realpath(__file__))+"/../../../src"),
- help="Source directory containing dogecoind/bitcoin-cli (default: %default)")
+ help="Source directory containing discoind/bitcoin-cli (default: %default)")
parser.add_option("--cachedir", dest="cachedir", default=os.path.normpath(os.path.dirname(os.path.realpath(__file__))+"/../../cache"),
help="Directory for caching pregenerated datadirs")
parser.add_option("--tmpdir", dest="tmpdir", default=tempfile.mkdtemp(prefix="test"),
@@ -163,7 +163,7 @@ class BitcoinTestFramework(object):
print("Stopping nodes")
stop_nodes(self.nodes)
else:
- print("Note: dogecoinds were not stopped and may still be running")
+ print("Note: discoinds were not stopped and may still be running")
if not self.options.nocleanup and not self.options.noshutdown and success:
print("Cleaning up")
@@ -205,11 +205,11 @@ class ComparisonTestFramework(BitcoinTestFramework):
def add_options(self, parser):
parser.add_option("--testbinary", dest="testbinary",
- default=os.getenv("DOGECOIND", "dogecoind"),
- help="dogecoind binary to test")
+ default=os.getenv("DOGECOIND", "discoind"),
+ help="discoind binary to test")
parser.add_option("--refbinary", dest="refbinary",
- default=os.getenv("DOGECOIND", "dogecoind"),
- help="dogecoind binary to use for reference nodes (if any)")
+ default=os.getenv("DOGECOIND", "discoind"),
+ help="discoind binary to use for reference nodes (if any)")
def setup_network(self):
self.nodes = start_nodes(
diff --git a/qa/rpc-tests/test_framework/util.py b/qa/rpc-tests/test_framework/util.py
index a9723df07..078aacca1 100644
--- a/qa/rpc-tests/test_framework/util.py
+++ b/qa/rpc-tests/test_framework/util.py
@@ -183,7 +183,7 @@ def initialize_datadir(dirname, n):
if not os.path.isdir(datadir):
os.makedirs(datadir)
rpc_u, rpc_p = rpc_auth_pair(n)
- with open(os.path.join(datadir, "dogecoin.conf"), 'w', encoding='utf8') as f:
+ with open(os.path.join(datadir, "discoin.conf"), 'w', encoding='utf8') as f:
f.write("regtest=1\n")
f.write("rpcuser=" + rpc_u + "\n")
f.write("rpcpassword=" + rpc_p + "\n")
@@ -250,12 +250,12 @@ def initialize_chain(test_dir, num_nodes, cachedir):
# Create cache directories, run bitcoinds:
for i in range(MAX_NODES):
datadir=initialize_datadir(cachedir, i)
- args = [ os.getenv("DOGECOIND", "dogecoind"), "-server", "-keypool=1", "-datadir="+datadir, "-discover=0" ]
+ args = [ os.getenv("DOGECOIND", "discoind"), "-server", "-keypool=1", "-datadir="+datadir, "-discover=0" ]
if i > 0:
args.append("-connect=127.0.0.1:"+str(p2p_port(0)))
bitcoind_processes[i] = subprocess.Popen(args)
if os.getenv("PYTHON_DEBUG", ""):
- print("initialize_chain: dogecoind started, waiting for RPC to come up")
+ print("initialize_chain: discoind started, waiting for RPC to come up")
wait_for_bitcoind_start(bitcoind_processes[i], rpc_url(i), i)
if os.getenv("PYTHON_DEBUG", ""):
print("initialize_chain: RPC successfully started")
@@ -336,12 +336,12 @@ def start_node(i, dirname, extra_args=None, rpchost=None, timewait=None, binary=
"""
datadir = os.path.join(dirname, "node"+str(i))
if binary is None:
- binary = os.getenv("DOGECOIND", "dogecoind")
+ binary = os.getenv("DOGECOIND", "discoind")
args = [ binary, "-datadir="+datadir, "-server", "-keypool=1", "-discover=0", "-rest", "-mocktime="+str(get_mocktime()) ]
if extra_args is not None: args.extend(extra_args)
bitcoind_processes[i] = subprocess.Popen(args)
if os.getenv("PYTHON_DEBUG", ""):
- print("start_node: dogecoind started, waiting for RPC to come up")
+ print("start_node: discoind started, waiting for RPC to come up")
url = rpc_url(i, rpchost)
wait_for_bitcoind_start(bitcoind_processes[i], url, i)
if os.getenv("PYTHON_DEBUG", ""):
diff --git a/qa/rpc-tests/wallet.py b/qa/rpc-tests/wallet.py
index e7d6aa794..b65dec3e4 100755
--- a/qa/rpc-tests/wallet.py
+++ b/qa/rpc-tests/wallet.py
@@ -81,7 +81,7 @@ class WalletTest (BitcoinTestFramework):
self.nodes[1].generate(60)
self.sync_all()
- # node0 should end up with 1.000.000 doge in block rewards plus fees, but
+ # node0 should end up with 1.000.000 dis in block rewards plus fees, but
# minus the 210.000 plus fees sent to node2
assert_equal(self.nodes[0].getbalance(), 1000000-210000)
assert_equal(self.nodes[2].getbalance(), 210000)