clang-format

This commit is contained in:
Denis Angell
2026-07-13 11:45:31 -04:00
parent 874c8b5b87
commit 693c25e5a4
4 changed files with 5 additions and 4 deletions

View File

@@ -657,8 +657,7 @@ std::vector<std::shared_ptr<STTx const>> const&
STTx::getBatchTransactions() const
{
XRPL_ASSERT(getTxnType() == ttBATCH, "STTx::getBatchTransactions : batch transaction");
XRPL_ASSERT(
batchTxns_.has_value(), "STTx::getBatchTransactions : batch transactions built");
XRPL_ASSERT(batchTxns_.has_value(), "STTx::getBatchTransactions : batch transactions built");
XRPL_ASSERT(
batchTxns_->size() == getFieldArray(sfRawTransactions).size(),
"STTx::getBatchTransactions : batch transactions size mismatch");

View File

@@ -427,8 +427,8 @@ calculateBaseFee(ReadView const& view, STTx const& tx)
catch (std::exception const& e)
{
// LCOV_EXCL_START
// A fee calc should not throw; return an unpayable fee so the
// transaction fails the fee check.
// A fee calc should not throw; return a fee too large to pay so
// the transaction fails the fee check.
JLOG(debugLog().error()) << "apply (calculateBaseFee): " << e.what();
return XRPAmount{kInitialXrp};
// LCOV_EXCL_STOP

View File

@@ -72,6 +72,7 @@
#include <algorithm>
#include <cstddef>
#include <cstdint>
#include <exception>
#include <map>
#include <memory>
#include <optional>

View File

@@ -21,6 +21,7 @@
#include <xrpl.pb.h>
#include <cstdint>
#include <cstring>
#include <exception>
#include <memory>