config, native: introduce Cockatrice hard-fork
With all associated native API changes ported from https://github.com/neo-project/neo/pull/2925 and https://github.com/neo-project/neo/pull/3154. Signed-off-by: Anna Shaleva <shaleva.ann@nspcc.ru>
This commit is contained in:
parent
3a2e301267
commit
5c75ee13d0
8 changed files with 25 additions and 8 deletions
|
@ -104,7 +104,7 @@ func newCrypto() *Crypto {
|
|||
|
||||
desc = newDescriptor("keccak256", smartcontract.ByteArrayType,
|
||||
manifest.NewParameter("data", smartcontract.ByteArrayType))
|
||||
md = newMethodAndPrice(c.keccak256, 1<<15, callflag.NoneFlag)
|
||||
md = newMethodAndPrice(c.keccak256, 1<<15, callflag.NoneFlag, config.HFCockatrice)
|
||||
c.AddMethod(md, desc)
|
||||
return c
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue