From f22be5a16bf49afb23421d47b62d830eb9b62c68 Mon Sep 17 00:00:00 2001 From: Kittywhiskers Van Gogh <63189531+kittywhiskers@users.noreply.github.com> Date: Sat, 2 Oct 2021 23:02:24 +0530 Subject: [PATCH] refactor: llmq/quorums_*[cpp/h] --> llmq/*.[cpp/h] --- src/Makefile.am | 48 +++++++-------- src/bloom.cpp | 2 +- src/coinjoin/coinjoin.cpp | 4 +- src/core_write.cpp | 2 +- src/dsnotificationinterface.cpp | 6 +- src/evo/cbtx.cpp | 4 +- src/evo/deterministicmns.cpp | 4 +- src/evo/mnauth.cpp | 2 +- src/evo/simplifiedmns.cpp | 4 +- src/evo/specialtx.cpp | 4 +- src/init.cpp | 8 +-- src/interfaces/node.cpp | 2 +- ..._blockprocessor.cpp => blockprocessor.cpp} | 6 +- ...rums_blockprocessor.h => blockprocessor.h} | 6 +- ...{quorums_chainlocks.cpp => chainlocks.cpp} | 6 +- .../{quorums_chainlocks.h => chainlocks.h} | 8 +-- ...{quorums_commitment.cpp => commitment.cpp} | 2 +- .../{quorums_commitment.h => commitment.h} | 8 +-- src/llmq/{quorums_debug.cpp => debug.cpp} | 4 +- src/llmq/{quorums_debug.h => debug.h} | 6 +- ...{quorums_dkgsession.cpp => dkgsession.cpp} | 8 +-- .../{quorums_dkgsession.h => dkgsession.h} | 8 +-- ...ssionhandler.cpp => dkgsessionhandler.cpp} | 12 ++-- ...kgsessionhandler.h => dkgsessionhandler.h} | 6 +- ...ms_dkgsessionmgr.cpp => dkgsessionmgr.cpp} | 6 +- ...uorums_dkgsessionmgr.h => dkgsessionmgr.h} | 10 +-- src/llmq/{quorums_init.cpp => init.cpp} | 20 +++--- src/llmq/{quorums_init.h => init.h} | 6 +- ...uorums_instantsend.cpp => instantsend.cpp} | 8 +-- .../{quorums_instantsend.h => instantsend.h} | 8 +-- src/llmq/quorums.cpp | 10 +-- src/llmq/{quorums_signing.cpp => signing.cpp} | 8 +-- src/llmq/{quorums_signing.h => signing.h} | 6 +- ..._signing_shares.cpp => signing_shares.cpp} | 8 +-- ...rums_signing_shares.h => signing_shares.h} | 6 +- src/llmq/{quorums_utils.cpp => utils.cpp} | 4 +- src/llmq/{quorums_utils.h => utils.h} | 6 +- src/miner.cpp | 6 +- src/net_processing.cpp | 14 ++--- src/qt/test/rpcnestedtests.cpp | 2 +- src/rpc/blockchain.cpp | 4 +- src/rpc/rawtransaction.cpp | 6 +- src/rpc/rpcquorums.cpp | 12 ++-- src/test/test_dash.cpp | 2 +- src/txmempool.cpp | 2 +- src/validation.cpp | 4 +- src/wallet/coinselection.cpp | 2 +- src/wallet/rpcwallet.cpp | 4 +- src/wallet/wallet.cpp | 4 +- src/zmq/zmqpublishnotifier.cpp | 6 +- test/lint/lint-circular-dependencies.sh | 61 +++++++++---------- test/lint/lint-cppcheck-dash.sh | 2 +- 52 files changed, 203 insertions(+), 204 deletions(-) rename src/llmq/{quorums_blockprocessor.cpp => blockprocessor.cpp} (99%) rename src/llmq/{quorums_blockprocessor.h => blockprocessor.h} (95%) rename src/llmq/{quorums_chainlocks.cpp => chainlocks.cpp} (99%) rename src/llmq/{quorums_chainlocks.h => chainlocks.h} (96%) rename src/llmq/{quorums_commitment.cpp => commitment.cpp} (99%) rename src/llmq/{quorums_commitment.h => commitment.h} (96%) rename src/llmq/{quorums_debug.cpp => debug.cpp} (98%) rename src/llmq/{quorums_debug.h => debug.h} (95%) rename src/llmq/{quorums_dkgsession.cpp => dkgsession.cpp} (99%) rename src/llmq/{quorums_dkgsession.h => dkgsession.h} (98%) rename src/llmq/{quorums_dkgsessionhandler.cpp => dkgsessionhandler.cpp} (99%) rename src/llmq/{quorums_dkgsessionhandler.h => dkgsessionhandler.h} (97%) rename src/llmq/{quorums_dkgsessionmgr.cpp => dkgsessionmgr.cpp} (99%) rename src/llmq/{quorums_dkgsessionmgr.h => dkgsessionmgr.h} (94%) rename src/llmq/{quorums_init.cpp => init.cpp} (89%) rename src/llmq/{quorums_init.h => init.h} (82%) rename src/llmq/{quorums_instantsend.cpp => instantsend.cpp} (99%) rename src/llmq/{quorums_instantsend.h => instantsend.h} (98%) rename src/llmq/{quorums_signing.cpp => signing.cpp} (99%) rename src/llmq/{quorums_signing.h => signing.h} (98%) rename src/llmq/{quorums_signing_shares.cpp => signing_shares.cpp} (99%) rename src/llmq/{quorums_signing_shares.h => signing_shares.h} (98%) rename src/llmq/{quorums_utils.cpp => utils.cpp} (99%) rename src/llmq/{quorums_utils.h => utils.h} (97%) diff --git a/src/Makefile.am b/src/Makefile.am index 09f4687171..b3ce3311a7 100644 --- a/src/Makefile.am +++ b/src/Makefile.am @@ -192,18 +192,18 @@ BITCOIN_CORE_H = \ dbwrapper.h \ limitedmap.h \ llmq/quorums.h \ - llmq/quorums_blockprocessor.h \ - llmq/quorums_commitment.h \ - llmq/quorums_chainlocks.h \ - llmq/quorums_debug.h \ - llmq/quorums_dkgsessionhandler.h \ - llmq/quorums_dkgsessionmgr.h \ - llmq/quorums_dkgsession.h \ - llmq/quorums_init.h \ - llmq/quorums_instantsend.h \ - llmq/quorums_signing.h \ - llmq/quorums_signing_shares.h \ - llmq/quorums_utils.h \ + llmq/blockprocessor.h \ + llmq/commitment.h \ + llmq/chainlocks.h \ + llmq/debug.h \ + llmq/dkgsessionhandler.h \ + llmq/dkgsessionmgr.h \ + llmq/dkgsession.h \ + llmq/init.h \ + llmq/instantsend.h \ + llmq/signing.h \ + llmq/signing_shares.h \ + llmq/utils.h \ logging.h \ logging/timer.h \ masternode/node.h \ @@ -357,18 +357,18 @@ libdash_server_a_SOURCES = \ governance/vote.cpp \ governance/votedb.cpp \ llmq/quorums.cpp \ - llmq/quorums_blockprocessor.cpp \ - llmq/quorums_commitment.cpp \ - llmq/quorums_chainlocks.cpp \ - llmq/quorums_debug.cpp \ - llmq/quorums_dkgsessionhandler.cpp \ - llmq/quorums_dkgsessionmgr.cpp \ - llmq/quorums_dkgsession.cpp \ - llmq/quorums_init.cpp \ - llmq/quorums_instantsend.cpp \ - llmq/quorums_signing.cpp \ - llmq/quorums_signing_shares.cpp \ - llmq/quorums_utils.cpp \ + llmq/blockprocessor.cpp \ + llmq/commitment.cpp \ + llmq/chainlocks.cpp \ + llmq/debug.cpp \ + llmq/dkgsessionhandler.cpp \ + llmq/dkgsessionmgr.cpp \ + llmq/dkgsession.cpp \ + llmq/init.cpp \ + llmq/instantsend.cpp \ + llmq/signing.cpp \ + llmq/signing_shares.cpp \ + llmq/utils.cpp \ masternode/node.cpp \ masternode/meta.cpp \ masternode/payments.cpp \ diff --git a/src/bloom.cpp b/src/bloom.cpp index 3890962352..224183317b 100644 --- a/src/bloom.cpp +++ b/src/bloom.cpp @@ -8,7 +8,7 @@ #include #include #include -#include +#include #include #include