File tree 1 file changed +6
-1
lines changed
1 file changed +6
-1
lines changed Original file line number Diff line number Diff line change @@ -1236,7 +1236,8 @@ TxSetPhaseFrame::Iterator::operator*() const
1236
1236
TxSetPhaseFrame::Iterator&
1237
1237
TxSetPhaseFrame::Iterator::operator ++()
1238
1238
{
1239
- if (mStageIndex >= mStages .size ())
1239
+ if (mStageIndex >= mStages .size () ||
1240
+ mClusterIndex >= mStages [mStageIndex ].size ())
1240
1241
{
1241
1242
throw std::runtime_error (" TxPhase iterator out of bounds" );
1242
1243
}
@@ -1663,6 +1664,10 @@ TxSetPhaseFrame::checkValidSoroban(
1663
1664
1664
1665
auto maxResources = sorobanConfig.maxLedgerResources ();
1665
1666
1667
+ // With parallel Soroban phase the instruction limit validation is more
1668
+ // complex than just comparing the total instructions to the ledger-wide
1669
+ // limit. Thus, we skip the instruction check for the parallel phase and
1670
+ // do the proper check further below.
1666
1671
if (protocolVersionStartsFrom (lclHeader.ledgerVersion ,
1667
1672
PARALLEL_SOROBAN_PHASE_PROTOCOL_VERSION))
1668
1673
{
You can’t perform that action at this time.
0 commit comments