Skip to content

Commit

Permalink
bugfixes, use optional's value for clariry
Browse files Browse the repository at this point in the history
  • Loading branch information
marta-lokhova committed Jul 5, 2023
1 parent 5c20260 commit a2a114c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/herder/HerderImpl.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2065,7 +2065,7 @@ HerderImpl::updateTransactionQueue(TxSetFrameConstPtr txSet)
txSet->getTxsForPhase(TxSetFrame::Phase::CLASSIC));
#ifdef ENABLE_NEXT_PROTOCOL_VERSION_UNSAFE_FOR_PRODUCTION
updateQueue(mSorobanTransactionQueue,
txSet->getTxsForPhase(TxSetFrame::Phase::CLASSIC));
txSet->getTxsForPhase(TxSetFrame::Phase::SOROBAN));
#endif
}

Expand Down
4 changes: 2 additions & 2 deletions src/herder/TxSetFrame.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -705,12 +705,12 @@ TxSetFrame::size(LedgerHeader const& lh, std::optional<Phase> phase) const
{
size_t sz = 0;
#ifdef ENABLE_NEXT_PROTOCOL_VERSION_UNSAFE_FOR_PRODUCTION
if (!phase && phase == Phase::SOROBAN)
if (!phase || phase.value() == Phase::SOROBAN)
{
sz += sizeOp(Phase::SOROBAN);
}
#endif
if (!phase || phase == Phase::CLASSIC)
if (!phase || phase.value() == Phase::CLASSIC)
{
sz += protocolVersionStartsFrom(lh.ledgerVersion, ProtocolVersion::V_11)
? sizeOp(Phase::CLASSIC)
Expand Down

4 comments on commit a2a114c

@latobarita
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

saw approval from dmkozh
at marta-lokhova@a2a114c

@latobarita
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

merging marta-lokhova/stellar-core/soroban_flooding_bugs = a2a114c into auto

@latobarita
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

marta-lokhova/stellar-core/soroban_flooding_bugs = a2a114c merged ok, testing candidate = ac3eaa6f

@latobarita
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.