From c8429355a5174ac1b3101ad01efb8510cb4bf03d Mon Sep 17 00:00:00 2001 From: Prasanna Loganathar Date: Fri, 27 Oct 2023 01:06:24 +0800 Subject: [PATCH] Fix lints (#2628) --- src/validation.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/validation.cpp b/src/validation.cpp index dae26107680..16757f77c5d 100644 --- a/src/validation.cpp +++ b/src/validation.cpp @@ -3015,7 +3015,7 @@ bool CChainState::ConnectBlock(const CBlock &block, TaskGroup g; auto &pool = DfTxTaskPool->pool; - for (auto const &txRef: block.vtx) { + for (const auto &txRef : block.vtx) { const auto &tx = *txRef; if (tx.IsCoinBase()) { continue; @@ -3024,8 +3024,8 @@ bool CChainState::ConnectBlock(const CBlock &block, const auto txType = GuessCustomTxType(tx, metadata, true); if (txType == CustomTxType::EvmTx) { CCustomTxMessage txMessage{CEvmTxMessage{}}; - const auto res = CustomMetadataParse( - std::numeric_limits::max(), consensus, metadata, txMessage); + const auto res = + CustomMetadataParse(std::numeric_limits::max(), consensus, metadata, txMessage); if (!res) { continue; }