2020-01-20 15:31:12 +03:00
|
|
|
package core
|
|
|
|
|
|
|
|
import (
|
2020-09-28 17:56:16 +03:00
|
|
|
"github.com/nspcc-dev/neo-go/pkg/core/fee"
|
2020-03-03 17:21:42 +03:00
|
|
|
"github.com/nspcc-dev/neo-go/pkg/vm"
|
|
|
|
"github.com/nspcc-dev/neo-go/pkg/vm/opcode"
|
2020-01-20 15:31:12 +03:00
|
|
|
)
|
|
|
|
|
|
|
|
// getPrice returns a price for executing op with the provided parameter.
|
2020-12-11 15:22:49 +03:00
|
|
|
func (bc *Blockchain) getPrice(v *vm.VM, op opcode.Opcode, parameter []byte) int64 {
|
|
|
|
return fee.Opcode(bc.GetBaseExecFee(), op)
|
2020-01-20 15:31:12 +03:00
|
|
|
}
|