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