clang-format

This commit is contained in:
Valentin Balaschenko
2026-07-02 11:54:43 +01:00
parent e77ed1b9f5
commit f2ccce631d
2 changed files with 2 additions and 4 deletions

View File

@@ -1,4 +1,5 @@
#include <xrpld/app/ledger/LedgerHistory.h>
#include <xrpld/app/ledger/LedgerPersistence.h>
#include <xrpld/app/ledger/LedgerToJson.h>
@@ -40,8 +41,7 @@ LedgerHistory::insert(std::shared_ptr<Ledger const> const& ledger, bool validate
ledger->stateMap().getHash().isNonZero(), "xrpl::LedgerHistory::insert : nonzero hash");
auto lock = ledger_maps_.lock();
bool const alreadyHad =
lock->by_hash->canonicalizeReplaceCache(ledger->header().hash, ledger);
bool const alreadyHad = lock->by_hash->canonicalizeReplaceCache(ledger->header().hash, ledger);
if (validated)
lock->by_index[ledger->header().seq] = ledger->header().hash;

View File

@@ -1,10 +1,8 @@
#pragma once
#include <xrpl/ledger/Ledger.h>
#include <xrpld/app/main/Application.h>
#include <xrpl/basics/Mutex.hpp>
#include <xrpl/beast/insight/Collector.h>
#include <xrpl/basics/base_uint.h>
#include <xrpl/beast/insight/Collector.h>
#include <xrpl/beast/insight/Counter.h>