diff options
| author | Tomo Ueda <[email protected]> | 2021-09-02 12:54:43 -0700 |
|---|---|---|
| committer | Tomo Ueda <[email protected]> | 2021-09-02 12:54:43 -0700 |
| commit | f5c716526aaafb318a98e974c8b2fbe02870646b (patch) | |
| tree | e14145656fcff86ec2c7a1ecf4ad28e0b40f36aa /src/test | |
| parent | s/DOGE/DIS/g (diff) | |
| download | discoin-f5c716526aaafb318a98e974c8b2fbe02870646b.tar.xz discoin-f5c716526aaafb318a98e974c8b2fbe02870646b.zip | |
really s/doge/dis/g this time
Diffstat (limited to 'src/test')
| -rw-r--r-- | src/test/auxpow_tests.cpp | 2 | ||||
| -rw-r--r-- | src/test/data/bitcoin-util-test.json | 120 | ||||
| -rw-r--r-- | src/test/dogecoin_tests.cpp | 4 | ||||
| -rw-r--r-- | src/test/main_tests.cpp | 8 | ||||
| -rw-r--r-- | src/test/miner_tests.cpp | 2 |
5 files changed, 68 insertions, 68 deletions
diff --git a/src/test/auxpow_tests.cpp b/src/test/auxpow_tests.cpp index ca1a93062..11bd7bfa6 100644 --- a/src/test/auxpow_tests.cpp +++ b/src/test/auxpow_tests.cpp @@ -6,7 +6,7 @@ #include "chainparams.h" #include "coins.h" #include "consensus/merkle.h" -#include "dogecoin.h" +#include "discoin.h" #include "primitives/block.h" #include "script/script.h" #include "uint256.h" diff --git a/src/test/data/bitcoin-util-test.json b/src/test/data/bitcoin-util-test.json index 99bfda37c..7de51dbd7 100644 --- a/src/test/data/bitcoin-util-test.json +++ b/src/test/data/bitcoin-util-test.json @@ -1,82 +1,82 @@ [ - { "exec": "./dogecoin-tx", + { "exec": "./discoin-tx", "args": ["-create", "nversion=1"], "output_cmp": "blanktxv1.hex", "description": "Creates a blank v1 transaction" }, - { "exec": "./dogecoin-tx", + { "exec": "./discoin-tx", "args": ["-json", "-create", "nversion=1"], "output_cmp": "blanktxv1.json", "description": "Creates a blank v1 transaction (output in json)" }, - { "exec": "./dogecoin-tx", + { "exec": "./discoin-tx", "args": ["-"], "input": "blanktxv2.hex", "output_cmp": "blanktxv2.hex", - "description": "Creates a blank v2 transaction when nothing is piped into dogecoin-tx" + "description": "Creates a blank v2 transaction when nothing is piped into discoin-tx" }, - { "exec": "./dogecoin-tx", + { "exec": "./discoin-tx", "args": ["-json","-create", "nversion=2"], "output_cmp": "blanktxv2.json", "description": "Creates a blank v2 transaction (output in json)" }, - { "exec": "./dogecoin-tx", + { "exec": "./discoin-tx", "args": ["-json", "-"], "input": "blanktxv2.hex", "output_cmp": "blanktxv2.json", - "description": "Creates a blank transaction when nothing is piped into dogecoin-tx (output in json)" + "description": "Creates a blank transaction when nothing is piped into discoin-tx (output in json)" }, - { "exec": "./dogecoin-tx", + { "exec": "./discoin-tx", "args": ["-", "delin=1"], "input": "tx394b54bb.hex", "output_cmp": "tt-delin1-out.hex", "description": "Deletes a single input from a transaction" }, - { "exec": "./dogecoin-tx", + { "exec": "./discoin-tx", "args": ["-json", "-", "delin=1"], "input": "tx394b54bb.hex", "output_cmp": "tt-delin1-out.json", "description": "Deletes a single input from a transaction (output in json)" }, - { "exec": "./dogecoin-tx", + { "exec": "./discoin-tx", "args": ["-", "delin=31"], "input": "tx394b54bb.hex", "return_code": 1, "error_txt": "error: Invalid TX input index '31'", "description": "Attempts to delete an input with a bad index from a transaction. Expected to fail." }, - { "exec": "./dogecoin-tx", + { "exec": "./discoin-tx", "args": ["-", "delout=1"], "input": "tx394b54bb.hex", "output_cmp": "tt-delout1-out.hex", "description": "Deletes a single output from a transaction" }, - { "exec": "./dogecoin-tx", + { "exec": "./discoin-tx", "args": ["-json", "-", "delout=1"], "input": "tx394b54bb.hex", "output_cmp": "tt-delout1-out.json", "description": "Deletes a single output from a transaction (output in json)" }, - { "exec": "./dogecoin-tx", + { "exec": "./discoin-tx", "args": ["-", "delout=2"], "input": "tx394b54bb.hex", "return_code": 1, "error_txt": "error: Invalid TX output index '2'", "description": "Attempts to delete an output with a bad index from a transaction. Expected to fail." }, - { "exec": "./dogecoin-tx", + { "exec": "./discoin-tx", "args": ["-", "locktime=317000"], "input": "tx394b54bb.hex", "output_cmp": "tt-locktime317000-out.hex", "description": "Adds an nlocktime to a transaction" }, - { "exec": "./dogecoin-tx", + { "exec": "./discoin-tx", "args": ["-json", "-", "locktime=317000"], "input": "tx394b54bb.hex", "output_cmp": "tt-locktime317000-out.json", "description": "Adds an nlocktime to a transaction (output in json)" }, - { "exec": "./dogecoin-tx", + { "exec": "./discoin-tx", "args": ["-create", "outaddr=1"], @@ -84,7 +84,7 @@ "error_txt": "error: TX output missing or too many separators", "description": "Malformed outaddr argument (no address specified). Expected to fail." }, - { "exec": "./dogecoin-tx", + { "exec": "./discoin-tx", "args": ["-create", "outaddr=1:DTH54BW9S9Q1EPCCiseQCzEBgf6pTRZv3U:garbage"], @@ -92,7 +92,7 @@ "error_txt": "error: TX output missing or too many separators", "description": "Malformed outaddr argument (too many separators). Expected to fail." }, - { "exec": "./dogecoin-tx", + { "exec": "./discoin-tx", "args": ["-create", "outpubkey=0"], @@ -100,7 +100,7 @@ "error_txt": "error: TX output missing or too many separators", "description": "Malformed outpubkey argument (no pubkey specified). Expected to fail." }, - { "exec": "./dogecoin-tx", + { "exec": "./discoin-tx", "args": ["-create", "outpubkey=0:02a5613bd857b7048924264d1e70e08fb2a7e6527d32b7ab1bb993ac59964ff397:W:non53nse"], @@ -108,7 +108,7 @@ "error_txt": "error: TX output missing or too many separators", "description": "Malformed outpubkey argument (too many separators). Expected to fail." }, - { "exec": "./dogecoin-tx", + { "exec": "./discoin-tx", "args": ["-create", "in=5897de6bd6027a475eadd57019d4e6872c396d0716c4875a5f1a6fcfdf385c1f:0", @@ -120,7 +120,7 @@ "output_cmp": "txcreate1.hex", "description": "Creates a new transaction with three inputs and two outputs" }, - { "exec": "./dogecoin-tx", + { "exec": "./discoin-tx", "args": ["-json", "-create", @@ -133,67 +133,67 @@ "output_cmp": "txcreate1.json", "description": "Creates a new transaction with three inputs and two outputs (output in json)" }, - { "exec": "./dogecoin-tx", + { "exec": "./discoin-tx", "args": ["-create", "outscript=0:", "nversion=2"], "output_cmp": "txcreate2.hex", "description": "Creates a new transaction with a single empty output script" }, - { "exec": "./dogecoin-tx", + { "exec": "./discoin-tx", "args": ["-json", "-create", "outscript=0:", "nversion=2"], "output_cmp": "txcreate2.json", "description": "Creates a new transaction with a single empty output script (output in json)" }, - { "exec": "./dogecoin-tx", + { "exec": "./discoin-tx", "args": ["02000000000100000000000000000000000000"], "output_cmp": "txcreate2.hex", "description": "Parses a transation with no inputs and a single output script" }, - { "exec": "./dogecoin-tx", + { "exec": "./discoin-tx", "args": ["-json", "02000000000100000000000000000000000000"], "output_cmp": "txcreate2.json", "description": "Parses a transation with no inputs and a single output script (output in json)" }, - { "exec": "./dogecoin-tx", + { "exec": "./discoin-tx", "args": ["-create", "outscript=0:OP_DROP", "nversion=1"], "output_cmp": "txcreatescript1.hex", "description": "Create a new transaction with a single output script (OP_DROP)" }, - { "exec": "./dogecoin-tx", + { "exec": "./discoin-tx", "args": ["-json", "-create", "outscript=0:OP_DROP", "nversion=1"], "output_cmp": "txcreatescript1.json", "description": "Create a new transaction with a single output script (OP_DROP) (output as json)" }, - { "exec": "./dogecoin-tx", + { "exec": "./discoin-tx", "args": ["-create", "outscript=0:OP_DROP:S", "nversion=1"], "output_cmp": "txcreatescript2.hex", "description": "Create a new transaction with a single output script (OP_DROP) in a P2SH" }, - { "exec": "./dogecoin-tx", + { "exec": "./discoin-tx", "args": ["-json", "-create", "outscript=0:OP_DROP:S", "nversion=1"], "output_cmp": "txcreatescript2.json", "description": "Create a new transaction with a single output script (OP_DROP) in a P2SH (output as json)" }, - { "exec": "./dogecoin-tx", + { "exec": "./discoin-tx", "args": ["-create", "outscript=0:OP_DROP:W", "nversion=1"], "output_cmp": "txcreatescript3.hex", "description": "Create a new transaction with a single output script (OP_DROP) in a P2WSH" }, - { "exec": "./dogecoin-tx", + { "exec": "./discoin-tx", "args": ["-json", "-create", "outscript=0:OP_DROP:W", "nversion=1"], "output_cmp": "txcreatescript3.json", "description": "Create a new transaction with a single output script (OP_DROP) in a P2WSH (output as json)" }, - { "exec": "./dogecoin-tx", + { "exec": "./discoin-tx", "args": ["-create", "outscript=0:OP_DROP:WS", "nversion=1"], "output_cmp": "txcreatescript4.hex", "description": "Create a new transaction with a single output script (OP_DROP) in a P2WSH, wrapped in a P2SH" }, - { "exec": "./dogecoin-tx", + { "exec": "./discoin-tx", "args": ["-json", "-create", "outscript=0:OP_DROP:WS", "nversion=1"], "output_cmp": "txcreatescript4.json", "description": "Create a new transaction with a single output script (OP_DROP) in a P2SH, wrapped in a P2SH (output as json)" }, - { "exec": "./dogecoin-tx", + { "exec": "./discoin-tx", "args": ["-create", "nversion=1", "in=4d49a71ec9da436f71ec4ee231d04f292a29cd316f598bb7068feccabdc59485:0", @@ -204,7 +204,7 @@ "output_cmp": "txcreatesignv1.hex", "description": "Creates a new v1 transaction with a single input and a single output, and then signs the transaction" }, - { "exec": "./dogecoin-tx", + { "exec": "./discoin-tx", "args": ["-json", "-create", "nversion=1", @@ -216,7 +216,7 @@ "output_cmp": "txcreatesignv1.json", "description": "Creates a new v1 transaction with a single input and a single output, and then signs the transaction (output in json)" }, - { "exec": "./dogecoin-tx", + { "exec": "./discoin-tx", "args": ["-create", "nversion=2", "in=4d49a71ec9da436f71ec4ee231d04f292a29cd316f598bb7068feccabdc59485:0", @@ -227,43 +227,43 @@ "output_cmp": "txcreatesignv2.hex", "description": "Creates a new transaction with a single input and a single output, and then signs the transaction" }, - { "exec": "./dogecoin-tx", + { "exec": "./discoin-tx", "args": ["-create", "outpubkey=0:02a5613bd857b7048924264d1e70e08fb2a7e6527d32b7ab1bb993ac59964ff397", "nversion=1"], "output_cmp": "txcreateoutpubkey1.hex", "description": "Creates a new transaction with a single pay-to-pubkey output" }, - { "exec": "./dogecoin-tx", + { "exec": "./discoin-tx", "args": ["-json", "-create", "outpubkey=0:02a5613bd857b7048924264d1e70e08fb2a7e6527d32b7ab1bb993ac59964ff397", "nversion=1"], "output_cmp": "txcreateoutpubkey1.json", "description": "Creates a new transaction with a single pay-to-pubkey output (output as json)" }, - { "exec": "./dogecoin-tx", + { "exec": "./discoin-tx", "args": ["-create", "outpubkey=0:02a5613bd857b7048924264d1e70e08fb2a7e6527d32b7ab1bb993ac59964ff397:W", "nversion=1"], "output_cmp": "txcreateoutpubkey2.hex", "description": "Creates a new transaction with a single pay-to-witness-pubkey output" }, - { "exec": "./dogecoin-tx", + { "exec": "./discoin-tx", "args": ["-json", "-create", "outpubkey=0:02a5613bd857b7048924264d1e70e08fb2a7e6527d32b7ab1bb993ac59964ff397:W", "nversion=1"], "output_cmp": "txcreateoutpubkey2.json", "description": "Creates a new transaction with a single pay-to-witness-pubkey output (output as json)" }, - { "exec": "./dogecoin-tx", + { "exec": "./discoin-tx", "args": ["-create", "outpubkey=0:02a5613bd857b7048924264d1e70e08fb2a7e6527d32b7ab1bb993ac59964ff397:WS", "nversion=1"], "output_cmp": "txcreateoutpubkey3.hex", "description": "Creates a new transaction with a single pay-to-witness-pubkey, wrapped in P2SH output" }, - { "exec": "./dogecoin-tx", + { "exec": "./discoin-tx", "args": ["-json", "-create", "outpubkey=0:02a5613bd857b7048924264d1e70e08fb2a7e6527d32b7ab1bb993ac59964ff397:WS", "nversion=1"], "output_cmp": "txcreateoutpubkey3.json", "description": "Creates a new transaction with a single pay-to-pub-key output, wrapped in P2SH (output as json)" }, - { "exec": "./dogecoin-tx", + { "exec": "./discoin-tx", "args": ["-create", "in=5897de6bd6027a475eadd57019d4e6872c396d0716c4875a5f1a6fcfdf385c1f:0", @@ -272,7 +272,7 @@ "error_txt": "error: invalid TX output data", "description": "Attempts to create a new transaction with one input and an output with malformed hex data. Expected to fail" }, - { "exec": "./dogecoin-tx", + { "exec": "./discoin-tx", "args": ["-create", "in=5897de6bd6027a475eadd57019d4e6872c396d0716c4875a5f1a6fcfdf385c1f:0", @@ -281,7 +281,7 @@ "error_txt": "error: invalid TX output data", "description": "Attempts to create a new transaction with one input and an output with no value and malformed hex data. Expected to fail" }, - { "exec": "./dogecoin-tx", + { "exec": "./discoin-tx", "args": ["-create", "nversion=2", "in=5897de6bd6027a475eadd57019d4e6872c396d0716c4875a5f1a6fcfdf385c1f:0", @@ -290,7 +290,7 @@ "output_cmp": "txcreatedata1.hex", "description": "Creates a new transaction with one input, one address output and one data output" }, - { "exec": "./dogecoin-tx", + { "exec": "./discoin-tx", "args": ["-json", "-create", "nversion=1", @@ -300,7 +300,7 @@ "output_cmp": "txcreatedata1.json", "description": "Creates a new v1 transaction with one input, one address output and one data output (output in json)" }, - { "exec": "./dogecoin-tx", + { "exec": "./discoin-tx", "args": ["-create", "nversion=2", "in=5897de6bd6027a475eadd57019d4e6872c396d0716c4875a5f1a6fcfdf385c1f:0", @@ -309,7 +309,7 @@ "output_cmp": "txcreatedata2.hex", "description": "Creates a new transaction with one input, one address output and one data (zero value) output" }, - { "exec": "./dogecoin-tx", + { "exec": "./discoin-tx", "args": ["-json", "-create", "nversion=2", @@ -319,7 +319,7 @@ "output_cmp": "txcreatedata2.json", "description": "Creates a new transaction with one input, one address output and one data (zero value) output (output in json)" }, - { "exec": "./dogecoin-tx", + { "exec": "./discoin-tx", "args": ["-create", "nversion=2", "in=5897de6bd6027a475eadd57019d4e6872c396d0716c4875a5f1a6fcfdf385c1f:0:4294967293", @@ -327,7 +327,7 @@ "output_cmp": "txcreatedata_seq0.hex", "description": "Creates a new transaction with one input with sequence number and one address output" }, - { "exec": "./dogecoin-tx", + { "exec": "./discoin-tx", "args": ["-json", "-create", "nversion=2", @@ -336,14 +336,14 @@ "output_cmp": "txcreatedata_seq0.json", "description": "Creates a new transaction with one input with sequence number and one address output (output in json)" }, - { "exec": "./dogecoin-tx", + { "exec": "./discoin-tx", "args": ["01000000011f5c38dfcf6f1a5f5a87c416076d392c87e6d41970d5ad5e477a02d66bde97580000000000fdffffff0180a81201000000001976a9141fc11f39be1729bf973a7ab6a615ca4729d6457488ac00000000", "in=5897de6bd6027a475eadd57019d4e6872c396d0716c4875a5f1a6fcfdf385c1f:0:1"], "output_cmp": "txcreatedata_seq1.hex", "description": "Adds a new input with sequence number to a transaction" }, - { "exec": "./dogecoin-tx", + { "exec": "./discoin-tx", "args": ["-json", "01000000011f5c38dfcf6f1a5f5a87c416076d392c87e6d41970d5ad5e477a02d66bde97580000000000fdffffff0180a81201000000001976a9141fc11f39be1729bf973a7ab6a615ca4729d6457488ac00000000", @@ -351,42 +351,42 @@ "output_cmp": "txcreatedata_seq1.json", "description": "Adds a new input with sequence number to a transaction (output in json)" }, - { "exec": "./dogecoin-tx", + { "exec": "./discoin-tx", "args": ["-create", "outmultisig=1:2:3:02a5613bd857b7048924264d1e70e08fb2a7e6527d32b7ab1bb993ac59964ff397:021ac43c7ff740014c3b33737ede99c967e4764553d1b2b83db77c83b8715fa72d:02df2089105c77f266fa11a9d33f05c735234075f2e8780824c6b709415f9fb485", "nversion=1"], "output_cmp": "txcreatemultisig1.hex", "description": "Creates a new transaction with a single 2-of-3 multisig output" }, - { "exec": "./dogecoin-tx", + { "exec": "./discoin-tx", "args": ["-json", "-create", "outmultisig=1:2:3:02a5613bd857b7048924264d1e70e08fb2a7e6527d32b7ab1bb993ac59964ff397:021ac43c7ff740014c3b33737ede99c967e4764553d1b2b83db77c83b8715fa72d:02df2089105c77f266fa11a9d33f05c735234075f2e8780824c6b709415f9fb485", "nversion=1"], "output_cmp": "txcreatemultisig1.json", "description": "Creates a new transaction with a single 2-of-3 multisig output (output in json)" }, - { "exec": "./dogecoin-tx", + { "exec": "./discoin-tx", "args": ["-create", "outmultisig=1:2:3:02a5613bd857b7048924264d1e70e08fb2a7e6527d32b7ab1bb993ac59964ff397:021ac43c7ff740014c3b33737ede99c967e4764553d1b2b83db77c83b8715fa72d:02df2089105c77f266fa11a9d33f05c735234075f2e8780824c6b709415f9fb485:S", "nversion=1"], "output_cmp": "txcreatemultisig2.hex", "description": "Creates a new transaction with a single 2-of-3 multisig in a P2SH output" }, - { "exec": "./dogecoin-tx", + { "exec": "./discoin-tx", "args": ["-json", "-create", "outmultisig=1:2:3:02a5613bd857b7048924264d1e70e08fb2a7e6527d32b7ab1bb993ac59964ff397:021ac43c7ff740014c3b33737ede99c967e4764553d1b2b83db77c83b8715fa72d:02df2089105c77f266fa11a9d33f05c735234075f2e8780824c6b709415f9fb485:S", "nversion=1"], "output_cmp": "txcreatemultisig2.json", "description": "Creates a new transaction with a single 2-of-3 multisig in a P2SH output (output in json)" }, - { "exec": "./dogecoin-tx", + { "exec": "./discoin-tx", "args": ["-create", "outmultisig=1:2:3:02a5613bd857b7048924264d1e70e08fb2a7e6527d32b7ab1bb993ac59964ff397:021ac43c7ff740014c3b33737ede99c967e4764553d1b2b83db77c83b8715fa72d:02df2089105c77f266fa11a9d33f05c735234075f2e8780824c6b709415f9fb485:W", "nversion=1"], "output_cmp": "txcreatemultisig3.hex", "description": "Creates a new transaction with a single 2-of-3 multisig in a P2WSH output" }, - { "exec": "./dogecoin-tx", + { "exec": "./discoin-tx", "args": ["-json", "-create", "outmultisig=1:2:3:02a5613bd857b7048924264d1e70e08fb2a7e6527d32b7ab1bb993ac59964ff397:021ac43c7ff740014c3b33737ede99c967e4764553d1b2b83db77c83b8715fa72d:02df2089105c77f266fa11a9d33f05c735234075f2e8780824c6b709415f9fb485:W", "nversion=1"], "output_cmp": "txcreatemultisig3.json", "description": "Creates a new transaction with a single 2-of-3 multisig in a P2WSH output (output in json)" }, - { "exec": "./dogecoin-tx", + { "exec": "./discoin-tx", "args": ["-create", "outmultisig=1:2:3:02a5613bd857b7048924264d1e70e08fb2a7e6527d32b7ab1bb993ac59964ff397:021ac43c7ff740014c3b33737ede99c967e4764553d1b2b83db77c83b8715fa72d:02df2089105c77f266fa11a9d33f05c735234075f2e8780824c6b709415f9fb485:WS", "nversion=1"], "output_cmp": "txcreatemultisig4.hex", "description": "Creates a new transaction with a single 2-of-3 multisig in a P2WSH output, wrapped in P2SH" }, - { "exec": "./dogecoin-tx", + { "exec": "./discoin-tx", "args": ["-json", "-create", "outmultisig=1:2:3:02a5613bd857b7048924264d1e70e08fb2a7e6527d32b7ab1bb993ac59964ff397:021ac43c7ff740014c3b33737ede99c967e4764553d1b2b83db77c83b8715fa72d:02df2089105c77f266fa11a9d33f05c735234075f2e8780824c6b709415f9fb485:WS", "nversion=1"], "output_cmp": "txcreatemultisig4.json", "description": "Creates a new transaction with a single 2-of-3 multisig in a P2WSH output, wrapped in P2SH (output in json)" diff --git a/src/test/dogecoin_tests.cpp b/src/test/dogecoin_tests.cpp index 3d842861a..01a9b7eb0 100644 --- a/src/test/dogecoin_tests.cpp +++ b/src/test/dogecoin_tests.cpp @@ -4,12 +4,12 @@ #include "arith_uint256.h" #include "chainparams.h" -#include "dogecoin.h" +#include "discoin.h" #include "test/test_bitcoin.h" #include <boost/test/unit_test.hpp> -BOOST_FIXTURE_TEST_SUITE(dogecoin_tests, TestingSetup) +BOOST_FIXTURE_TEST_SUITE(discoin_tests, TestingSetup) /** * the maximum block reward at a given height for a block without fees diff --git a/src/test/main_tests.cpp b/src/test/main_tests.cpp index 143c63243..5d1448bd8 100644 --- a/src/test/main_tests.cpp +++ b/src/test/main_tests.cpp @@ -15,7 +15,7 @@ BOOST_FIXTURE_TEST_SUITE(main_tests, TestingSetup) static void TestBlockSubsidyHalvings(const Consensus::Params& consensusParams) { - // tested in dogecoin_tests.cpp + // tested in discoin_tests.cpp //int maxHalvings = 64; //CAmount nInitialSubsidy = 50 * COIN; @@ -33,7 +33,7 @@ static void TestBlockSubsidyHalvings(const Consensus::Params& consensusParams) static void TestBlockSubsidyHalvings(int nSubsidyHalvingInterval) { - // tested in dogecoin_tests.cpp + // tested in discoin_tests.cpp //Consensus::Params consensusParams; //consensusParams.nSubsidyHalvingInterval = nSubsidyHalvingInterval; //TestBlockSubsidyHalvings(consensusParams); @@ -41,7 +41,7 @@ static void TestBlockSubsidyHalvings(int nSubsidyHalvingInterval) BOOST_AUTO_TEST_CASE(block_subsidy_test) { - // tested in dogecoin_tests.cpp + // tested in discoin_tests.cpp //TestBlockSubsidyHalvings(Params(CBaseChainParams::MAIN).GetConsensus()); // As in main //TestBlockSubsidyHalvings(150); // As in regtest //TestBlockSubsidyHalvings(1000); // Just another interval @@ -49,7 +49,7 @@ BOOST_AUTO_TEST_CASE(block_subsidy_test) BOOST_AUTO_TEST_CASE(subsidy_limit_test) { - // tested in dogecoin_tests.cpp + // tested in discoin_tests.cpp //const Consensus::Params& consensusParams = Params(CBaseChainParams::MAIN).GetConsensus(); //CAmount nSum = 0; //for (int nHeight = 0; nHeight < 14000000; nHeight += 1000) { diff --git a/src/test/miner_tests.cpp b/src/test/miner_tests.cpp index 3995d3096..f3ab5d311 100644 --- a/src/test/miner_tests.cpp +++ b/src/test/miner_tests.cpp @@ -184,7 +184,7 @@ BOOST_AUTO_TEST_CASE(CreateNewBlock_validity) { // Note that by default, these tests run with size accounting enabled. const CChainParams& chainparams = Params(CBaseChainParams::MAIN); - // changed this to dogecoin genesis pubkey script + // changed this to discoin genesis pubkey script CScript scriptPubKey = CScript() << ParseHex("040184710fa689ad5023690c80f3a49c8f13f8d45b8c857fbcbc8bc4a8e4d3eb4b10f4d4604fa08dce601aaf0f470216fe1b51850b4acf21b179c45070ac7b03a9") << OP_CHECKSIG; std::unique_ptr<CBlockTemplate> pblocktemplate; CMutableTransaction tx,tx2; |