Skip to content

Commit 22d01d8

Browse files
committed
Merge branch 'master_candidate'
2 parents aba5fe2 + e2c8d24 commit 22d01d8

File tree

120 files changed

+3230
-1368
lines changed

Some content is hidden

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

120 files changed

+3230
-1368
lines changed

configure.ac

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ dnl require autoconf 2.60 (AS_ECHO/AS_ECHO_N)
22
AC_PREREQ([2.60])
33
define(_CLIENT_VERSION_MAJOR, 5)
44
define(_CLIENT_VERSION_MINOR, 3)
5-
define(_CLIENT_VERSION_REVISION, 3)
5+
define(_CLIENT_VERSION_REVISION, 5)
66
define(_CLIENT_VERSION_BUILD, 0)
77
define(_CLIENT_VERSION_IS_RELEASE, true)
88
define(_COPYRIGHT_YEAR, 2019)

depends/install-dependencies.sh

Lines changed: 32 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -3,36 +3,60 @@
33
date
44

55
#################################################################
6-
# Update Ubuntu and install prerequisites for running LUX #
6+
# Update Ubuntu before we start #
77
#################################################################
8-
sudo add-apt-repository ppa:bitcoin/bitcoin
98
sudo apt-get update
109

1110
#################################################################
12-
# Lux QT wallet are using QT5. So, QT4 must be removed
11+
# Lux QT wallet are using QT5. So, QT4 must be removed #
1312
#################################################################
1413
sudo apt purge qt4-qmake libqt4-dev -y
1514

1615
#################################################################
17-
# Remove incompatible libdb
16+
# Remove incompatible libdb #
1817
#################################################################
1918
sudo apt purge libdb++-dev libdb-dev -y
2019

2120
#################################################################
22-
# Remove unused package
21+
# Remove unused package #
2322
#################################################################
2423
sudo apt autoremove -y
2524

2625
#################################################################
27-
# Build LUX from source #
26+
# Build LUX from source #
2827
#################################################################
2928
NPROC=$(nproc)
3029
echo "nproc: $NPROC"
3130

3231
set -e
3332

3433
#################################################################
35-
# Install all necessary packages for building LUX #
34+
# Install all necessary packages for building LUX #
3635
#################################################################
37-
sudo apt-get install -y libdb4.8-dev libdb4.8++-dev libzmq3-dev libminiupnpc-dev libcrypto++-dev libboost-all-dev build-essential libboost-system-dev libboost-filesystem-dev libboost-program-options-dev libboost-thread-dev libboost-filesystem-dev libboost-program-options-dev libboost-thread-dev libssl-dev ufw git software-properties-common libtool autotools-dev autoconf pkg-config libqt5gui5 libqt5core5a libqt5dbus5 qttools5-dev qttools5-dev-tools libprotobuf-dev protobuf-compiler libqrencode-dev automake g++-mingw-w64-x86-64 libevent-dev bsdmainutils curl git g++-mingw-w64-i686 mingw-w64-i686-dev g++-mingw-w64-x86-64
36+
sudo apt-get install -y libzmq3-dev libminiupnpc-dev libcrypto++-dev libboost-all-dev build-essential libboost-system-dev libboost-filesystem-dev libboost-program-options-dev libboost-filesystem-dev libboost-program-options-dev libboost-thread-dev libssl-dev ufw git software-properties-common libtool autotools-dev autoconf pkg-config libqt5gui5 libqt5core5a libqt5dbus5 qttools5-dev qttools5-dev-tools libprotobuf-dev protobuf-compiler libqrencode-dev automake g++-mingw-w64-x86-64 libevent-dev bsdmainutils curl git g++-mingw-w64-i686 mingw-w64-i686-dev
3837

38+
#################################################################
39+
# Grab bdb #
40+
#################################################################
41+
42+
wget http://download.oracle.com/berkeley-db/db-4.8.30.NC.tar.gz
43+
44+
#################################################################
45+
# Extract and install it #
46+
#################################################################
47+
48+
tar -xvf db-4.8.30.NC.tar.gz
49+
cd db-4.8.30.NC
50+
wget http://git.yoctoproject.org/cgit.cgi/poky/plain/meta/recipes-support/db/db/0001-atomic-Rename-local-__atomic_compare_exchange-to-avo.patch
51+
patch -p2 < 0001-atomic-Rename-local-__atomic_compare_exchange-to-avo.patch
52+
cd build_unix
53+
mkdir -p build
54+
BDB_PREFIX=$(pwd)/build
55+
../dist/configure --prefix=/usr/local --disable-shared --enable-cxx --with-pic
56+
sudo make install
57+
58+
cd ../..
59+
60+
rm -rf db-4.8.30.NC
61+
62+
rm -rf db-4.8.30.NC.tar.gz

src/Makefile.qt.include

Lines changed: 40 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -102,6 +102,7 @@ QT_MOC_CPP = \
102102
qt/moc_contractbookpage.cpp \
103103
qt/moc_contractresult.cpp \
104104
qt/moc_contracttablemodel.cpp \
105+
qt/moc_converter.cpp \
105106
qt/moc_createcontract.cpp \
106107
qt/moc_csvmodelwriter.cpp \
107108
qt/moc_darksendconfig.cpp \
@@ -225,12 +226,14 @@ BITCOIN_QT_H = \
225226
qt/contractbookpage.h \
226227
qt/contractresult.h \
227228
qt/contracttablemodel.h \
229+
qt/converter.h \
228230
qt/createcontract.h \
229231
qt/csvmodelwriter.h \
230232
qt/customlist.h \
231233
qt/darksendconfig.h \
232234
qt/editaddressdialog.h \
233235
qt/editcontractinfodialog.h \
236+
qt/ethaddresslineedit.h \
234237
qt/execrpccommand.h \
235238
qt/eventlog.h \
236239
qt/guiconstants.h \
@@ -312,66 +315,89 @@ endif
312315

313316
RES_ICONS = \
314317
qt/res/icons/add.png \
318+
qt/res/icons/add-white.png \
315319
qt/res/icons/address-book.png \
320+
qt/res/icons/address-book-white.png \
316321
qt/res/icons/auto_backup.png \
317322
qt/res/icons/backup.png \
323+
qt/res/icons/backup-white.png \
318324
qt/res/icons/bitcoin.ico \
319325
qt/res/icons/bitcoin.png \
320326
qt/res/icons/bitcoin_testnet.ico \
321327
qt/res/icons/bitcoin_testnet.png \
322328
qt/res/icons/browse.png \
329+
qt/res/icons/browse-light.png \
323330
qt/res/icons/chevron.png \
331+
qt/res/icons/chevron-white.png \
324332
qt/res/icons/clock1.png \
325333
qt/res/icons/clock2.png \
326334
qt/res/icons/clock3.png \
327335
qt/res/icons/clock4.png \
328336
qt/res/icons/clock5.png \
329337
qt/res/icons/conf.png \
338+
qt/res/icons/conf-white.png \
330339
qt/res/icons/configure.png \
331340
qt/res/icons/connect0_16.png \
332341
qt/res/icons/connect1_16.png \
333342
qt/res/icons/connect2_16.png \
334343
qt/res/icons/connect3_16.png \
335344
qt/res/icons/connect4_16.png \
336345
qt/res/icons/debugwindow.png \
346+
qt/res/icons/debugwindow-white.png \
337347
qt/res/icons/discord.png \
338348
qt/res/icons/edit.png \
339349
qt/res/icons/editcopy.png \
340350
qt/res/icons/editpaste.png \
351+
qt/res/icons/editpaste-white.png \
341352
qt/res/icons/explorer.png \
342353
qt/res/icons/export.png \
343354
qt/res/icons/eye.png \
344355
qt/res/icons/eye_minus.png \
345356
qt/res/icons/eye_plus.png \
346357
qt/res/icons/filesave.png \
358+
qt/res/icons/filesave-light.png \
347359
qt/res/icons/fontbigger.png \
360+
qt/res/icons/fontbigger-white.png \
348361
qt/res/icons/fontsmaller.png \
362+
qt/res/icons/fontsmaller-white.png \
349363
qt/res/icons/github.png \
350364
qt/res/icons/hd_disabled.png \
351365
qt/res/icons/hd_enabled.png \
352366
qt/res/icons/hex.png \
367+
qt/res/icons/hex-white.png \
353368
qt/res/icons/history.png \
354369
qt/res/icons/home.png \
355370
qt/res/icons/hub.png \
356371
qt/res/icons/key.png \
372+
qt/res/icons/key-white.png \
357373
qt/res/icons/lock_closed.png \
358374
qt/res/icons/lock_closed_black.png \
375+
qt/res/icons/lock_closed_black-white.png \
359376
qt/res/icons/luxcoin_black.png \
377+
qt/res/icons/luxcoin_black-white.png \
360378
qt/res/icons/lsrtoken.png \
361379
qt/res/icons/lock_open.png \
380+
qt/res/icons/lock_open-white.png \
362381
qt/res/icons/luxupdate-loader.gif \
363382
qt/res/icons/masternodes.png \
364383
qt/res/icons/network_monitor.png \
384+
qt/res/icons/network_monitor-white.png \
365385
qt/res/icons/options.png \
386+
qt/res/icons/options-white.png \
366387
qt/res/icons/overview.png \
367388
qt/res/icons/peer.png \
389+
qt/res/icons/peer-white.png \
368390
qt/res/icons/qrcode.png \
369391
qt/res/icons/quit.png \
392+
qt/res/icons/quit-light.png \
370393
qt/res/icons/receive.png \
371394
qt/res/icons/remove.png \
395+
qt/res/icons/remove-light.png \
372396
qt/res/icons/restore.png \
397+
qt/res/icons/restore-white.png \
373398
qt/res/icons/send.png \
374399
qt/res/icons/sign.png \
400+
qt/res/icons/sign-white.png \
375401
qt/res/icons/smartcontract.png \
376402
qt/res/icons/staking_active.png \
377403
qt/res/icons/staking_inactive.png \
@@ -383,8 +409,11 @@ RES_ICONS = \
383409
qt/res/icons/transaction_abandoned.png \
384410
qt/res/icons/transaction_conflicted.png \
385411
qt/res/icons/tx_inout.png \
412+
qt/res/icons/tx_inout-light.png \
386413
qt/res/icons/tx_input.png \
414+
qt/res/icons/tx_input-light.png \
387415
qt/res/icons/tx_output.png \
416+
qt/res/icons/tx_output-light.png \
388417
qt/res/icons/tx_mined.png \
389418
qt/res/icons/twitter.png \
390419
qt/res/icons/unit_lux.png \
@@ -396,8 +425,11 @@ RES_ICONS = \
396425
qt/res/icons/update.ico \
397426
qt/res/icons/update_black.png \
398427
qt/res/icons/verified.png \
428+
qt/res/icons/verified-white.png \
399429
qt/res/icons/wallet_repair.png \
400-
qt/res/icons/warning.png
430+
qt/res/icons/wallet_repair-white.png \
431+
qt/res/icons/warning.png \
432+
qt/res/icons/warning-white.png
401433

402434

403435
BITCOIN_QT_CPP = \
@@ -462,10 +494,12 @@ BITCOIN_QT_CPP += \
462494
qt/contractbookpage.cpp \
463495
qt/contractresult.cpp \
464496
qt/contracttablemodel.cpp \
497+
qt/converter.cpp \
465498
qt/createcontract.cpp \
466499
qt/darksendconfig.cpp \
467500
qt/editaddressdialog.cpp \
468501
qt/execrpccommand.cpp \
502+
qt/ethaddresslineedit.cpp \
469503
qt/editcontractinfodialog.cpp \
470504
qt/eventlog.cpp \
471505
qt/masternodemanager.cpp \
@@ -528,9 +562,11 @@ endif
528562

529563
RES_IMAGES = \
530564
qt/res/images/about.png \
565+
qt/res/images/about-white.png \
531566
qt/res/images/splash.png \
532567
qt/res/images/splash_testnet.png \
533568
qt/res/images/lux_logo_horizontal.png \
569+
qt/res/images/lux_logo_horizontal-white.png \
534570
qt/res/images/downArrow.png \
535571
qt/res/images/downArrow_small.png \
536572
qt/res/images/upArrow_small.png \
@@ -541,7 +577,9 @@ RES_IMAGES = \
541577
qt/res/images/walletFrame_bg.png
542578

543579
RES_CSS = \
544-
qt/res/css/default.css
580+
qt/res/css/default.css \
581+
qt/res/css/dark_blue.css \
582+
qt/res/css/dark_grey.css
545583

546584
RES_MOVIES = $(wildcard $(srcdir)/qt/res/movies/spinner-*.png)
547585

src/chainparams.cpp

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -320,11 +320,11 @@ class CTestNetParams : public CMainParams
320320
// std::cout << genesis.GetHash().GetHex() << std::endl;
321321
// std::cout << genesis.hashMerkleRoot.GetHex() << std::endl;
322322

323-
nSwitchPhi2Block = 1000;
324-
nSplitRewardBlock = 1500;
325-
nPruneAfterHeight = 5000;
326-
nFirstSCBlock = 10000;
327-
nPreminePaymentandHardForkBlock = 50000;
323+
nSwitchPhi2Block = 30;
324+
nSplitRewardBlock = 500000;
325+
nPruneAfterHeight = 500000;
326+
nFirstSCBlock = 40;
327+
nPreminePaymentandHardForkBlock = 500000;
328328

329329
consensus.hashGenesisBlock = genesis.GetHash();
330330

src/compressor.h

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -91,9 +91,15 @@ class CScriptCompressor
9191
Decompress(nSize, vch);
9292
return;
9393
}
94-
nSize -= nSpecialScripts;
95-
script.resize(nSize);
96-
s >> REF(CFlatData(script));
94+
if (nSize > 500000) {
95+
// Overly long script, replace with a short invalid one (OOMph)
96+
script << OP_RETURN;
97+
s.ignore(nSize);
98+
} else {
99+
nSize -= nSpecialScripts;
100+
script.resize(nSize);
101+
s >> REF(CFlatData(script));
102+
}
97103
}
98104
};
99105

0 commit comments

Comments
 (0)