diff --git a/pkg/core/native/native_gas.go b/pkg/core/native/native_gas.go index 4d76ceac7..2e1e57ada 100644 --- a/pkg/core/native/native_gas.go +++ b/pkg/core/native/native_gas.go @@ -80,6 +80,9 @@ func (g *GAS) Initialize(ic *interop.Context) error { // OnPersist implements Contract interface. func (g *GAS) OnPersist(ic *interop.Context) error { + if len(ic.Block.Transactions) == 0 { + return nil + } for _, tx := range ic.Block.Transactions { absAmount := big.NewInt(int64(tx.SystemFee + tx.NetworkFee)) g.burn(ic, tx.Sender, absAmount)