refactor: drop circular dependency

This commit is contained in:
UdjinM6 2024-08-26 11:45:24 +03:00
parent e54fe42ce8
commit b330318db7
No known key found for this signature in database
GPG Key ID: 83592BD1400D58D9
2 changed files with 4 additions and 2 deletions

View File

@ -9,7 +9,6 @@
#include <primitives/transaction.h> #include <primitives/transaction.h>
#include <gsl/pointers.h> #include <gsl/pointers.h>
#include <core_io.h>
#include <serialize.h> #include <serialize.h>
#include <univalue.h> #include <univalue.h>
@ -23,6 +22,10 @@ namespace llmq {
class CQuorumManager; class CQuorumManager;
} // namespace llmq } // namespace llmq
// Forward declaration from core_io to get rid of circular dependency
UniValue ValueFromAmount(const CAmount amount);
void ScriptPubKeyToUniv(const CScript& scriptPubKey, UniValue& out, bool fIncludeHex, bool include_addresses);
class CAssetLockPayload class CAssetLockPayload
{ {
public: public:

View File

@ -102,7 +102,6 @@ EXPECTED_CIRCULAR_DEPENDENCIES=(
"llmq/chainlocks -> net_processing -> llmq/context -> llmq/chainlocks" "llmq/chainlocks -> net_processing -> llmq/context -> llmq/chainlocks"
"coinjoin/client -> coinjoin/coinjoin -> llmq/chainlocks -> net_processing -> coinjoin/client" "coinjoin/client -> coinjoin/coinjoin -> llmq/chainlocks -> net_processing -> coinjoin/client"
"rpc/blockchain -> rpc/server -> rpc/blockchain" "rpc/blockchain -> rpc/server -> rpc/blockchain"
"core_io -> evo/assetlocktx -> core_io"
) )
EXIT_CODE=0 EXIT_CODE=0