diff --git a/pkg/core/blockchain.go b/pkg/core/blockchain.go index d9219c9f5..30fd0ee7d 100644 --- a/pkg/core/blockchain.go +++ b/pkg/core/blockchain.go @@ -547,7 +547,7 @@ func (bc *Blockchain) storeBlock(block *block.Block) error { v.SetCheckedHash(tx.VerificationHash().BytesBE()) v.LoadScript(t.Script) v.SetPriceGetter(getPrice) - if bc.config.FreeGasLimit >= 0 { + if bc.config.FreeGasLimit > 0 { v.SetGasLimit(bc.config.FreeGasLimit + t.Gas) }