Skip to content

Commit

Permalink
refactor: drop circular dependency
Browse files Browse the repository at this point in the history
  • Loading branch information
UdjinM6 committed Aug 26, 2024
1 parent e54fe42 commit b330318
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
5 changes: 4 additions & 1 deletion src/evo/assetlocktx.h
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@
#include <primitives/transaction.h>
#include <gsl/pointers.h>

#include <core_io.h>
#include <serialize.h>
#include <univalue.h>

Expand All @@ -23,6 +22,10 @@ namespace llmq {
class CQuorumManager;
} // 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
{
public:
Expand Down
1 change: 0 additions & 1 deletion test/lint/lint-circular-dependencies.sh
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,6 @@ EXPECTED_CIRCULAR_DEPENDENCIES=(
"llmq/chainlocks -> net_processing -> llmq/context -> llmq/chainlocks"
"coinjoin/client -> coinjoin/coinjoin -> llmq/chainlocks -> net_processing -> coinjoin/client"
"rpc/blockchain -> rpc/server -> rpc/blockchain"
"core_io -> evo/assetlocktx -> core_io"
)

EXIT_CODE=0
Expand Down

0 comments on commit b330318

Please sign in to comment.