Skip to content

Commit 60ab14f

Browse files
committed
lint: circular deps
1 parent 98bb78f commit 60ab14f

File tree

1 file changed

+12
-4
lines changed

1 file changed

+12
-4
lines changed

test/lint/lint-circular-dependencies.sh

Lines changed: 12 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,16 +9,23 @@
99
export LC_ALL=C
1010

1111
EXPECTED_CIRCULAR_DEPENDENCIES=(
12+
"addrdb -> chainparams -> dfi/mn_checks -> ffi/ffiocean -> ffi/ffiexports -> net -> banman -> addrdb"
13+
"addrdb -> chainparams -> dfi/mn_checks -> ffi/ffiocean -> ffi/ffiexports -> net -> addrdb"
14+
"blockencodings -> chainparams -> dfi/mn_checks -> ffi/ffiocean -> ffi/ffiexports -> httprpc -> rpc/server -> rpc/util -> node/transaction -> net_processing -> blockencodings"
1215
"chain -> chainparams -> dfi/mn_checks -> index/txindex -> chain"
1316
"chain -> chainparams -> dfi/mn_checks -> index/txindex -> txdb -> chain"
1417
"chain -> chainparams -> dfi/mn_checks -> dfi/vaulthistory -> chain"
1518
"chain -> chainparams -> dfi/mn_checks -> validation -> chain"
1619
"chain -> chainparams -> dfi/mn_checks -> validation -> versionbits -> chain"
1720
"chain -> chainparams -> dfi/mn_checks -> validation -> wallet/wallet -> chain"
1821
"chainparams -> key_io -> chainparams"
19-
"chainparams -> dfi/mn_checks -> index/txindex -> index/base -> chainparams"
2022
"chainparams -> dfi/mn_checks -> dfi/customtx -> chainparams"
2123
"chainparams -> dfi/mn_checks -> dfi/vaulthistory -> dfi/vault -> chainparams"
24+
"chainparams -> dfi/mn_checks -> ffi/ffiocean -> ffi/ffiexports -> chainparams"
25+
"chainparams -> dfi/mn_checks -> ffi/ffiocean -> ffi/ffiexports -> httprpc -> chainparams"
26+
"chainparams -> dfi/mn_checks -> ffi/ffiocean -> ffi/ffiexports -> httprpc -> rpc/server -> rpc/util -> node/transaction -> net_processing -> chainparams"
27+
"chainparams -> dfi/mn_checks -> ffi/ffiocean -> ffi/ffiexports -> net -> chainparams"
28+
"chainparams -> dfi/mn_checks -> index/txindex -> index/base -> chainparams"
2229
"chainparams -> dfi/mn_checks -> txmempool -> chainparams"
2330
"chainparams -> dfi/mn_checks -> validation -> chainparams"
2431
"chainparams -> dfi/mn_checks -> validation -> spv/spv_wrapper -> chainparams"
@@ -31,6 +38,7 @@ EXPECTED_CIRCULAR_DEPENDENCIES=(
3138
"dfi/accountshistory -> dfi/historywriter -> dfi/mn_checks -> dfi/accountshistory"
3239
"dfi/accountshistory -> dfi/masternodes -> dfi/accountshistory"
3340
"dfi/accountshistory -> dfi/masternodes -> validation -> dfi/accountshistory"
41+
"dfi/accountshistory -> dfi/masternodes -> validation -> ffi/ffiexports -> dfi/accountshistory"
3442
"dfi/accountshistory -> flushablestorage -> dfi/snapshotmanager -> dfi/accountshistory"
3543
"dfi/anchors -> dfi/masternodes -> dfi/anchors"
3644
"dfi/anchors -> dfi/masternodes -> net_processing -> dfi/anchors"
@@ -82,13 +90,14 @@ EXPECTED_CIRCULAR_DEPENDENCIES=(
8290
"dfi/mn_checks -> txmempool -> dfi/mn_checks"
8391
"dfi/mn_checks -> validation -> dfi/mn_checks"
8492
"dfi/mn_checks -> validation -> wallet/wallet -> dfi/mn_checks"
93+
"dfi/mn_rpc -> validation -> ffi/ffiexports -> dfi/mn_rpc"
94+
"dfi/mn_rpc -> wallet/rpcwallet -> init -> miner -> dfi/validation -> dfi/mn_rpc"
8595
"dfi/govvariables/attributes -> dfi/mn_rpc -> wallet/rpcwallet -> init -> miner -> dfi/govvariables/attributes"
86-
# "dfi/govvariables/attributes -> dfi/mn_rpc -> wallet/rpcwallet -> init -> rpc/blockchain -> dfi/govvariables/attributes"
8796
"dfi/govvariables/attributes -> dfi/validation -> rpc/blockchain -> dfi/govvariables/attributes"
88-
"dfi/mn_rpc -> wallet/rpcwallet -> init -> miner -> dfi/validation -> dfi/mn_rpc"
8997
"dfi/snapshotmanager -> dfi/vaulthistory -> flushablestorage -> dfi/snapshotmanager"
9098
"dfi/validation -> validation -> dfi/validation"
9199
"dfi/validation -> ffi/ffiexports -> dfi/validation"
100+
"ffi/ffiexports -> httprpc -> rpc/server -> rpc/util -> node/transaction -> validation -> ffi/ffiexports"
92101
"logging -> util/system -> logging"
93102
"logging -> util/system -> sync -> logging"
94103
"miner -> wallet/wallet -> policy/fees -> miner"
@@ -115,7 +124,6 @@ EXPECTED_CIRCULAR_DEPENDENCIES=(
115124
"wallet/fees -> wallet/wallet -> wallet/fees"
116125
"wallet/ismine -> wallet/wallet -> wallet/ismine"
117126
"wallet/wallet -> wallet/walletdb -> wallet/wallet"
118-
"dfi/mn_rpc -> wallet/rpcwallet -> init -> ffi/ffiexports -> dfi/mn_rpc"
119127
)
120128

121129
EXIT_CODE=0

0 commit comments

Comments
 (0)