Skip to content

Commit abc6bf6

Browse files
committed
[GUI] Regtest corrections.
1 parent 6ceff8f commit abc6bf6

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

src/qt/pivx/masternodewizarddialog.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ MasterNodeWizardDialog::MasterNodeWizardDialog(WalletModel *model, QWidget *pare
6262
initCssEditLine(ui->lineEditPort);
6363
ui->stackedWidget->setCurrentIndex(pos);
6464
ui->lineEditPort->setValidator(new QIntValidator(0, 9999999, ui->lineEditPort));
65-
if(walletModel->isTestnet()){
65+
if(walletModel->isTestNetwork()){
6666
ui->lineEditPort->setEnabled(false);
6767
ui->lineEditPort->setText("51474");
6868
} else {

src/qt/walletmodel.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -58,8 +58,8 @@ WalletModel::~WalletModel()
5858
unsubscribeFromCoreSignals();
5959
}
6060

61-
bool WalletModel::isTestnet() const {
62-
return Params().NetworkID() == CBaseChainParams::TESTNET;
61+
bool WalletModel::isTestNetwork() const {
62+
return Params().NetworkID() == CBaseChainParams::TESTNET || Params().NetworkID() == CBaseChainParams::REGTEST;
6363
}
6464

6565
bool WalletModel::isColdStakingNetworkelyEnabled() const {
@@ -306,7 +306,7 @@ bool WalletModel::validateStakingAddress(const QString& address) {
306306
if (validateAddress(address)) {
307307
// check for staking only addresses
308308
QChar firstLetter = address.at(0).toLower();
309-
if (isTestnet() && firstLetter == 'w')
309+
if (isTestNetwork() && firstLetter == 'w')
310310
return true;
311311

312312
// mainnet check

src/qt/walletmodel.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,7 @@ class WalletModel : public QObject
141141
TransactionTableModel* getTransactionTableModel();
142142
RecentRequestsTableModel* getRecentRequestsTableModel();
143143

144-
bool isTestnet() const;
144+
bool isTestNetwork() const;
145145
/** Whether cold staking is enabled or disabled in the network **/
146146
bool isColdStakingNetworkelyEnabled() const;
147147

0 commit comments

Comments
 (0)