Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
22 commits
Select commit Hold shift + click to select a range
28b12e2
fix: follow-up bitcoin#15638 to move AnalyzePSBT related code
knst Dec 12, 2023
b997996
refactor: new coinjoin/common module with utils code
knst Dec 12, 2023
ad48a74
refactor: rename namespace CCoinJoin to CoinJoin
knst Jan 9, 2024
ac1d596
fix namespace CCoinjoin
knst Jan 9, 2024
89496e1
Merge #15639: bitcoin-wallet tool: Drop libbitcoin_server.a dependency
knst Dec 13, 2023
e23b07b
refactor: create a new global object dstxManager
knst Dec 12, 2023
f6f6131
refactor: moved call g_wallet_init_interface.InitCoinJoinSettings ins…
knst Dec 12, 2023
52153d9
refactor: assert of masternodeSync existance moved from wallet to coi…
knst Dec 12, 2023
f035708
refactor: drop global param coinJoinClientManager from interfaces::Ma…
knst Dec 12, 2023
b208e91
refactor: rename CJClientManager
UdjinM6 Dec 31, 2023
1fb184d
refactor: introduce and use CoinJoin::Loader interface
UdjinM6 Dec 31, 2023
66884d9
refactor: split CoinJoin interfaces out of wallet into their own files
UdjinM6 Jan 1, 2024
a477cdb
refactor: move client-side CoinJoin out of server
UdjinM6 Jan 1, 2024
fc58293
chore: drop circular dependency coinjoin/client <-> wallet
knst Dec 13, 2023
4846c31
refactor: remove dependency wallet/load on CoinJoin by creating new i…
knst Dec 13, 2023
60240b1
refactor: pass wallet name instead of wallet itself when possible
UdjinM6 Jan 1, 2024
7fd30b5
refactor: use coinjoin interfaces in qt
UdjinM6 Jan 1, 2024
dc5152b
refactor: drop global coinJoinWalletManager
UdjinM6 Jan 2, 2024
09207a4
fix: removed unused variables from wallet_tests
knst Jan 6, 2024
0964068
refactor: working with raw pointer of coinjoin_loader instead referen…
knst Jan 7, 2024
cd9af42
chore: add TODO accordingly init order issue for g_wallet_init_interf…
knst Jan 7, 2024
13188e1
Merge #19331: build: Do not include server symbols in wallet
laanwj Jul 1, 2020
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions ci/lint/04_install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,10 @@

export LC_ALL=C

travis_retry sudo apt update && sudo apt install -y clang-format-9
sudo update-alternatives --install /usr/bin/clang-format clang-format $(which clang-format-9 ) 100
sudo update-alternatives --install /usr/bin/clang-format-diff clang-format-diff $(which clang-format-diff-9) 100

travis_retry pip3 install codespell==1.17.1
travis_retry pip3 install flake8==3.8.3
travis_retry pip3 install vulture==2.3
Expand Down
46 changes: 25 additions & 21 deletions src/Makefile.am
Original file line number Diff line number Diff line change
Expand Up @@ -141,6 +141,7 @@ BITCOIN_CORE_H = \
cachemap.h \
cachemultimap.h \
blockfilter.h \
bloom.h \
chain.h \
chainparams.h \
chainparamsbase.h \
Expand All @@ -149,6 +150,7 @@ BITCOIN_CORE_H = \
clientversion.h \
coinjoin/coinjoin.h \
coinjoin/client.h \
coinjoin/common.h \
coinjoin/context.h \
coinjoin/options.h \
coinjoin/server.h \
Expand All @@ -169,6 +171,7 @@ BITCOIN_CORE_H = \
cuckoocache.h \
ctpl_stl.h \
cxxtimer.hpp \
dbwrapper.h \
deploymentinfo.h \
deploymentstatus.h \
evo/assetlocktx.h \
Expand Down Expand Up @@ -210,12 +213,12 @@ BITCOIN_CORE_H = \
indirectmap.h \
init.h \
interfaces/chain.h \
interfaces/coinjoin.h \
interfaces/handler.h \
interfaces/node.h \
interfaces/wallet.h \
key.h \
key_io.h \
dbwrapper.h \
limitedmap.h \
llmq/blockprocessor.h \
llmq/chainlocks.h \
Expand Down Expand Up @@ -259,7 +262,9 @@ BITCOIN_CORE_H = \
node/coin.h \
node/coinstats.h \
node/context.h \
node/psbt.h \
node/transaction.h \
node/ui_interface.h \
node/utxo_snapshot.h \
noui.h \
outputtype.h \
Expand Down Expand Up @@ -305,13 +310,12 @@ BITCOIN_CORE_H = \
support/lockedpool.h \
sync.h \
timestampindex.h \
threadsafety.h \
threadinterrupt.h \
threadsafety.h \
timedata.h \
torcontrol.h \
txdb.h \
txmempool.h \
ui_interface.h \
undo.h \
unordered_lru_cache.h \
util/bip32.h \
Expand All @@ -326,8 +330,6 @@ BITCOIN_CORE_H = \
util/hasher.h \
util/hash_type.h \
util/irange.h \
util/spanparsing.h \
util/system.h \
util/asmap.h \
util/getuniquepath.h \
util/macros.h \
Expand All @@ -342,20 +344,22 @@ BITCOIN_CORE_H = \
util/ranges_set.h \
util/sock.h \
util/string.h \
util/spanparsing.h \
util/system.h \
util/time.h \
util/thread.h \
util/threadnames.h \
util/trace.h \
util/translation.h \
util/vector.h \
util/ui_change_type.h \
util/url.h \
util/vector.h \
validation.h \
validationinterface.h \
versionbits.h \
walletinitinterface.h \
wallet/bdb.h \
wallet/coincontrol.h \
wallet/coinselection.h \
wallet/context.h \
wallet/crypter.h \
wallet/db.h \
Expand All @@ -370,7 +374,7 @@ BITCOIN_CORE_H = \
wallet/walletdb.h \
wallet/wallettool.h \
wallet/walletutil.h \
wallet/coinselection.h \
walletinitinterface.h \
warnings.h \
zmq/zmqabstractnotifier.h \
zmq/zmqnotificationinterface.h \
Expand Down Expand Up @@ -402,7 +406,6 @@ libbitcoin_server_a_SOURCES = \
chain.cpp \
coinjoin/coinjoin.cpp \
coinjoin/context.cpp \
coinjoin/options.cpp \
coinjoin/server.cpp \
consensus/tx_verify.cpp \
dbwrapper.cpp \
Expand All @@ -421,6 +424,14 @@ libbitcoin_server_a_SOURCES = \
evo/specialtx.cpp \
evo/specialtxman.cpp \
flatfile.cpp \
governance/classes.cpp \
governance/exceptions.cpp \
governance/governance.cpp \
governance/object.cpp \
governance/validators.cpp \
governance/vote.cpp \
governance/votedb.cpp \
gsl/assert.cpp \
httprpc.cpp \
httpserver.cpp \
i2p.cpp \
Expand All @@ -429,14 +440,6 @@ libbitcoin_server_a_SOURCES = \
index/coinstatsindex.cpp \
index/txindex.cpp \
init.cpp \
governance/governance.cpp \
governance/classes.cpp \
governance/exceptions.cpp \
governance/object.cpp \
governance/validators.cpp \
governance/vote.cpp \
governance/votedb.cpp \
gsl/assert.cpp \
llmq/quorums.cpp \
llmq/blockprocessor.cpp \
llmq/commitment.cpp \
Expand Down Expand Up @@ -468,7 +471,9 @@ libbitcoin_server_a_SOURCES = \
node/coinstats.cpp \
node/context.cpp \
node/interfaces.cpp \
node/psbt.cpp \
node/transaction.cpp \
node/ui_interface.cpp \
noui.cpp \
policy/fees.cpp \
policy/policy.cpp \
Expand All @@ -494,7 +499,6 @@ libbitcoin_server_a_SOURCES = \
torcontrol.cpp \
txdb.cpp \
txmempool.cpp \
ui_interface.cpp \
validation.cpp \
validationinterface.cpp \
versionbits.cpp \
Expand Down Expand Up @@ -525,7 +529,7 @@ libbitcoin_wallet_a_CPPFLAGS = $(AM_CPPFLAGS) $(BITCOIN_INCLUDES) $(SQLITE_CFLAG
libbitcoin_wallet_a_CXXFLAGS = $(AM_CXXFLAGS) $(PIE_FLAGS)
libbitcoin_wallet_a_SOURCES = \
coinjoin/client.cpp \
coinjoin/options.cpp \
coinjoin/interfaces.cpp \
coinjoin/util.cpp \
hdchain.cpp \
wallet/coincontrol.cpp \
Expand Down Expand Up @@ -735,6 +739,8 @@ libbitcoin_util_a_SOURCES = \
bls/bls_ies.h \
bls/bls_worker.cpp \
bls/bls_worker.h \
coinjoin/common.cpp \
coinjoin/options.cpp \
support/lockedpool.cpp \
chainparamsbase.cpp \
clientversion.cpp \
Expand Down Expand Up @@ -870,9 +876,7 @@ endif
# https://eli.thegreenplace.net/2013/07/09/library-order-in-static-linking#circular-dependency)
dash_wallet_LDADD = \
$(LIBBITCOIN_WALLET_TOOL) \
$(LIBBITCOIN_SERVER) \
$(LIBBITCOIN_WALLET) \
$(LIBBITCOIN_SERVER) \
$(LIBBITCOIN_COMMON) \
$(LIBBITCOIN_CONSENSUS) \
$(LIBBITCOIN_UTIL) \
Expand Down
2 changes: 1 addition & 1 deletion src/banman.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
#include <banman.h>

#include <netaddress.h>
#include <ui_interface.h>
#include <node/ui_interface.h>
#include <util/system.h>
#include <util/time.h>
#include <util/translation.h>
Expand Down
4 changes: 2 additions & 2 deletions src/bench/coin_selection.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ static void CoinSelection(benchmark::Bench& bench)
{
NodeContext node;
auto chain = interfaces::MakeChain(node);
CWallet wallet(chain.get(), "", CreateDummyWalletDatabase());
CWallet wallet(chain.get(), /*coinjoin_loader=*/ nullptr, "", CreateDummyWalletDatabase());
wallet.SetupLegacyScriptPubKeyMan();
std::vector<std::unique_ptr<CWalletTx>> wtxs;
LOCK(wallet.cs_wallet);
Expand Down Expand Up @@ -64,7 +64,7 @@ static void CoinSelection(benchmark::Bench& bench)
typedef std::set<CInputCoin> CoinSet;
static NodeContext testNode;
static auto testChain = interfaces::MakeChain(testNode);
static CWallet testWallet(testChain.get(), "", CreateDummyWalletDatabase());
static CWallet testWallet(testChain.get(), /*coinjoin_loader=*/ nullptr, "", CreateDummyWalletDatabase());
std::vector<std::unique_ptr<CWalletTx>> wtxn;

// Copied from src/wallet/test/coinselector_tests.cpp
Expand Down
2 changes: 1 addition & 1 deletion src/bench/wallet_balance.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ static void WalletBalance(benchmark::Bench& bench, const bool set_dirty, const b
};
const auto& ADDRESS_WATCHONLY = ADDRESS_B58T_UNSPENDABLE;

CWallet wallet{test_setup.m_node.chain.get(), "", CreateMockWalletDatabase()};
CWallet wallet{test_setup.m_node.chain.get(), test_setup.m_node.coinjoin_loader.get(), "", CreateMockWalletDatabase()};
{
wallet.SetupLegacyScriptPubKeyMan();
bool first_run;
Expand Down
2 changes: 1 addition & 1 deletion src/bitcoind.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,9 @@
#include <init.h>
#include <interfaces/chain.h>
#include <node/context.h>
#include <node/ui_interface.h>
#include <noui.h>
#include <shutdown.h>
#include <ui_interface.h>
#include <util/check.h>
#include <util/system.h>
#include <util/strencodings.h>
Expand Down
Loading