Skip to content

Commit 6bfe6e6

Browse files
Merge branch 'develop' of https://github.com/dashpay/dash into develop
2 parents 9ebe474 + a1c3afb commit 6bfe6e6

Some content is hidden

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

76 files changed

+940
-420
lines changed

contrib/containers/ci/ci-slim.Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Builder for cppcheck
22
FROM debian:bookworm-slim AS cppcheck-builder
3-
ARG CPPCHECK_VERSION=2.13.0
3+
ARG CPPCHECK_VERSION=2.17.1
44
RUN set -ex; \
55
apt-get update && apt-get install -y --no-install-recommends \
66
curl \

contrib/devtools/circular-dependencies.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55

66
import sys
77
import re
8-
from multiprocess import Pool
8+
from multiprocess import Pool # type: ignore[import]
99
from typing import Dict, List, Set
1010

1111
MAPPING = {

contrib/devtools/optimize-pngs.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,8 @@
1010
import sys
1111
import subprocess
1212
import hashlib
13-
from PIL import Image # pip3 install Pillow
13+
# pip3 install Pillow
14+
from PIL import Image # type: ignore[import]
1415

1516
def file_hash(filename):
1617
'''Return hash of raw file contents'''

doc/design/libraries.md

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ Note: libbitcoin_kernel is a subject to be backported & dashified.
3737

3838
```mermaid
3939
40-
%%{ init : { "flowchart" : { "curve" : "linear" }}}%%
40+
%%{ init : { "flowchart" : { "curve" : "basis" }}}%%
4141
4242
graph TD;
4343
@@ -53,18 +53,19 @@ dash-qt[dash-qt]-->libbitcoin_wallet;
5353
dash-wallet[dash-wallet]-->libbitcoin_wallet;
5454
dash-wallet[dash-wallet]-->libbitcoin_wallet_tool;
5555
56-
libbitcoin_cli-->libbitcoin_common;
5756
libbitcoin_cli-->libbitcoin_util;
57+
libbitcoin_cli-->libbitcoin_common;
5858
59-
libbitcoin_common-->libbitcoin_util;
6059
libbitcoin_common-->libdash_consensus;
60+
libbitcoin_common-->libbitcoin_util;
6161
6262
libbitcoin_kernel-->libdash_consensus;
6363
libbitcoin_kernel-->libbitcoin_util;
6464
65-
libbitcoin_node-->libbitcoin_common;
6665
libbitcoin_node-->libdash_consensus;
66+
libbitcoin_node-->libbitcoin_common;
6767
libbitcoin_node-->libbitcoin_kernel;
68+
libbitcoin_node-->libbitcoin_common;
6869
libbitcoin_node-->libbitcoin_util;
6970
7071
libbitcoinqt-->libbitcoin_common;
@@ -73,8 +74,8 @@ libbitcoinqt-->libbitcoin_util;
7374
libbitcoin_wallet-->libbitcoin_common;
7475
libbitcoin_wallet-->libbitcoin_util;
7576
76-
libbitcoin_wallet_tool-->libbitcoin_util;
7777
libbitcoin_wallet_tool-->libbitcoin_wallet;
78+
libbitcoin_wallet_tool-->libbitcoin_util;
7879
7980
classDef bold stroke-width:2px, font-weight:bold, font-size: smaller;
8081
class dash-qt,dashd,dash-cli,dash-wallet bold

src/Makefile.am

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1090,6 +1090,7 @@ dash_tx_LDADD += $(BACKTRACE_LIBS) $(GMP_LIBS)
10901090

10911091
# dash-wallet binary #
10921092
dash_wallet_SOURCES = bitcoin-wallet.cpp
1093+
dash_wallet_SOURCES += init/bitcoin-wallet.cpp
10931094
dash_wallet_CPPFLAGS = $(bitcoin_bin_cppflags)
10941095
dash_wallet_CXXFLAGS = $(bitcoin_bin_cxxflags)
10951096
dash_wallet_LDFLAGS = $(bitcoin_bin_ldflags)

src/Makefile.qt.include

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -424,15 +424,15 @@ bitcoin_qt_libtoolflags = $(AM_LIBTOOLFLAGS) --tag CXX
424424

425425
qt_dash_qt_CPPFLAGS = $(bitcoin_qt_cppflags)
426426
qt_dash_qt_CXXFLAGS = $(bitcoin_qt_cxxflags)
427-
qt_dash_qt_SOURCES = $(bitcoin_qt_sources) init/bitcoind.cpp
427+
qt_dash_qt_SOURCES = $(bitcoin_qt_sources) init/bitcoin-qt.cpp
428428
qt_dash_qt_LDADD = $(bitcoin_qt_ldadd)
429429
qt_dash_qt_LDFLAGS = $(bitcoin_qt_ldflags)
430430
qt_dash_qt_LIBTOOLFLAGS = $(bitcoin_qt_libtoolflags)
431431

432432
dash_gui_CPPFLAGS = $(bitcoin_qt_cppflags)
433433
dash_gui_CXXFLAGS = $(bitcoin_qt_cxxflags)
434-
dash_gui_SOURCES = $(bitcoin_qt_sources) init/bitcoind.cpp
435-
dash_gui_LDADD = $(bitcoin_qt_ldadd)
434+
dash_gui_SOURCES = $(bitcoin_qt_sources) init/bitcoin-gui.cpp
435+
dash_gui_LDADD = $(bitcoin_qt_ldadd) $(LIBBITCOIN_IPC) $(LIBBITCOIN_UTIL) $(LIBMULTIPROCESS_LIBS)
436436
dash_gui_LDFLAGS = $(bitcoin_qt_ldflags)
437437
dash_gui_LIBTOOLFLAGS = $(bitcoin_qt_libtoolflags)
438438

src/Makefile.qttest.include

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ qt_test_test_dash_qt_CPPFLAGS = $(AM_CPPFLAGS) $(BITCOIN_INCLUDES) $(BITCOIN_QT_
3333
$(QT_INCLUDES) $(QT_TEST_INCLUDES) $(BOOST_CPPFLAGS)
3434

3535
qt_test_test_dash_qt_SOURCES = \
36-
init/bitcoind.cpp \
36+
init/bitcoin-qt.cpp \
3737
qt/test/apptests.cpp \
3838
qt/test/optiontests.cpp \
3939
qt/test/rpcnestedtests.cpp \

src/bitcoin-wallet.cpp

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
#include <chainparams.h>
1010
#include <chainparamsbase.h>
1111
#include <compat/compat.h>
12+
#include <interfaces/init.h>
1213
#include <logging.h>
1314
#include <util/strencodings.h>
1415
#include <clientversion.h>
@@ -100,6 +101,13 @@ MAIN_FUNCTION
100101
util::WinCmdLineArgs winArgs;
101102
std::tie(argc, argv) = winArgs.get();
102103
#endif
104+
105+
int exit_status;
106+
std::unique_ptr<interfaces::Init> init = interfaces::MakeWalletInit(argc, argv, exit_status);
107+
if (!init) {
108+
return exit_status;
109+
}
110+
103111
SetupEnvironment();
104112
RandomInit();
105113
try {

src/cachemultimap.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -150,10 +150,10 @@ class CacheMultiMap
150150
if(mit == mapIndex.end()) {
151151
return;
152152
}
153-
it_map_t& mapIt = mit->second;
153+
const it_map_t& mapIt = mit->second;
154154

155-
for(it_map_it it = mapIt.begin(); it != mapIt.end(); ++it) {
156-
listItems.erase(it->second);
155+
for (const auto& it : mapIt) {
156+
listItems.erase(it.second);
157157
}
158158

159159
mapIndex.erase(mit);

src/chainparams.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -855,7 +855,8 @@ class CRegTestParams : public CChainParams {
855855
assert(genesis.hashMerkleRoot == uint256S("0xe0028eb9648db56b1ac77cf090b99048a8007e2bb64b68f092c03c7f56a662c7"));
856856

857857
vFixedSeeds.clear(); //!< Regtest mode doesn't have any fixed seeds.
858-
vSeeds.clear(); //!< Regtest mode doesn't have any DNS seeds.
858+
vSeeds.clear();
859+
vSeeds.emplace_back("dummySeed.invalid.");
859860

860861
fDefaultConsistencyChecks = true;
861862
fRequireStandard = true;

0 commit comments

Comments
 (0)