Skip to content

Commit

Permalink
Remove extra var in LedgerCloseData constructor call for non buildtest
Browse files Browse the repository at this point in the history
  • Loading branch information
ThomasBrady committed Nov 28, 2024
1 parent b887bba commit c0abc98
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/catchup/ApplyCheckpointWork.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -323,11 +323,14 @@ ApplyCheckpointWork::getNextLedgerCloseData()
bm.setNextCloseVersionAndHashForTesting(
mApp.getConfig().LEDGER_PROTOCOL_VERSION, header.bucketListHash);
}
#endif

return std::make_shared<LedgerCloseData>(
header.ledgerSeq, txset, header.scpValue,
std::make_optional<Hash>(mHeaderHistoryEntry.hash), txres);
#else
return std::make_shared<LedgerCloseData>(
header.ledgerSeq, txset, header.scpValue,
std::make_optional<Hash>(mHeaderHistoryEntry.hash));
#endif
}

BasicWork::State
Expand Down

0 comments on commit c0abc98

Please sign in to comment.