Skip to content

Commit

Permalink
Cleanup -oceanarchive default
Browse files Browse the repository at this point in the history
  • Loading branch information
Jouzo committed Sep 27, 2024
1 parent 02f7f95 commit 04716fa
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/ffi/ffiocean.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,13 @@
// file LICENSE or http://www.opensource.org/licenses/mit-license.php.

#include <ain_rs_exports.h>
#include <ffi/ffiexports.h>
#include <dfi/customtx.h>
#include <uint256.h>
#include <util/system.h>

Res OceanSetTxResult(const std::optional<std::pair<CustomTxType, uint256>> &txInfo, const std::size_t result_ptr) {
bool isOceanEnabled = gArgs.GetBoolArg("-oceanarchive", false);
bool isOceanEnabled = gArgs.GetBoolArg("-oceanarchive", DEFAULT_OCEAN_INDEXER_ENABLED);
if (txInfo && isOceanEnabled) {
const auto &[txType, txHash] = *txInfo;
CrossBoundaryResult ffiResult;
Expand Down

0 comments on commit 04716fa

Please sign in to comment.