mirror of
https://github.com/XRPLF/rippled.git
synced 2026-07-24 15:40:26 +00:00
clang-format
This commit is contained in:
@@ -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;
|
||||
|
||||
|
||||
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user