Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix svm slow conclusion #292

Merged
merged 5 commits into from
Dec 14, 2024
Merged

Fix svm slow conclusion #292

merged 5 commits into from
Dec 14, 2024

Conversation

danimhr
Copy link
Contributor

@danimhr danimhr commented Dec 13, 2024

This PR aims to fix the svm slow conslusion issue

Sometimes the websocket hears about confirmation before the RPC client. In the previous version the conclude auction was dependent on RPC client also seeing the confirmation transaction. Now in the conclusion log listener worker, the code only use the log to conclude the auction.

Copy link
Collaborator

@m30m m30m left a comment

Choose a reason for hiding this comment

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

this is not the fix we had in mind. what changed?

auction-server/src/auction/service/conclude_auction.rs Outdated Show resolved Hide resolved
auction-server/src/auction/service/conclude_auction.rs Outdated Show resolved Hide resolved
}

/// This one concludes an auction by getting the auction transaction status from the chain.
#[tracing::instrument(skip_all, fields(auction_id, tx_hash, bid_ids))]
Copy link
Collaborator

Choose a reason for hiding this comment

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

I suggest removing this instrumentation.
tx_hash is a bit misleading now since auction can have multiple transactions.
The rest is traced inside the conclude_auction_with_statuses call.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I removed the fields, but kept the instument itself.

auction-server/src/auction/service/workers.rs Show resolved Hide resolved
@danimhr danimhr merged commit a63eb19 into main Dec 14, 2024
1 check passed
@danimhr danimhr deleted the fix/slow-svm-auction-conclusion branch December 14, 2024 17:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants