Skip to content

Commit

Permalink
Merge branch 'develop' into tests/ci
Browse files Browse the repository at this point in the history
  • Loading branch information
SmartArray authored Apr 22, 2021
2 parents 9ef8c04 + a0b60fa commit 292915b
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 17 deletions.
22 changes: 9 additions & 13 deletions src/chainparams.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -218,14 +218,13 @@ class CMainParams : public CChainParams {
assert(genesis.hashMerkleRoot == uint256S("0x72ddd9496b004221ed0557358846d9248ecd4c440ebd28ed901efc18757d0fad"));

// Note that of those with the service bits flag, most only support a subset of possible options
vSeeds.emplace_back("seed1.digibyte.io");
vSeeds.emplace_back("seed2.digibyte.io");
vSeeds.emplace_back("seed3.digibyte.io");
vSeeds.emplace_back("seed.digibyte.io");
vSeeds.emplace_back("digihash.co");
vSeeds.emplace_back("digiexplorer.info");
vSeeds.emplace_back("seed.digibyteprojects.com");

vSeeds.emplace_back("seed.digibyte.org"); // Website collective
vSeeds.emplace_back("seed.digibyteservers.io"); // ChillingSilence
vSeeds.emplace_back("seed.digibyte.io"); // JaredTate
vSeeds.emplace_back("seed.digibyteblockchain.com"); // JS555
vSeeds.emplace_back("dnsseed.esotericizm.site"); // DigiContributor
vSeeds.emplace_back("seed.digibytefoundation.org"); // DigiByteFoundation
vSeeds.emplace_back("seed.digibyte.host"); // SashaD


base58Prefixes[PUBKEY_ADDRESS] = std::vector<unsigned char>(1,30);
Expand Down Expand Up @@ -412,11 +411,8 @@ class CTestNetParams : public CChainParams {
vFixedSeeds.clear();
vSeeds.clear();
// nodes with support for servicebits filtering should be at the top
vSeeds.emplace_back("seed1.digibyte.io");
vSeeds.emplace_back("seed2.digibyte.io");
vSeeds.emplace_back("seed3.digibyte.io");
vSeeds.emplace_back("testnet-seed.digibyteprojects.com");
vSeeds.emplace_back("testnet-1.us.digibyteservers.io");
vSeeds.emplace_back("seed.testnet-1.us.digibyteservers.io");
vSeeds.emplace_back("seed.testnetexplorer.digibyteservers.io");

base58Prefixes[PUBKEY_ADDRESS] = std::vector<unsigned char>(1,126);
base58Prefixes[SCRIPT_ADDRESS] = std::vector<unsigned char>(1,140);
Expand Down
9 changes: 6 additions & 3 deletions src/test/main_tests.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,10 @@
#define SECONDS_PER_MONTH (60 * 60 * 24 * 365 / 12)
#endif

#ifndef ENABLE_TESTNET_SUBSIDY_TESTS
#define ENABLE_TESTNET_SUBSIDY_TESTS 0
#endif

BOOST_FIXTURE_TEST_SUITE(main_tests, TestingSetup)

static void TestBlockSubsidy(const Consensus::Params& consensusParams, int nMaxBlocks, CAmount* nSumOut)
Expand Down Expand Up @@ -192,9 +196,8 @@ BOOST_AUTO_TEST_CASE(block_subsidy_test)
#if OUTPUT_SUPPLY_SAMPLES_ENABLED
// Output the accumulated supply until END_OF_SUPPLY_CURVE
std::cout << "(mainnet): MAXIMUM SUPPLY: " << sum << " dgbSATS (" << (sum / COIN) << " DGB)";
#else
// Only perform test on TESTNET too, if we are not
// outputting the sampled supply data.
#elif ENABLE_TESTNET_SUBSIDY_TESTS != 0
// Only perform test on TESTNET too if requested so.
TestBlockSubsidy(testChainParams->GetConsensus(), END_OF_SUPPLY_CURVE, NULL); // Testnet
#endif
}
Expand Down
2 changes: 1 addition & 1 deletion src/test/txvalidationcache_tests.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -220,10 +220,10 @@ BOOST_FIXTURE_TEST_CASE(checkinputs_test, TestChain100Setup)
CBlock block;

block = CreateAndProcessBlock({spend_tx}, p2pk_scriptPubKey);
LOCK(cs_main);
BOOST_CHECK(chainActive.Tip()->GetBlockHash() == block.GetHash());
BOOST_CHECK(pcoinsTip->GetBestBlock() == block.GetHash());

LOCK(cs_main);

// Test P2SH: construct a transaction that is valid without P2SH, and
// then test validity with P2SH.
Expand Down

0 comments on commit 292915b

Please sign in to comment.