forked from TrueCloudLab/neoneo-go
native: don't distribute gas at block 0
It fails at the moment and it doesn't make sense at conceptual level.
This commit is contained in:
parent
30836ca69b
commit
1dcace1594
1 changed files with 1 additions and 1 deletions
|
@ -125,7 +125,7 @@ func (n *NEO) increaseBalance(ic *interop.Context, acc *state.Account, amount *b
|
|||
}
|
||||
|
||||
func (n *NEO) distributeGas(ic *interop.Context, acc *state.Account) error {
|
||||
if ic.Block == nil {
|
||||
if ic.Block == nil || ic.Block.Index == 0 {
|
||||
return nil
|
||||
}
|
||||
sys, net, err := ic.Chain.CalculateClaimable(util.Fixed8(acc.NEO.Balance.Int64()), acc.NEO.BalanceHeight, ic.Block.Index)
|
||||
|
|
Loading…
Reference in a new issue