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

Could remove block_id on wallet_transactions? #436

Closed
kocoten1992 opened this issue Jul 18, 2024 · 1 comment
Closed

Could remove block_id on wallet_transactions? #436

kocoten1992 opened this issue Jul 18, 2024 · 1 comment
Labels
feature A new feature request or enhancement

Comments

@kocoten1992
Copy link

Description

select block_id from wallet_transactions where block_id != null;

The result is empty, if this field is useless, may I remove it via migration (and some of the code related)?

Version

v1.1.1

What operating system are you running (e.g. Ubuntu 22.04, macOS, Windows 11)?

Debian 12.6

Anything else?

No response

@kocoten1992 kocoten1992 added the feature A new feature request or enhancement label Jul 18, 2024
@n8maninger
Copy link
Member

That column is not useless. It’s used to revert transactions during a reorg.

_, err := tx.tx.Exec(`DELETE FROM wallet_transactions WHERE block_id=?`, sqlHash256(blockID))

@n8maninger n8maninger closed this as not planned Won't fix, can't repro, duplicate, stale Jul 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature A new feature request or enhancement
Projects
None yet
Development

No branches or pull requests

2 participants