mirror of
https://github.com/nspcc-dev/neo-go.git
synced 2024-12-23 23:25:22 +00:00
Merge pull request #652 from nspcc-dev/Fix_FreeGasLimit
core: fix FreeGasLimit constraint
This commit is contained in:
commit
f7749cea67
1 changed files with 1 additions and 1 deletions
|
@ -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)
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue