Skip to content

Commit

Permalink
Fix lint
Browse files Browse the repository at this point in the history
  • Loading branch information
Jouzo committed Oct 14, 2024
1 parent 8dd6699 commit 575e4df
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
3 changes: 1 addition & 2 deletions src/validation.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@
#include <dfi/validation.h>
#include <dfi/vaulthistory.h>
#include <ffi/ffihelpers.h>
#include <ffi/ffiexports.h>
#include <flatfile.h>
#include <hash.h>
#include <index/txindex.h>
Expand Down Expand Up @@ -3773,7 +3772,7 @@ bool CChainState::DisconnectTip(CValidationState &state,
XResultThrowOnErr(evm_try_disconnect_latest_block(result));
}

if (gArgs.GetBoolArg("-oceanarchive", DEFAULT_OCEAN_INDEXER_ENABLED)) {
if (gArgs.GetBoolArg("-oceanarchive", false)) {
const UniValue b = blockToJSON(mnview, block, pindexDelete, pindexDelete, true, 2);
XResultThrowOnErr(ocean_invalidate_block(result, b.write()));
}
Expand Down
2 changes: 1 addition & 1 deletion test/lint/lint-circular-dependencies.sh
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,6 @@ EXPECTED_CIRCULAR_DEPENDENCIES=(
"dfi/mn_checks -> txmempool -> dfi/mn_checks"
"dfi/mn_checks -> validation -> dfi/mn_checks"
"dfi/mn_checks -> validation -> wallet/wallet -> dfi/mn_checks"
"dfi/mn_rpc -> wallet/rpcwallet -> init -> ffi/ffiexports -> dfi/mn_rpc"
"dfi/govvariables/attributes -> dfi/mn_rpc -> wallet/rpcwallet -> init -> miner -> dfi/govvariables/attributes"
# "dfi/govvariables/attributes -> dfi/mn_rpc -> wallet/rpcwallet -> init -> rpc/blockchain -> dfi/govvariables/attributes"
"dfi/govvariables/attributes -> dfi/validation -> rpc/blockchain -> dfi/govvariables/attributes"
Expand Down Expand Up @@ -116,6 +115,7 @@ EXPECTED_CIRCULAR_DEPENDENCIES=(
"wallet/fees -> wallet/wallet -> wallet/fees"
"wallet/ismine -> wallet/wallet -> wallet/ismine"
"wallet/wallet -> wallet/walletdb -> wallet/wallet"
"dfi/mn_rpc -> wallet/rpcwallet -> init -> ffi/ffiexports -> dfi/mn_rpc"
)

EXIT_CODE=0
Expand Down

0 comments on commit 575e4df

Please sign in to comment.