-
Notifications
You must be signed in to change notification settings - Fork 1k
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
NEO: clear LastGasPerVote when voting for NULL, fix #2894 #3173
NEO: clear LastGasPerVote when voting for NULL, fix #2894 #3173
Conversation
This value won't be used in any way, so save some bytes of storage. Signed-off-by: Roman Khimov <[email protected]>
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.
I remember this discussion some time ago. It seems to be ok.
I will |
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.
Seems good to me, just wait for @superboyiii
Although it will surely make some storage changes, but checked NEO and GAS balance on all mainnet existed account, no problem. So it should be safe. |
Did you checked? |
Yes, I checked. Many storage changes there. But the same event log(checked some of these) and the same NEO and GAS balance(all existed addresses). For example, in a tx:
In this PR:
So the differ is between the storage of key |
Exactly as expected, it's |
Port neo-project/neo#3173. Close #3345 Signed-off-by: Ekaterina Pavlova <[email protected]>
Port neo-project/neo#3173. Close #3345 Signed-off-by: Ekaterina Pavlova <[email protected]>
Port neo-project/neo#3173. Close #3345 Signed-off-by: Ekaterina Pavlova <[email protected]>
Port neo-project/neo#3173. Close #3345 Signed-off-by: Ekaterina Pavlova <[email protected]>
Port neo-project/neo#3173. Close #3345 Signed-off-by: Ekaterina Pavlova <[email protected]>
Port neo-project/neo#3173. Close #3345 Signed-off-by: Ekaterina Pavlova <[email protected]>
Port neo-project/neo#3173. Close #3345 Signed-off-by: Ekaterina Pavlova <[email protected]>
Port neo-project/neo#3173. Close #3345 Signed-off-by: Ekaterina Pavlova <[email protected]>
It's a rather trivial fix, but it needs some substantial testing wrt account balances (just comparing the state won't be enough). @superboyiii.
Type of change
How Has This Been Tested?