From c0abc984cc2455427d262b5bad7aab70feafd593 Mon Sep 17 00:00:00 2001 From: Thomas Brady Date: Wed, 27 Nov 2024 16:17:17 -0800 Subject: [PATCH] Remove extra var in LedgerCloseData constructor call for non buildtest --- src/catchup/ApplyCheckpointWork.cpp | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/catchup/ApplyCheckpointWork.cpp b/src/catchup/ApplyCheckpointWork.cpp index 96face9b7a..8cdafece84 100644 --- a/src/catchup/ApplyCheckpointWork.cpp +++ b/src/catchup/ApplyCheckpointWork.cpp @@ -323,11 +323,14 @@ ApplyCheckpointWork::getNextLedgerCloseData() bm.setNextCloseVersionAndHashForTesting( mApp.getConfig().LEDGER_PROTOCOL_VERSION, header.bucketListHash); } -#endif - return std::make_shared( header.ledgerSeq, txset, header.scpValue, std::make_optional(mHeaderHistoryEntry.hash), txres); +#else + return std::make_shared( + header.ledgerSeq, txset, header.scpValue, + std::make_optional(mHeaderHistoryEntry.hash)); +#endif } BasicWork::State