forked from TrueCloudLab/neoneo-go
vm: adjust default VM interops prices
It might be not so important, because we use them only for VM-CLI, but let's keep them equal to the standard interops prices.
This commit is contained in:
parent
a8bb040558
commit
be3692136e
1 changed files with 13 additions and 13 deletions
|
@ -20,31 +20,31 @@ type interopIDFuncPrice struct {
|
||||||
|
|
||||||
var defaultVMInterops = []interopIDFuncPrice{
|
var defaultVMInterops = []interopIDFuncPrice{
|
||||||
{ID: interopnames.ToID([]byte(interopnames.SystemBinaryDeserialize)),
|
{ID: interopnames.ToID([]byte(interopnames.SystemBinaryDeserialize)),
|
||||||
Func: RuntimeDeserialize, Price: 500000},
|
Func: RuntimeDeserialize, Price: 1 << 14},
|
||||||
{ID: interopnames.ToID([]byte(interopnames.SystemBinarySerialize)),
|
{ID: interopnames.ToID([]byte(interopnames.SystemBinarySerialize)),
|
||||||
Func: RuntimeSerialize, Price: 100000},
|
Func: RuntimeSerialize, Price: 1 << 12},
|
||||||
{ID: interopnames.ToID([]byte(interopnames.SystemRuntimeLog)),
|
{ID: interopnames.ToID([]byte(interopnames.SystemRuntimeLog)),
|
||||||
Func: runtimeLog, Price: 1000000, RequiredFlags: smartcontract.AllowNotify},
|
Func: runtimeLog, Price: 1 << 15, RequiredFlags: smartcontract.AllowNotify},
|
||||||
{ID: interopnames.ToID([]byte(interopnames.SystemRuntimeNotify)),
|
{ID: interopnames.ToID([]byte(interopnames.SystemRuntimeNotify)),
|
||||||
Func: runtimeNotify, Price: 1000000, RequiredFlags: smartcontract.AllowNotify},
|
Func: runtimeNotify, Price: 1 << 15, RequiredFlags: smartcontract.AllowNotify},
|
||||||
{ID: interopnames.ToID([]byte(interopnames.SystemEnumeratorCreate)),
|
{ID: interopnames.ToID([]byte(interopnames.SystemEnumeratorCreate)),
|
||||||
Func: EnumeratorCreate, Price: 400},
|
Func: EnumeratorCreate, Price: 1 << 4},
|
||||||
{ID: interopnames.ToID([]byte(interopnames.SystemEnumeratorNext)),
|
{ID: interopnames.ToID([]byte(interopnames.SystemEnumeratorNext)),
|
||||||
Func: EnumeratorNext, Price: 1000000},
|
Func: EnumeratorNext, Price: 1 << 15},
|
||||||
{ID: interopnames.ToID([]byte(interopnames.SystemEnumeratorConcat)),
|
{ID: interopnames.ToID([]byte(interopnames.SystemEnumeratorConcat)),
|
||||||
Func: EnumeratorConcat, Price: 400},
|
Func: EnumeratorConcat, Price: 1 << 4},
|
||||||
{ID: interopnames.ToID([]byte(interopnames.SystemEnumeratorValue)),
|
{ID: interopnames.ToID([]byte(interopnames.SystemEnumeratorValue)),
|
||||||
Func: EnumeratorValue, Price: 400},
|
Func: EnumeratorValue, Price: 1 << 4},
|
||||||
{ID: interopnames.ToID([]byte(interopnames.SystemIteratorCreate)),
|
{ID: interopnames.ToID([]byte(interopnames.SystemIteratorCreate)),
|
||||||
Func: IteratorCreate, Price: 400},
|
Func: IteratorCreate, Price: 1 << 4},
|
||||||
{ID: interopnames.ToID([]byte(interopnames.SystemIteratorConcat)),
|
{ID: interopnames.ToID([]byte(interopnames.SystemIteratorConcat)),
|
||||||
Func: IteratorConcat, Price: 400},
|
Func: IteratorConcat, Price: 1 << 4},
|
||||||
{ID: interopnames.ToID([]byte(interopnames.SystemIteratorKey)),
|
{ID: interopnames.ToID([]byte(interopnames.SystemIteratorKey)),
|
||||||
Func: IteratorKey, Price: 400},
|
Func: IteratorKey, Price: 1 << 4},
|
||||||
{ID: interopnames.ToID([]byte(interopnames.SystemIteratorKeys)),
|
{ID: interopnames.ToID([]byte(interopnames.SystemIteratorKeys)),
|
||||||
Func: IteratorKeys, Price: 400},
|
Func: IteratorKeys, Price: 1 << 4},
|
||||||
{ID: interopnames.ToID([]byte(interopnames.SystemIteratorValues)),
|
{ID: interopnames.ToID([]byte(interopnames.SystemIteratorValues)),
|
||||||
Func: IteratorValues, Price: 400},
|
Func: IteratorValues, Price: 1 << 4},
|
||||||
}
|
}
|
||||||
|
|
||||||
func init() {
|
func init() {
|
||||||
|
|
Loading…
Reference in a new issue