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

Hardfork/upgrade trigger #527

Open
svyatonik opened this issue Oct 16, 2018 · 3 comments
Open

Hardfork/upgrade trigger #527

svyatonik opened this issue Oct 16, 2018 · 3 comments
Labels
F3-annoyance The client behaves within expectations, however this “expected behaviour” itself is at issue. P5-sometimesoon Issue is worth doing soon.

Comments

@svyatonik
Copy link
Contributor

Case: BCH Nov2018 HF adds new consensus rule - all transactions must have a serialized size > 100 bytes. If memory pool contains some transactions of size < 100 bytes BEFORE HF happens, they became invalid after HF, but will stay in memory pool.

Solution: we should have some upgrade/HF trigger that clears memory pool/reverifies all memory pool transactions when HF happens.

@svyatonik svyatonik added F3-annoyance The client behaves within expectations, however this “expected behaviour” itself is at issue. P5-sometimesoon Issue is worth doing soon. labels Oct 16, 2018
@debris
Copy link
Contributor

debris commented Oct 16, 2018

they became invalid after HF, but will stay in memory pool.

I am not sure I understand. Why should they stay in memory pool?

@svyatonik
Copy link
Contributor Author

They should not, but right they are staying in current implementation. We only remove transactions that are included in the block && transactions that are relying on inputs that are spent by transactions in the block. So idea is: when something global (here: consensus rules) changes, we need to reverify all memory pool transactions => this will remove all transactions that became invalid after this change.

@svyatonik
Copy link
Contributor Author

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
F3-annoyance The client behaves within expectations, however this “expected behaviour” itself is at issue. P5-sometimesoon Issue is worth doing soon.
Projects
None yet
Development

No branches or pull requests

2 participants