Skip to content

Commit

Permalink
Merge pull request #79 from HTHcoin/code-clean-up
Browse files Browse the repository at this point in the history
Code clean up
  • Loading branch information
MichaelHDesigns authored Aug 21, 2020
2 parents d2fe38b + 0ee26ea commit 11c01d6
Show file tree
Hide file tree
Showing 11 changed files with 150 additions and 136 deletions.
6 changes: 3 additions & 3 deletions configure.ac
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,10 @@ AC_PREREQ([2.60])
define(_CLIENT_VERSION_MAJOR, 0)
define(_CLIENT_VERSION_MINOR, 14)
define(_CLIENT_VERSION_REVISION, 0)
define(_CLIENT_VERSION_BUILD, 6)
define(_CLIENT_VERSION_BUILD, 7)
define(_CLIENT_VERSION_IS_RELEASE, true)
define(_COPYRIGHT_YEAR, 2019)
define(_COPYRIGHT_HOLDERS,[The %s developers])
define(_COPYRIGHT_YEAR, 2020)
define(_COPYRIGHT_HOLDERS,[The %s Developers])
define(_COPYRIGHT_HOLDERS_SUBSTITUTION,[[HelpTheHomeless]])
AC_INIT([HelpTheHomeless],[_CLIENT_VERSION_MAJOR._CLIENT_VERSION_MINOR._CLIENT_VERSION_REVISION],[https://github.com/HTHcoin/HTH/issues],[helpthehomeless],[https://helpthehomeless.org/])
AC_CONFIG_SRCDIR([src/validation.cpp])
Expand Down
2 changes: 1 addition & 1 deletion src/amount.h
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ extern const std::string CURRENCY_UNIT;
* critical; in unusual circumstances like a(nother) overflow bug that allowed
* for the creation of coins out of thin air modification could lead to a fork.
* */
static const CAmount MAX_MONEY = 2500000000 * COIN;
static const CAmount MAX_MONEY = 7000000000 * COIN;
inline bool MoneyRange(const CAmount& nValue) { return (nValue >= 0 && nValue <= MAX_MONEY); }

/**
Expand Down
14 changes: 7 additions & 7 deletions src/chainparams.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -231,11 +231,11 @@ class CMainParams : public CChainParams {
consensus.nMinerConfirmationWindow = 2016;
consensus.devAddress = "hWrjjP7w4iE5tezxDG3jD7xCTmikw3Kgoy";
consensus.devAddressPubKey = "b027849d3febd03af8063fc9f1f1226fbe3eb74c";
consensus.nDevelopersFeeBegin = 200;
consensus.nDevelopersFeeBegin = -1;

/* consensus.FoundationAddress = "BB2BwSbDCqCqNsfc7FgWFJn4sRgnUt4tsM";
consensus.FoundationPODSAddress = "BScSypUZVEEY4TMz1ehyyPcS5wrnMM7WPB";
consensus.FoundationQTAddress = "BDcNYc8tGXmwD7QmLXbR1rk1qteTDVEjUD";
/* consensus.FoundationAddress = "hUjxuAg8PM5ft9eE7kCCMqe1ruTWXSrswx"; */
consensus.FoundationPODSAddress = "hUjxuAg8PM5ft9eE7kCCMqe1ruTWXSrswx";
/* consensus.FoundationQTAddress = "BDcNYc8tGXmwD7QmLXbR1rk1qteTDVEjUD";
consensus.BurnAddress = "B4T5ciTCkWauSqVAcVKy88ofjcSasUkSYU"; */

consensus.vDeployments[Consensus::DEPLOYMENT_TESTDUMMY].bit = 28;
Expand Down Expand Up @@ -313,9 +313,9 @@ class CMainParams : public CChainParams {
assert(consensus.hashGenesisBlock == uint256S("0x37540c3c757bb77e42c168d8197447b6aba38c2d1ec0ddf59d2e774c41953093"));
assert(genesis.hashMerkleRoot == uint256S("0xb65534a1e2f0ff85de1ff4cd1a457b92a56abc182397d9cc1380482784acabfc"));

// vSeeds.push_back(CDNSSeedData("134.122.25.91:49999"));
// vSeeds.push_back(CDNSSeedData("134.122.25.91:49999"));
// vSeeds.push_back(CDNSSeedData("134.122.25.91:49999"));
vSeeds.push_back(CDNSSeedData("73.150.182.108", "155.138.198.71"));
vSeeds.push_back(CDNSSeedData("67.166.253.246", "82.27.145.78"));
vSeeds.push_back(CDNSSeedData("80.211.84.246", "62.171.128.133"));

// Dash addresses start with 'h'
base58Prefixes[PUBKEY_ADDRESS] = std::vector<unsigned char>(1,100);
Expand Down
2 changes: 1 addition & 1 deletion src/clientversion.h
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
#define CLIENT_VERSION_MAJOR 0
#define CLIENT_VERSION_MINOR 14
#define CLIENT_VERSION_REVISION 0
#define CLIENT_VERSION_BUILD 6
#define CLIENT_VERSION_BUILD 7

//! Set to true for release, false for prerelease or test build
#define CLIENT_VERSION_IS_RELEASE true
Expand Down
30 changes: 14 additions & 16 deletions src/qt/bitcoingui.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -236,23 +236,21 @@ BitcoinGUI::BitcoinGUI(const PlatformStyle *_platformStyle, const NetworkStyle *
#endif // QT_NO_TOOLTIP
web->setText(QApplication::translate("OverviewPage", "<a href=\"https://helpthehomelessworldwide.org\"><img src=\":/icons/web\" width=\"21\" height=\"21\"></a>", nullptr));
End Status Bar Social Links Not Used ***/

QLabel* www = new QLabel();
www->setObjectName(QStringLiteral("webs"));
www->setMinimumSize(QSize(21, 21));
www->setMaximumSize(QSize(21, 21));
www->setBaseSize(QSize(0, 0));
www->setCursor(QCursor(Qt::PointingHandCursor));
www->setAlignment(Qt::AlignLeading|Qt::AlignLeft|Qt::AlignVCenter);
www->setOpenExternalLinks(true);
QLabel* facebook = new QLabel();
facebook->setObjectName(QStringLiteral("facebook"));
facebook->setMinimumSize(QSize(21, 21));
facebook->setMaximumSize(QSize(21, 21));
facebook->setBaseSize(QSize(0, 0));
facebook->setCursor(QCursor(Qt::PointingHandCursor));
facebook->setAlignment(Qt::AlignLeading|Qt::AlignLeft|Qt::AlignVCenter);
facebook->setOpenExternalLinks(true);
#ifndef QT_NO_TOOLTIP
www->setToolTip(QApplication::translate("OverviewPage", "Visit HTH Explorer.", nullptr));
facebook->setToolTip(QApplication::translate("OverviewPage", "Visit HTH Facebook.", nullptr));
#endif // QT_NO_TOOLTIP
www->setText(QApplication::translate("OverviewPage", "<a href=\"https://openchains.info/coin/hth/about/\"><img src=\":/icons/webs\" width=\"21\" height=\"21\"></a>", nullptr));
facebook->setText(QApplication::translate("OverviewPage", "<a href=\"https://www.facebook.com/HelptheHomelessCoinOfficial/\"><img src=\":/icons/facebook\" width=\"21\" height=\"21\"></a>", nullptr));

End Status Bar Social Links Not Used ***/


QLabel* github = new QLabel();
github->setObjectName(QStringLiteral("github"));
Expand Down Expand Up @@ -304,14 +302,14 @@ BitcoinGUI::BitcoinGUI(const PlatformStyle *_platformStyle, const NetworkStyle *
#ifndef QT_NO_TOOLTIP
www->setToolTip(QApplication::translate("OverviewPage", "Where to mine HTH Coin.", nullptr));
#endif // QT_NO_TOOLTIP
www->setText(QApplication::translate("OverviewPage", "<a href=\"https://wheretomine.io/coins/helpthehomeless\"><img src=\":/icons/www\" width=\"21\" height=\"21\"></a>", nullptr));
www->setText(QApplication::translate("OverviewPage", "<a href=\"https://miningpoolstats.stream/hthcoin\"><img src=\":/icons/www\" width=\"21\" height=\"21\"></a>", nullptr));

frameSocialLayout->addWidget(www);
frameSocialLayout->addWidget(github);
frameSocialLayout->addWidget(twitter);
frameSocialLayout->addWidget(discord);
/* frameSocialLayout->addWidget(webs); // Links Not Used
frameSocialLayout->addWidget(web); */ // Links Not Used
frameSocialLayout->addWidget(facebook);
/* frameSocialLayout->addWidget(web); */ // Links Not Used



Expand Down
Loading

0 comments on commit 11c01d6

Please sign in to comment.