forked from TrueCloudLab/neoneo-go
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.SetCheckedHash(tx.VerificationHash().BytesBE())
|
||||||
v.LoadScript(t.Script)
|
v.LoadScript(t.Script)
|
||||||
v.SetPriceGetter(getPrice)
|
v.SetPriceGetter(getPrice)
|
||||||
if bc.config.FreeGasLimit >= 0 {
|
if bc.config.FreeGasLimit > 0 {
|
||||||
v.SetGasLimit(bc.config.FreeGasLimit + t.Gas)
|
v.SetGasLimit(bc.config.FreeGasLimit + t.Gas)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue