Skip to content

Commit ccb1a7c

Browse files
authored
Changes for 1.0.15 (#108)
* Updated segwit deployment time for testnet * Updated genesis for testnet, changed segwit deployment time * Uptdating segwit starttime for TestNet * Need more time on segwit starttime for TestNet * Final test segwit starttime for TestNet * Added -clearmncache as allowed arg (#95) * Fixed rescaning of wallet when refreshing tposcontract (#97) * Fixed compilation issue on CentOS 7 (#98) * Added slot for handling click on "toogle locked state" button in coincontrolldialog (#99) * Fixed RPC call for getblock to show tposcontract * Prepared for 1.0.14 release Updated version to 1.0.14, updated build type to "release" * Changed IS_RELEASE to false * Bugfix/103 (#105) * Fixed tposcontract cleanup issue, fixed typo mistakes in UI * Fixed issue with filtering MintedTPoS, fixed issue with sendtoadress with amount of splits * bugfix/101 (#102) * Added setstakesplitthreshold into vRPCConvertParams * Update sync.h * Updated staking settings startup param * Updated version to 1.0.15 * Added tpos commission as filter option
1 parent 4615859 commit ccb1a7c

11 files changed

Lines changed: 57 additions & 25 deletions

configure.ac

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,9 @@ dnl require autoconf 2.60 (AS_ECHO/AS_ECHO_N)
22
AC_PREREQ([2.60])
33
define(_CLIENT_VERSION_MAJOR, 1)
44
define(_CLIENT_VERSION_MINOR, 0)
5-
define(_CLIENT_VERSION_REVISION, 14)
5+
define(_CLIENT_VERSION_REVISION, 15)
66
define(_CLIENT_VERSION_BUILD, 0)
7-
define(_CLIENT_VERSION_IS_RELEASE, false)
7+
define(_CLIENT_VERSION_IS_RELEASE, true)
88
define(_COPYRIGHT_YEAR, 2018)
99
define(_COPYRIGHT_HOLDERS,[The %s developers])
1010
define(_COPYRIGHT_HOLDERS_SUBSTITUTION,[[XSN Core]])

src/XSNBtc.config

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
// Add predefined macros for your project here. For example:
22
// #define THE_ANSWER 42
33
#define ENABLE_WALLET
4+
#define ENABLE_ZMQ

src/init.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -601,6 +601,7 @@ void SetupServerArgs()
601601
gArgs.AddArg("-server", "Accept command line and JSON-RPC commands", false, OptionsCategory::RPC);
602602

603603
gArgs.AddArg("-sporkkey", "Private key to send spork messages", false, OptionsCategory::OPTIONS);
604+
gArgs.AddArg("-staking", "Enable staking while working with wallet, default is 1", false, OptionsCategory::OPTIONS);
604605
gArgs.AddArg("-masternode=<n>", "Enable the client to act as a masternode (0-1, default: false", false, OptionsCategory::MASTERNODE);
605606
gArgs.AddArg("-mnconf=<file>", "Specify masternode configuration file (default: masternode.conf)", false, OptionsCategory::MASTERNODE);
606607
gArgs.AddArg("-mnconflock=<n>", "Lock masternodes from masternode configuration file (default: %u)", false, OptionsCategory::MASTERNODE);
@@ -2004,7 +2005,7 @@ bool AppInitMain()
20042005
uiInterface.InitMessage(_("Done loading"));
20052006

20062007
g_wallet_init_interface.Start(scheduler);
2007-
if(GetWallets().front())
2008+
if(GetWallets().front() && gArgs.GetBoolArg("-staking", true))
20082009
{
20092010
threadGroup.create_thread(std::bind(&ThreadStakeMinter, boost::ref(chainparams), boost::ref(connman), GetWallets().front()));
20102011
}

src/qt/askpassphrasedialog.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ void AskPassphraseDialog::accept()
112112
break;
113113
}
114114
QMessageBox::StandardButton retval = QMessageBox::question(this, tr("Confirm wallet encryption"),
115-
tr("Warning: If you encrypt your wallet and lose your passphrase, you will <b>LOSE ALL OF YOUR BITCOINS</b>!") + "<br><br>" + tr("Are you sure you wish to encrypt your wallet?"),
115+
tr("Warning: If you encrypt your wallet and lose your passphrase, you will <b>LOSE ALL OF YOUR XSN</b>!") + "<br><br>" + tr("Are you sure you wish to encrypt your wallet?"),
116116
QMessageBox::Yes|QMessageBox::Cancel,
117117
QMessageBox::Cancel);
118118
if(retval == QMessageBox::Yes)

src/qt/forms/debugwindow.ui

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -288,7 +288,7 @@
288288
<item row="11" column="0">
289289
<widget class="QLabel" name="merchantnodeCountLabel">
290290
<property name="text">
291-
<string>Number of Merchantodes</string>
291+
<string>Number of Merchantnodes</string>
292292
</property>
293293
</widget>
294294
</item>

src/qt/transactionfilterproxy.cpp

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,12 @@
1-
// Copyright (c) 2011-2017 The Bitcoin Core developers
1+
// Copyright (c) 2011-2017 The Bitcoin Core developers
22
// Distributed under the MIT software license, see the accompanying
33
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
44

55
#include <qt/transactionfilterproxy.h>
66

77
#include <qt/transactiontablemodel.h>
88
#include <qt/transactionrecord.h>
9+
#include "logging.h"
910

1011
#include <cstdlib>
1112

@@ -36,6 +37,8 @@ bool TransactionFilterProxy::filterAcceptsRow(int sourceRow, const QModelIndex &
3637
return false;
3738

3839
int type = index.data(TransactionTableModel::TypeRole).toInt();
40+
41+
uint32_t ntype = type;
3942
if (!(TYPE(type) & typeFilter))
4043
return false;
4144

src/qt/transactionview.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -91,6 +91,8 @@ TransactionView::TransactionView(const PlatformStyle *platformStyle, QWidget *pa
9191
typeWidget->addItem(tr("To yourself"), TransactionFilterProxy::TYPE(TransactionRecord::SendToSelf));
9292
typeWidget->addItem(tr("Mined"), TransactionFilterProxy::TYPE(TransactionRecord::Generated));
9393
typeWidget->addItem(tr("Minted"), TransactionFilterProxy::TYPE(TransactionRecord::StakeMint));
94+
typeWidget->addItem(tr("Minted(TPoS)"), TransactionFilterProxy::TYPE(TransactionRecord::StakeMintTPoS));
95+
typeWidget->addItem(tr("Minted(TPoS Commission)"), TransactionFilterProxy::TYPE(TransactionRecord::StakeMintTPoSCommission));
9496
typeWidget->addItem(tr("Masternode Reward"), TransactionFilterProxy::TYPE(TransactionRecord::MNReward));
9597
typeWidget->addItem(tr("Other"), TransactionFilterProxy::TYPE(TransactionRecord::Other));
9698

src/rpc/client.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,8 @@ static const CRPCConvertParam vRPCConvertParams[] =
5555
{ "getbalance", 1, "minconf" },
5656
{ "getbalance", 2, "include_watchonly" },
5757
{ "getblockhash", 0, "height" },
58+
{ "setstakesplitthreshold", 0, "value"},
59+
{ "sendtoaddress", 4, "amount_of_splits"},
5860
{ "waitforblockheight", 0, "height" },
5961
{ "waitforblockheight", 1, "timeout" },
6062
{ "waitforblock", 1, "timeout" },

src/rpc/merchantnode.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -461,7 +461,7 @@ UniValue tposcontract(const JSONRPCRequest& request)
461461
strCommand = request.params[0].get_str();
462462
}
463463

464-
if (request.fHelp || (strCommand != "list" && strCommand != "create" && strCommand != "refresh"))
464+
if (request.fHelp || (strCommand != "list" && strCommand != "create" && strCommand != "refresh" && strCommand != "cleanup"))
465465
throw std::runtime_error(
466466
"tposcontract \"command\"...\n"
467467
"Set of commands to execute merchantnode related actions\n"

src/sync.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
#include <thread>
1313
#include <mutex>
1414

15-
//#define DEBUG_LOCKORDER
15+
// #define DEBUG_LOCKORDER
1616

1717
////////////////////////////////////////////////
1818
// //

0 commit comments

Comments
 (0)