Merge pull request #1828 from nspcc-dev/lower-getter-prices

native: change getCommittee/getNextBlockValidators price
This commit is contained in:
Roman Khimov 2021-03-12 11:44:49 +03:00 committed by GitHub
commit 508a1ca9ee
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -143,11 +143,11 @@ func newNEO() *NEO {
n.AddMethod(md, desc) n.AddMethod(md, desc)
desc = newDescriptor("getCommittee", smartcontract.ArrayType) desc = newDescriptor("getCommittee", smartcontract.ArrayType)
md = newMethodAndPrice(n.getCommittee, 1<<22, callflag.ReadStates) md = newMethodAndPrice(n.getCommittee, 1<<16, callflag.ReadStates)
n.AddMethod(md, desc) n.AddMethod(md, desc)
desc = newDescriptor("getNextBlockValidators", smartcontract.ArrayType) desc = newDescriptor("getNextBlockValidators", smartcontract.ArrayType)
md = newMethodAndPrice(n.getNextBlockValidators, 1<<22, callflag.ReadStates) md = newMethodAndPrice(n.getNextBlockValidators, 1<<16, callflag.ReadStates)
n.AddMethod(md, desc) n.AddMethod(md, desc)
desc = newDescriptor("getGasPerBlock", smartcontract.IntegerType) desc = newDescriptor("getGasPerBlock", smartcontract.IntegerType)