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 txpool validation if an account has multiple txs with SGT #15

Open
qizhou opened this issue Oct 26, 2024 · 0 comments
Open

Fix txpool validation if an account has multiple txs with SGT #15

qizhou opened this issue Oct 26, 2024 · 0 comments
Assignees

Comments

@qizhou
Copy link

qizhou commented Oct 26, 2024

We may need to implement a partial SGT spend so that the validation rule of multiple txs of an account can be

  • Without SGT (existing): sum(tx.Cost()) <= acc.balance
  • With SGT: sum(tx.Cost()) <= acc.balance + acc.sgtBalance & sum(tx.Value()) <= acc.balance
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

No branches or pull requests

2 participants