mirror of
https://github.com/nspcc-dev/neo-go.git
synced 2024-11-26 19:42:23 +00:00
native: update storage item value after gas distribution
Even if the value is zero, the GAS distribution updates the balance height, so storage item must be updated too. Fixes the followin on preview2 testnet: block 74227: value mismatch for key ffffffff1454a6cb279fbcedc66162ad4ad5d1d910202b92743e000000000000000000000005: 1041032104809fd5002103f3210128010000 vs 1041032104809fd50021033f110128010000
This commit is contained in:
parent
48fac6f87d
commit
7987cdadc0
1 changed files with 1 additions and 0 deletions
|
@ -159,6 +159,7 @@ func (n *NEO) increaseBalance(ic *interop.Context, h util.Uint160, si *state.Sto
|
|||
return err
|
||||
}
|
||||
if amount.Sign() == 0 {
|
||||
si.Value = acc.Bytes()
|
||||
return nil
|
||||
}
|
||||
if len(acc.Votes) > 0 {
|
||||
|
|
Loading…
Reference in a new issue