Skip to content

Commit 6086ad8

Browse files
authored
Merge pull request #18 from LIMXTEC/DEV_1
Dev 1
2 parents 78db50e + eedd3ec commit 6086ad8

File tree

6 files changed

+21
-12
lines changed

6 files changed

+21
-12
lines changed

configure.ac

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ AC_PREREQ([2.60])
33
define(_CLIENT_VERSION_MAJOR, 1)
44
define(_CLIENT_VERSION_MINOR, 9)
55
define(_CLIENT_VERSION_REVISION, 9)
6-
define(_CLIENT_VERSION_BUILD, 1)
6+
define(_CLIENT_VERSION_BUILD, 2)
77
define(_CLIENT_VERSION_IS_RELEASE, true)
88
define(_COPYRIGHT_YEAR, 2020)
99
define(_COPYRIGHT_HOLDERS,[The %s developers])

src/crypto/mega-mec.h

+2-2
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ extern "C" {
3333
#include <crypto/sph_sha2.h>
3434
//#include <crypto/sph_tiger.h>
3535
}
36-
#include <crypto/lyra2.h>
36+
//#include <crypto/lyra2.h>
3737

3838
#define HASH_FUNC_BASE_TIMESTAMP_1 1370079299 // Megacoin Block 1
3939
#define HASH_FUNC_COUNT_1 8
@@ -346,4 +346,4 @@ inline uint256 Mega_Mec(const T1 pbegin, const T1 pend,uint32_t timestamp)
346346
return ArithToUint256(hash[22].trim256());
347347
}
348348

349-
#endif // MEGACOIN_CRYPTO_MEGA_MEC_H
349+
#endif // MEGACOIN_CRYPTO_MEGA_MEC_H

src/governance-object.h

+2-2
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,8 @@ class CGovernanceObject;
2525
class CGovernanceVote;
2626

2727
static const int MAX_GOVERNANCE_OBJECT_DATA_SIZE = 16 * 1024;
28-
static const int MIN_GOVERNANCE_PEER_PROTO_VERSION = 70206;
29-
static const int GOVERNANCE_FILTER_PROTO_VERSION = 70206;
28+
static const int MIN_GOVERNANCE_PEER_PROTO_VERSION = 70006;
29+
static const int GOVERNANCE_FILTER_PROTO_VERSION = 70006;
3030

3131
static const double GOVERNANCE_FILTER_FP_RATE = 0.001;
3232

src/masternodeconfig.cpp

+9-2
Original file line numberDiff line numberDiff line change
@@ -29,12 +29,19 @@ bool CMasternodeConfig::read(std::string& strErr) {
2929
if (!streamConfig2.good()) {
3030
FILE* configFile = fopen(pathConfigFile.string().c_str(), "a");
3131
if (configFile != NULL) {
32-
std::string strHeader = "# Megacoin config file v 1.0\n"
32+
std::string strHeader = "# Megacoin config file v 1.1\n"
3333
"# Network Nodes\n"
3434
"addnode=37.120.186.85\n"
3535
"addnode=37.120.190.76\n"
3636
"addnode=185.194.140.60\n"
3737
"addnode=185.194.142.125\n"
38+
"addnode=115.159.124.86\n"
39+
"addnode=120.243.237.236\n"
40+
"addnode=120.79.91.232\n"
41+
"addnode=125.94.91.54\n"
42+
"addnode=178.200.230.252\n"
43+
"addnode=185.194.142.125\n"
44+
"addnode=188.42.33.124\n"
3845
"# Masternode preparation (optional) - Note - You have to remove #\n"
3946
"#masternodeaddr=1.2.3.4:7951\n"
4047
"#externalip=1.2.3.4:7951\n"
@@ -45,7 +52,7 @@ bool CMasternodeConfig::read(std::string& strErr) {
4552
"#rpcpassword=mystrongpassword\n"
4653
"#rpcport=7952\n"
4754
"# Miscellaneous #\n"
48-
"nodebuglogfile=0\n"
55+
"#nodebuglogfile=1\n"
4956
"daemon=1\n"
5057
"listen=1\n"
5158
"logtimestamps=1\n"

src/rpc/mining.cpp

+2-2
Original file line numberDiff line numberDiff line change
@@ -566,13 +566,13 @@ static UniValue getblocktemplate(const JSONRPCRequest& request)
566566
if (sporkManager.IsSporkActive(SPORK_8_MASTERNODE_PAYMENT_ENFORCEMENT)
567567
&& !masternodeSync.IsWinnersListSynced()
568568
&& !mnpayments.GetBlockPayee(chainActive.Height() + 1, payee))
569-
throw JSONRPCError(RPC_CLIENT_IN_INITIAL_DOWNLOAD, "Dash Core is downloading masternode winners...");
569+
throw JSONRPCError(RPC_CLIENT_IN_INITIAL_DOWNLOAD, "Megacoin Core is downloading masternode winners...");
570570

571571
// next bock is a superblock and we need governance info to correctly construct it
572572
if (sporkManager.IsSporkActive(SPORK_9_SUPERBLOCKS_ENABLED)
573573
&& !masternodeSync.IsSynced()
574574
&& CSuperblock::IsValidBlockHeight(chainActive.Height() + 1))
575-
throw JSONRPCError(RPC_CLIENT_IN_INITIAL_DOWNLOAD, "Dash Core is syncing with network...");
575+
throw JSONRPCError(RPC_CLIENT_IN_INITIAL_DOWNLOAD, "Megacoin Core is syncing with network...");
576576
//
577577

578578
static unsigned int nTransactionsUpdatedLast;

src/wallet/wallet.h

+5-3
Original file line numberDiff line numberDiff line change
@@ -152,11 +152,13 @@ struct CompactTallyItem
152152
};
153153
//
154154

155-
//! Default for -addresstype
156-
constexpr OutputType DEFAULT_ADDRESS_TYPE{OutputType::P2SH_SEGWIT};
155+
//! Default for -addresstype legacy
156+
//constexpr OutputType DEFAULT_ADDRESS_TYPE{OutputType::P2SH_SEGWIT};
157+
constexpr OutputType DEFAULT_ADDRESS_TYPE{OutputType::LEGACY};
157158

158159
//! Default for -changetype
159-
constexpr OutputType DEFAULT_CHANGE_TYPE{OutputType::CHANGE_AUTO};
160+
//constexpr OutputType DEFAULT_CHANGE_TYPE{OutputType::CHANGE_AUTO};
161+
constexpr OutputType DEFAULT_CHANGE_TYPE{OutputType::LEGACY};
160162

161163
enum WalletFlags : uint64_t {
162164
// wallet flags in the upper section (> 1 << 31) will lead to not opening the wallet if flag is unknown

0 commit comments

Comments
 (0)