From 693c25e5a4222d5e3bb37da1046a968bb048a9c9 Mon Sep 17 00:00:00 2001 From: Denis Angell Date: Mon, 13 Jul 2026 11:45:31 -0400 Subject: [PATCH] clang-format --- src/libxrpl/protocol/STTx.cpp | 3 +-- src/libxrpl/tx/applySteps.cpp | 4 ++-- src/test/app/Batch_test.cpp | 1 + src/test/protocol/STTx_test.cpp | 1 + 4 files changed, 5 insertions(+), 4 deletions(-) diff --git a/src/libxrpl/protocol/STTx.cpp b/src/libxrpl/protocol/STTx.cpp index 988034cf5e..2a54a92e07 100644 --- a/src/libxrpl/protocol/STTx.cpp +++ b/src/libxrpl/protocol/STTx.cpp @@ -657,8 +657,7 @@ std::vector> 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"); diff --git a/src/libxrpl/tx/applySteps.cpp b/src/libxrpl/tx/applySteps.cpp index f4e343b3bc..da2ee3e9b4 100644 --- a/src/libxrpl/tx/applySteps.cpp +++ b/src/libxrpl/tx/applySteps.cpp @@ -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 diff --git a/src/test/app/Batch_test.cpp b/src/test/app/Batch_test.cpp index d28d40d36a..eb6eab6f7c 100644 --- a/src/test/app/Batch_test.cpp +++ b/src/test/app/Batch_test.cpp @@ -72,6 +72,7 @@ #include #include #include +#include #include #include #include diff --git a/src/test/protocol/STTx_test.cpp b/src/test/protocol/STTx_test.cpp index 4d03cbbb58..fc1da15bb9 100644 --- a/src/test/protocol/STTx_test.cpp +++ b/src/test/protocol/STTx_test.cpp @@ -21,6 +21,7 @@ #include +#include #include #include #include