Skip to content

Pending spaces list for unconfirmed #100

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

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

Ximik
Copy link
Member

@Ximik Ximik commented Jun 16, 2025

Adds new group pending for the spaces which are affected by not yet confirmed transactions.

Closes #72
Closes #98

@Ximik Ximik marked this pull request as ready for review June 17, 2025 13:19
@@ -216,8 +216,7 @@ impl TxEvent {
WHERE id IN (
SELECT MAX(id)
FROM {table}
WHERE type IN ('bid', 'open')
AND created_at >= strftime('%s', 'now', '-14 days')
WHERE space IS NOT NULL
Copy link
Member

Choose a reason for hiding this comment

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

Could you explain why this change was necessary? this method was supposed to return recent events from last 14 days - the number of events could grow significantly for active wallets and its used in other parts of the code base.

Copy link
Member Author

Choose a reason for hiding this comment

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

It is used only for list_spaces, and it returns only one event per space anyway (since GROUP BY).

  1. space IS NOT NULL is to capture all the activity for the pending list.
  2. No time limit is to make the user be able to see all the spaces he was interested in. This one I can revert is we don't want to show those in outbid list.

Also, if this table can grow big it can make sense to add indexes.

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.

Register moves spaces to outbids while unconfirmed Sent spaces are not removed from the list
2 participants