Skip to content

Commit

Permalink
Merge pull request #4149 from SirTyson/loadgen-fixes
Browse files Browse the repository at this point in the history
Minor loadgen cleanup

Reviewed-by: marta-lokhova
  • Loading branch information
latobarita authored Jan 22, 2024
2 parents 7a089ce + a2c2382 commit 84ea49d
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/simulation/LoadGenerator.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1736,7 +1736,8 @@ std::vector<LedgerKey>
LoadGenerator::checkSorobanStateSynced(Application& app,
GeneratedLoadConfig const& cfg)
{
if (!cfg.isSoroban())
// We don't care if TXs succeed for SOROBAN_UPLOAD
if (!cfg.isSoroban() || cfg.mode == LoadGenMode::SOROBAN_UPLOAD)
{
return {};
}
Expand Down Expand Up @@ -2012,7 +2013,7 @@ LoadGenerator::execute(TransactionFramePtr& txf, LoadGenMode mode,
auto status = mApp.getHerder().recvTransaction(txf, true);
if (status != TransactionQueue::AddResult::ADD_STATUS_PENDING)
{
CLOG_INFO(LoadGen, "tx rejected '{}': ===> {}",
CLOG_INFO(LoadGen, "tx rejected '{}': ===> {}, {}",
TX_STATUS_STRING[static_cast<int>(status)],
txf->isSoroban() ? "soroban"
: xdr_to_string(txf->getEnvelope(),
Expand Down

0 comments on commit 84ea49d

Please sign in to comment.