Skip to content

Commit c0abc98

Browse files
committed
Remove extra var in LedgerCloseData constructor call for non buildtest
1 parent b887bba commit c0abc98

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

src/catchup/ApplyCheckpointWork.cpp

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -323,11 +323,14 @@ ApplyCheckpointWork::getNextLedgerCloseData()
323323
bm.setNextCloseVersionAndHashForTesting(
324324
mApp.getConfig().LEDGER_PROTOCOL_VERSION, header.bucketListHash);
325325
}
326-
#endif
327-
328326
return std::make_shared<LedgerCloseData>(
329327
header.ledgerSeq, txset, header.scpValue,
330328
std::make_optional<Hash>(mHeaderHistoryEntry.hash), txres);
329+
#else
330+
return std::make_shared<LedgerCloseData>(
331+
header.ledgerSeq, txset, header.scpValue,
332+
std::make_optional<Hash>(mHeaderHistoryEntry.hash));
333+
#endif
331334
}
332335

333336
BasicWork::State

0 commit comments

Comments
 (0)