File tree 1 file changed +12
-6
lines changed
1 file changed +12
-6
lines changed Original file line number Diff line number Diff line change @@ -1184,12 +1184,18 @@ SorobanTransactionQueue::broadcastSome()
1184
1184
size_t
1185
1185
SorobanTransactionQueue::getMaxQueueSizeOps () const
1186
1186
{
1187
- std::lock_guard<std::recursive_mutex> guard (mTxQueueMutex );
1188
- // TODO: I removed a conditional checking that the protocol version is
1189
- // post-soroban here. I think that check is now unnecessary, right?
1190
- auto res = mTxQueueLimiter .maxScaledLedgerResources (true );
1191
- releaseAssert (res.size () == NUM_SOROBAN_TX_RESOURCES);
1192
- return res.getVal (Resource::Type::OPERATIONS);
1187
+ if (protocolVersionStartsFrom (
1188
+ mBucketSnapshot ->getLedgerHeader ().ledgerVersion ,
1189
+ SOROBAN_PROTOCOL_VERSION))
1190
+ {
1191
+ auto res = mTxQueueLimiter .maxScaledLedgerResources (true );
1192
+ releaseAssert (res.size () == NUM_SOROBAN_TX_RESOURCES);
1193
+ return res.getVal (Resource::Type::OPERATIONS);
1194
+ }
1195
+ else
1196
+ {
1197
+ return 0 ;
1198
+ }
1193
1199
}
1194
1200
1195
1201
bool
You can’t perform that action at this time.
0 commit comments