Skip to content

Commit 6fb5948

Browse files
authored
Merge pull request #48 from vgulkevic/master
1.0.3.4
2 parents 9e09f78 + 3ebdac8 commit 6fb5948

22 files changed

Lines changed: 62 additions & 621 deletions

DigitalNote.pro

Lines changed: 6 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
TEMPLATE = app
22
TARGET = DigitalNote-qt
3-
VERSION = 1.0.3.3
3+
VERSION = 1.0.3.4
44
INCLUDEPATH += src src/json src/qt src/qt/plugins/mrichtexteditor
55
QT += core gui widgets network printsupport
66
DEFINES += ENABLE_WALLET
@@ -51,11 +51,11 @@ UI_DIR = build
5151

5252
# use: qmake "RELEASE=1"
5353
contains(RELEASE, 1) {
54-
# Mac: compile for maximum compatibility (10.12, 64-bit)
55-
macx:QMAKE_CXXFLAGS += -mmacosx-version-min=10.12 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.12.sdk
56-
macx:QMAKE_CFLAGS += -mmacosx-version-min=10.12 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.12.sdk
57-
macx:QMAKE_LFLAGS += -mmacosx-version-min=10.12 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.12.sdk
58-
macx:QMAKE_OBJECTIVE_CFLAGS += -mmacosx-version-min=10.12 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.12.sdk
54+
# Mac: compile for maximum compatibility (10.15, 64-bit)
55+
macx:QMAKE_CXXFLAGS += -mmacosx-version-min=10.13 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk
56+
macx:QMAKE_CFLAGS += -mmacosx-version-min=10.13 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk
57+
macx:QMAKE_LFLAGS += -mmacosx-version-min=10.13 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk
58+
macx:QMAKE_OBJECTIVE_CFLAGS += -mmacosx-version-min=10.13 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk
5959

6060

6161
!windows:!macx {
@@ -333,7 +333,6 @@ HEADERS += src/qt/bitcoingui.h \
333333
src/qt/sendmessagesdialog.h \
334334
src/qt/sendmessagesentry.h \
335335
src/qt/blockbrowser.h \
336-
src/qt/airdroppage.h \
337336
src/qt/plugins/mrichtexteditor/mrichtextedit.h \
338337
src/qt/qvalidatedtextedit.h \
339338
src/crypto/common/sph_bmw.h \
@@ -457,7 +456,6 @@ SOURCES += src/qt/bitcoin.cpp src/qt/bitcoingui.cpp \
457456
src/qt/sendmessagesdialog.cpp \
458457
src/qt/sendmessagesentry.cpp \
459458
src/qt/blockbrowser.cpp \
460-
src/qt/airdroppage.cpp \
461459
src/qt/qvalidatedtextedit.cpp \
462460
src/qt/plugins/mrichtexteditor/mrichtextedit.cpp \
463461
src/rpcsmessage.cpp \
@@ -490,7 +488,6 @@ FORMS += \
490488
src/qt/forms/sendmessagesentry.ui \
491489
src/qt/forms/sendmessagesdialog.ui \
492490
src/qt/forms/blockbrowser.ui \
493-
src/qt/forms/airdroppage.ui \
494491
src/qt/plugins/mrichtexteditor/mrichtextedit.ui
495492

496493
contains(USE_QRCODE, 1) {

README.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,9 @@ General Specs
5050
Port: 18092
5151
RPC Port: 18094
5252

53+
BUILD MacOS
54+
-----------
55+
See /docs/build-osx.md
5356

5457
BUILD LINUX
5558
-----------

doc/build-osx.md

Lines changed: 5 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -1,34 +1,14 @@
1-
Copyright (c) 2009-2012 Bitcoin Developers
2-
Distributed under the MIT/X11 software license, see the accompanying file
3-
license.txt or http://www.opensource.org/licenses/mit-license.php. This
4-
product includes software developed by the OpenSSL Project for use in the
5-
OpenSSL Toolkit (http://www.openssl.org/). This product includes cryptographic
6-
software written by Eric Young (eay@cryptsoft.com) and UPnP software written by
7-
Thomas Bernard.
1+
Mac OS X DigitalNoted build instructions vgulkevic. Find me on Discord if you have any issues - https://discordapp.com/invite/4dUquty
82

9-
10-
Mac OS X DigitalNoted build instructions
11-
Laszlo Hanyecz <solar@heliacal.net>
12-
Douglas Huff <dhuff@jrbobdobbs.org>
13-
14-
15-
See readme-qt.rst for instructions on building DigitalNote QT, the
16-
graphical user interface.
17-
18-
- Tested on 10.5 and 10.6 intel and 10.15.2.
19-
- PPC is not supported because it's big-endian.
20-
21-
All of the commands should be executed in Terminal.app.. it's in
22-
/Applications/Utilities
3+
- Tested on 10.15.7.
234

245
You need to install XCode with all the options checked so that the compiler and
256
everything is available in /usr not just /Developer
267
You can get the current version from http://developer.apple.com
278

28-
299
1. Clone the github tree to get the source code
3010

31-
```git clone http://github.com/DigitalNotedev/DigitalNote DigitalNote```
11+
```git clone https://github.com/CryptoCoderz/DigitalNote DigitalNote```
3212

3313
2. Install dependencies using Homebrew
3414
1. Install dependencies:
@@ -89,10 +69,10 @@ You can get the current version from http://developer.apple.com
8969
```
9070
5. Check the versions of dependencies in src/makefile.osx and amend to match yours if required
9171
92-
3. Now you should be able to build DigitalNoted:
72+
3. Now you should be able to build DigitalNoted. Either use makefile to build daemon only or see the Step 3 of the section below (DigitalNote-qt: Qt5 GUI Release for DigitalNote) that uses .pro file:
9373
9474
```
95-
cd DigitalNote-2/src
75+
cd DigitalNote/src
9676
make -f makefile.osx
9777
```
9878

src/bignum.h

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,10 @@
1010
#include "uint256.h"
1111
#include "version.h"
1212

13+
#ifdef WIN32
14+
#include <windows.h>
15+
#endif
16+
1317
#include <openssl/bn.h>
1418

1519
#include <stdexcept>

src/clientversion.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
#define CLIENT_VERSION_MAJOR 1
1010
#define CLIENT_VERSION_MINOR 0
1111
#define CLIENT_VERSION_REVISION 3
12-
#define CLIENT_VERSION_BUILD 3
12+
#define CLIENT_VERSION_BUILD 4
1313

1414
// Set to true for release, false for prerelease or test build
1515
#define CLIENT_VERSION_IS_RELEASE true

src/init.cpp

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -565,7 +565,6 @@ bool AppInit2(boost::thread_group& threadGroup)
565565
// ********************************************************* Step 5: Backup wallet and verify wallet database integrity
566566
#ifdef ENABLE_WALLET
567567
if (!fDisableWallet) {
568-
569568
filesystem::path backupDir = GetDataDir() / "backups";
570569
if (!filesystem::exists(backupDir))
571570
{
@@ -576,19 +575,20 @@ bool AppInit2(boost::thread_group& threadGroup)
576575
nWalletBackups = std::max(0, std::min(10, nWalletBackups));
577576
if(nWalletBackups > 0)
578577
{
579-
if (filesystem::exists(backupDir))
578+
std::string sourcePathStr = GetDataDir().string();
579+
sourcePathStr += "/" + strWalletFileName;
580+
boost::filesystem::path sourceFile = sourcePathStr;
581+
if (filesystem::exists(backupDir) && filesystem::exists(sourceFile))
580582
{
581583
// Create backup of the wallet
582584
std::string dateTimeStr = DateTimeStrFormat(".%Y-%m-%d-%H.%M", GetTime());
583585
std::string backupPathStr = backupDir.string();
584586
backupPathStr += "/" + strWalletFileName;
585-
std::string sourcePathStr = GetDataDir().string();
586-
sourcePathStr += "/" + strWalletFileName;
587-
boost::filesystem::path sourceFile = sourcePathStr;
588587
boost::filesystem::path backupFile = backupPathStr + dateTimeStr;
589588
sourceFile.make_preferred();
590589
backupFile.make_preferred();
591590
try {
591+
LogPrintf("Creating backup of %s -> %s\n", sourceFile, backupFile);
592592
boost::filesystem::copy_file(sourceFile, backupFile);
593593
LogPrintf("Creating backup of %s -> %s\n", sourceFile, backupFile);
594594
} catch(boost::filesystem::filesystem_error &error) {
@@ -845,7 +845,7 @@ bool AppInit2(boost::thread_group& threadGroup)
845845
strRollbackToBlock = GetArg("-backtoblock", "");
846846
LogPrintf("Rolling blocks back...\n");
847847
if(!strRollbackToBlock.empty()){
848-
nNewHeight = GetArg("-backtoblock", (int)"");
848+
nNewHeight = GetArg("-backtoblock", 0);
849849

850850
CBlockIndex* pindex = pindexBest;
851851
while (pindex != NULL && pindex->nHeight > nNewHeight)

src/main.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3767,7 +3767,7 @@ bool static ProcessMessage(CNode* pfrom, string strCommand, CDataStream& vRecv)
37673767
{
37683768
// this is a snapshot node. will only sync until certain block
37693769
if (maxBlockHeight != -1 && pindexBest->nHeight >= maxBlockHeight) {
3770-
return;
3770+
return true;
37713771
}
37723772
RandAddSeedPerfmon();
37733773
LogPrint("net", "received: %s (%u bytes)\n", strCommand, vRecv.size());

src/masternode-payments.cpp

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -157,11 +157,8 @@ bool CMasternodePayments::GetWinningMasternode(int nBlockHeight, CScript& payee,
157157
return false;
158158
}
159159
// Set masternode winner to pay
160-
BOOST_FOREACH(CMasternodePaymentWinner& winner, vWinning){
161-
payee = winner.payee;
162-
vin = winner.vin;
163-
}
164-
// Return true if previous checks pass
160+
payee = winningNode->donationAddress;
161+
vin = winningNode->vin;
165162
return true;
166163
}
167164

src/qt/airdroppage.cpp

Lines changed: 0 additions & 157 deletions
This file was deleted.

0 commit comments

Comments
 (0)