NEO: clear LastGasPerVote when voting for NULL, fix #2894#3173
NEO: clear LastGasPerVote when voting for NULL, fix #2894#3173shargon merged 3 commits intoneo-project:masterfrom
Conversation
This value won't be used in any way, so save some bytes of storage. Signed-off-by: Roman Khimov <roman@nspcc.ru>
vncoelho
left a comment
There was a problem hiding this comment.
I remember this discussion some time ago. It seems to be ok.
|
I will |
shargon
left a comment
There was a problem hiding this comment.
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 <ekt@morphbits.io>
Port neo-project/neo#3173. Close #3345 Signed-off-by: Ekaterina Pavlova <ekt@morphbits.io>
Port neo-project/neo#3173. Close #3345 Signed-off-by: Ekaterina Pavlova <ekt@morphbits.io>
Port neo-project/neo#3173. Close #3345 Signed-off-by: Ekaterina Pavlova <ekt@morphbits.io>
Port neo-project/neo#3173. Close #3345 Signed-off-by: Ekaterina Pavlova <ekt@morphbits.io>
Port neo-project/neo#3173. Close #3345 Signed-off-by: Ekaterina Pavlova <ekt@morphbits.io>
Port neo-project/neo#3173. Close #3345 Signed-off-by: Ekaterina Pavlova <ekt@morphbits.io>
Port neo-project/neo#3173. Close #3345 Signed-off-by: Ekaterina Pavlova <ekt@morphbits.io>


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?