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