From b6e6e8dc75057ecb2fa84cffe6a9df8f7aae1676 Mon Sep 17 00:00:00 2001 From: jouzo <15011228+Jouzo@users.noreply.github.com> Date: Mon, 14 Oct 2024 11:50:28 +0100 Subject: [PATCH] fmt cpp --- src/dfi/rpc_accounts.cpp | 5 ++--- src/validation.cpp | 2 -- 2 files changed, 2 insertions(+), 5 deletions(-) diff --git a/src/dfi/rpc_accounts.cpp b/src/dfi/rpc_accounts.cpp index f9103d2e3e..2f6c58e27d 100644 --- a/src/dfi/rpc_accounts.cpp +++ b/src/dfi/rpc_accounts.cpp @@ -5,8 +5,8 @@ #include #include #include -#include #include +#include #include #include @@ -3727,7 +3727,6 @@ UniValue logdbhashes(const JSONRPCRequest &request) { // Convert hash to hex string const auto hashHex = HexStr(hash, hash + CSHA256::OUTPUT_SIZE); - // Get the current block height const auto height = ::ChainActive().Height(); @@ -3741,7 +3740,7 @@ UniValue logdbhashes(const JSONRPCRequest &request) { result.pushKV("evmhash", std::string(*evmHashHex)); } - if (gArgs.GetBoolArg("-oceanarchive", DEFAULT_OCEAN_INDEXER_ENABLED)) { + if (gArgs.GetBoolArg("-oceanarchive", DEFAULT_OCEAN_INDEXER_ENABLED)) { const auto oceanHashHex = XResultValueLogged(ocean_try_get_hash_db_state(result)); if (oceanHashHex) { result.pushKV("oceanhash", std::string(*oceanHashHex)); diff --git a/src/validation.cpp b/src/validation.cpp index 950158795d..9827b58b3d 100644 --- a/src/validation.cpp +++ b/src/validation.cpp @@ -3777,8 +3777,6 @@ bool CChainState::DisconnectTip(CValidationState &state, XResultThrowOnErr(ocean_invalidate_block(result, b.write())); } - - bool flushed = view.Flush() && mnview.Flush(); assert(flushed); mnview.GetHistoryWriters().FlushDB();