Skip to content

Commit

Permalink
fmt cpp
Browse files Browse the repository at this point in the history
  • Loading branch information
Jouzo committed Oct 14, 2024
1 parent 575e4df commit b6e6e8d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 5 deletions.
5 changes: 2 additions & 3 deletions src/dfi/rpc_accounts.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@
#include <dfi/threadpool.h>
#include <dfi/validation.h>
#include <dfi/vaulthistory.h>
#include <ffi/ffihelpers.h>
#include <ffi/ffiexports.h>
#include <ffi/ffihelpers.h>
#include <boost/asio.hpp>

#include <fstream>
Expand Down Expand Up @@ -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();

Expand All @@ -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));
Expand Down
2 changes: 0 additions & 2 deletions src/validation.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down

0 comments on commit b6e6e8d

Please sign in to comment.