-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
ProcessSpecialTxsInBlock should respect fJustCheck #2653
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
makes sense utACK
@UdjinM6 I'm wondering why this was needed? The idea with Look at Line 3596 in 0acfbf6
|
Also invoke it after subsidy/payee checks
f2354ae
to
b2725b4
Compare
Hmmm..... I would rather not write anything if I know I'm going to drop/rollback it the very next moment but I guess you are right and touching evodb is actually ok-ish (won't it produce some db garbage like storing non-commited txes in some cache btw? 🤔 ). As for the rest, |
@UdjinM6 the DB transactions are in-memory, so there is no load on the disk until commitment. Rolling back simply means discarding the in-memory change-set. But yeah, triggering |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
utACK
We should NOT update internal state in any way (evodb included) when
ConnectBlock
is called to check block validity only.Also invoke it after subsidy/payee checks since it could be a heavy one.