Skip to content

Commit f45c7b2

Browse files
authored
Merge pull request #39 from CryptoCoderz/master
Merge with development branch/repository (smessage updates and upgrades)
2 parents 49aefa6 + 72c0282 commit f45c7b2

101 files changed

Lines changed: 356 additions & 447 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,8 @@ src/build.h
1515
.qmake.stash
1616
Makefile
1717
DigitalNote-qt
18+
DigitalNote-Qt.dmg
19+
DigitalNote-Qt.app
1820
#resources cpp
1921
qrc_*.cpp
2022
#qt creator

DigitalNote.pro

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
TEMPLATE = app
22
TARGET = DigitalNote-qt
3-
VERSION = 1.0.2.6
3+
VERSION = 1.0.3.1
44
INCLUDEPATH += src src/json src/qt src/qt/plugins/mrichtexteditor
55
QT += core gui widgets network printsupport
66
DEFINES += ENABLE_WALLET
@@ -530,26 +530,26 @@ isEmpty(BOOST_THREAD_LIB_SUFFIX) {
530530
}
531531

532532
isEmpty(BDB_LIB_PATH) {
533-
macx:BDB_LIB_PATH = /usr/local/Cellar/berkeley-db4/4.8.30/lib
533+
macx:BDB_LIB_PATH = /usr/local/Cellar/berkeley-db@6.2.32/lib
534534
windows:BDB_LIB_PATH=C:/dev/coindeps32/bdb-4.8/lib
535535
}
536536

537537
isEmpty(BDB_LIB_SUFFIX) {
538-
macx:BDB_LIB_SUFFIX = -4.8
538+
macx:BDB_LIB_SUFFIX = -6.2
539539
}
540540

541541
isEmpty(BDB_INCLUDE_PATH) {
542-
macx:BDB_INCLUDE_PATH = /usr/local/Cellar/berkeley-db4/4.8.30/include
542+
macx:BDB_INCLUDE_PATH = /usr/local/Cellar/berkeley-db@6.2.32/include
543543
windows:BDB_INCLUDE_PATH=C:/dev/coindeps32/bdb-4.8/include
544544
}
545545

546546
isEmpty(BOOST_LIB_PATH) {
547-
macx:BOOST_LIB_PATH = /usr/local/Cellar/boost/1.59.0/lib
547+
macx:BOOST_LIB_PATH = /usr/local/Cellar/boost@1.59/1.59.0/lib
548548
windows:BOOST_LIB_PATH=C:/dev/coindeps32/boost_1_57_0/lib
549549
}
550550

551551
isEmpty(BOOST_INCLUDE_PATH) {
552-
macx:BOOST_INCLUDE_PATH = /usr/local/Cellar/boost/1.59.0/include
552+
macx:BOOST_INCLUDE_PATH = /usr/local/Cellar/boost@1.59/1.59.0/include
553553
windows:BOOST_INCLUDE_PATH=C:/dev/coindeps32/boost_1_57_0/include
554554
}
555555

@@ -568,22 +568,22 @@ isEmpty(MINIUPNPC_LIB_SUFFIX) {
568568
}
569569

570570
isEmpty(MINIUPNPC_INCLUDE_PATH) {
571-
macx:MINIUPNPC_INCLUDE_PATH=/usr/local/Cellar/miniupnpc/1.9.20151008/include
571+
macx:MINIUPNPC_INCLUDE_PATH= /usr/local/Cellar/miniupnpc/2.1/include
572572
windows:MINIUPNPC_INCLUDE_PATH=C:/dev/coindeps32/miniupnpc-1.9
573573
}
574574

575575
isEmpty(MINIUPNPC_LIB_PATH) {
576-
macx:MINIUPNPC_LIB_PATH=/usr/local/Cellar/miniupnpc/1.9.20151008/lib
576+
macx:MINIUPNPC_LIB_PATH= /usr/local/Cellar/miniupnpc/2.1/lib
577577
windows:MINIUPNPC_LIB_PATH=C:/dev/coindeps32/miniupnpc-1.9
578578
}
579579

580580
isEmpty(OPENSSL_INCLUDE_PATH) {
581-
macx:OPENSSL_INCLUDE_PATH = /usr/local/openssl-1.0.1p/include
581+
macx:OPENSSL_INCLUDE_PATH = /usr/local/Cellar/openssl/1.0.2t/include
582582
windows:OPENSSL_INCLUDE_PATH=C:/dev/coindeps32/openssl-1.0.1p/include
583583
}
584584

585585
isEmpty(OPENSSL_LIB_PATH) {
586-
macx:OPENSSL_LIB_PATH = /usr/local/openssl-1.0.1p/lib
586+
macx:OPENSSL_LIB_PATH = /usr/local/Cellar/openssl/1.0.2t/lib
587587
windows:OPENSSL_LIB_PATH=C:/dev/coindeps32/openssl-1.0.1p/lib
588588
}
589589

@@ -605,7 +605,7 @@ macx:HEADERS += src/qt/macdockiconhandler.h src/qt/macnotificationhandler.h
605605
macx:OBJECTIVE_SOURCES += src/qt/macdockiconhandler.mm src/qt/macnotificationhandler.mm
606606
macx:LIBS += -framework Foundation -framework ApplicationServices -framework AppKit -framework CoreServices
607607
macx:DEFINES += MAC_OSX MSG_NOSIGNAL=0
608-
macx:ICON = src/qt/res/icons/bitcoin.icns
608+
macx:ICON = src/qt/res/icons/digitalnote.icns
609609
macx:TARGET = "DigitalNote-Qt"
610610
macx:QMAKE_CFLAGS_THREAD += -pthread
611611
macx:QMAKE_LFLAGS_THREAD += -pthread

doc/build-osx.md

Lines changed: 107 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -15,40 +15,119 @@ Douglas Huff <dhuff@jrbobdobbs.org>
1515
See readme-qt.rst for instructions on building DigitalNote QT, the
1616
graphical user interface.
1717

18-
Tested on 10.5 and 10.6 intel. PPC is not supported because it's big-endian.
18+
- Tested on 10.5 and 10.6 intel and 10.15.2.
19+
- PPC is not supported because it's big-endian.
1920

2021
All of the commands should be executed in Terminal.app.. it's in
2122
/Applications/Utilities
2223

2324
You need to install XCode with all the options checked so that the compiler and
24-
everything is available in /usr not just /Developer I think it comes on the DVD
25-
but you can get the current version from http://developer.apple.com
26-
27-
28-
1. Clone the github tree to get the source code:
29-
30-
git clone http://github.com/DigitalNotedev/DigitalNote DigitalNote
31-
32-
2. Download and install MacPorts from http://www.macports.org/
33-
34-
2a. (for 10.7 Lion)
35-
Edit /opt/local/etc/macports/macports.conf and uncomment "build_arch i386"
36-
37-
3. Install dependencies from MacPorts
38-
39-
sudo port install boost db48 openssl miniupnpc
40-
41-
Optionally install qrencode (and set USE_QRCODE=1):
42-
sudo port install qrencode
43-
44-
4. Now you should be able to build DigitalNoted:
45-
46-
cd DigitalNote/src
47-
make -f makefile.osx
25+
everything is available in /usr not just /Developer
26+
You can get the current version from http://developer.apple.com
27+
28+
29+
1. Clone the github tree to get the source code
30+
31+
```git clone http://github.com/DigitalNotedev/DigitalNote DigitalNote```
32+
33+
2. Install dependencies using Homebrew
34+
1. Install dependencies:
35+
```
36+
brew install boost@1.59
37+
brew install miniupnpc
38+
brew install https://github.com/tebelorg/Tump/releases/download/v1.0.0/openssl.rb
39+
brew install automake
40+
brew install autoconf
41+
brew install libtool
42+
brew install qrencode
43+
```
44+
2. Install Berkeley-DB@6
45+
Download:
46+
47+
```
48+
curl -OL http://download.oracle.com/berkeley-db/db-6.2.32.tar.gz
49+
```
50+
51+
Unzip:
52+
```
53+
tar -xf db-6.2.32.tar.gz
54+
```
55+
Build:
56+
```
57+
cd db-6.2.32/build_unix &&
58+
../dist/configure --prefix=/usr/local/Cellar/berkeley-db@6.2.32 \
59+
--enable-cxx &&
60+
make
61+
```
62+
63+
If you get compile errors in `atomic.c` you need to apply a small patch and run the 'build' command above again:
64+
```
65+
cd ../..
66+
curl -OL https://raw.githubusercontent.com/macports/macports-ports/cb92cb90bdc7fb90212e928db32172546eca0f5b/databases/db60/files/patch-src_dbinc_atomic.h
67+
mv patch-src_dbinc_atomic.h db-6.2.32
68+
cd db-6.2.32
69+
patch -s -p0 < patch-src_dbinc_atomic.h
70+
cd ..
71+
```
72+
73+
Install:
74+
```
75+
inside db-6.2.32/build_unix folder run:
76+
77+
sudo make install
78+
```
79+
3. You might need to create a symlink if `openssl/sha.h` or any other header from openssl/ folder cannot be found when building DigitalNoted:
80+
```
81+
cd /usr/local/include
82+
ln -s ../opt/openssl/include/openssl .
83+
```
84+
Your compiler will search in this directory (one of many standard directories) and find the header file sha.h via the shortcut link.
85+
4. Now create a symlink to miniupnpc files since it is installed in a folder without a version appended and source files are expecting a version:
86+
```
87+
cd /usr/local/include
88+
ln -s ../opt/miniupnpc/include/miniupnpc ./miniupnpc-2.1
89+
```
90+
5. Check the versions of dependencies in src/makefile.osx and amend to match yours if required
91+
92+
3. Now you should be able to build DigitalNoted:
93+
94+
```
95+
cd DigitalNote-2/src
96+
make -f makefile.osx
97+
```
4898
4999
Run:
50-
./DigitalNoted --help # for a list of command-line options.
100+
`./DigitalNoted --help`
101+
for a list of command-line options.
102+
51103
Run
52-
./DigitalNoted -daemon # to start the DigitalNote daemon.
104+
`./DigitalNoted -daemon`
105+
to start the DigitalNote daemon.
106+
53107
Run
54-
./DigitalNoted help # When the daemon is running, to get a list of RPC commands
108+
`./DigitalNoted help`
109+
When the daemon is running, to get a list of RPC commands
110+
111+
112+
DigitalNote-qt: Qt5 GUI Release for DigitalNote
113+
-----------------------------------------
114+
115+
1. Install dependencies:
116+
```
117+
brew install qrencode
118+
brew install qt5
119+
brew install protobuf
120+
brew install python2.7
121+
sudo easy_install appscript
122+
```
123+
2. Link qt5:
124+
```
125+
brew link qt5 --force
126+
```
127+
3. Run in the ./DigitalNote-2
128+
```
129+
qmake RELEASE=1 USE_UPNP=1 USE_QRCODE=1 DigitalNote.pro
130+
make
131+
python2.7 contrib/macdeploy/macdeployqtplus DigitalNote-Qt.app -add-qt-tr da,de,es,hu,ru,uk,zh_CN,zh_TW -dmg -fancy contrib/macdeploy/fancy.plist
132+
```
133+

src/checkpoints.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@ namespace Checkpoints
3939
(66400, uint256("0x8035935fc3b5e8b58ab023336d6f7f1ec35eac9930cdd238ce35771cd7b3964d"))
4040
(67500, uint256("0x4df36f82141ce789aa64d80908aafca145d09f5257ebb3b7550f94e2624a2d98"))
4141
(68200, uint256("0x000000000005ab4fb2fec8705c51aee6b04ebf51f98bca11e61d7f41bcc51e92"))
42+
(190900, uint256("0x00000000000324d80ae543f7b4882de88a6711c644dfdc596fbaab3225db859e"))
4243
;
4344

4445
// TestNet has no checkpoints

src/clientversion.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@
88
// These need to be macros, as version.cpp's and bitcoin-qt.rc's voodoo requires it
99
#define CLIENT_VERSION_MAJOR 1
1010
#define CLIENT_VERSION_MINOR 0
11-
#define CLIENT_VERSION_REVISION 2
12-
#define CLIENT_VERSION_BUILD 6
11+
#define CLIENT_VERSION_REVISION 3
12+
#define CLIENT_VERSION_BUILD 1
1313

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

src/leveldb/AUTHORS

100644100755
File mode changed.

src/leveldb/CONTRIBUTING.md

100644100755
File mode changed.

src/leveldb/LICENSE

100644100755
File mode changed.

src/leveldb/Makefile

100644100755
File mode changed.

src/leveldb/NEWS

100644100755
File mode changed.

0 commit comments

Comments
 (0)