neoneo-go/pkg/core
Anna Shaleva 2fee69f26f core: add missing onPersist and postPersist methods to natives
Although not every contract is persisted (see
https://github.com/neo-project/neo/blob/master/src/neo/Ledger/Blockchain.cs#L94)
we have to add `onPersist` and `postPersist` methods to every
native contract in order to display them in manifest for users and
follow C# behaviour. In C# there are `onPersist` and `postPersist`
methods in base native contract class, see
https://github.com/neo-project/neo/blob/master/src/neo/SmartContract/Native/NativeContract.cs#L141
and
https://github.com/neo-project/neo/blob/master/src/neo/SmartContract/Native/NativeContract.cs#L148
2020-11-25 18:37:29 +03:00
..
block pkg: move internal/ package to the root directory 2020-11-24 16:39:56 +03:00
blockchainer *: replace all NEP5 occurences to NEP17 2020-11-24 13:08:24 +03:00
chaindump blockchainer: allow to dump/restore chain 2020-11-24 16:43:11 +03:00
dao pkg: move internal/ package to the root directory 2020-11-24 16:39:56 +03:00
fee core: update opcodes prices 2020-11-12 14:20:26 +03:00
interop manifest: include contract Name 2020-11-24 11:23:44 +03:00
mempool pkg: move internal/ package to the root directory 2020-11-24 16:39:56 +03:00
mpt pkg: move internal/ package to the root directory 2020-11-24 16:39:56 +03:00
native core: add missing onPersist and postPersist methods to natives 2020-11-25 18:37:29 +03:00
state pkg: move internal/ package to the root directory 2020-11-24 16:39:56 +03:00
storage *: replace all NEP5 occurences to NEP17 2020-11-24 13:08:24 +03:00
test_data block: update binary test data 2020-08-18 14:52:30 +03:00
transaction core: add NotaryAssisted transaction attribute 2020-11-25 18:37:29 +03:00
blockchain.go core: fix locking in storeBlock 2020-11-25 18:37:29 +03:00
blockchain_test.go core: add NotaryAssisted transaction attribute 2020-11-25 18:37:29 +03:00
doc.go core: add Blockchain event subscription mechanism 2020-05-25 00:27:39 +03:00
gas_price.go core: move CalculateNetworkFee to a separate package 2020-10-07 10:04:19 +03:00
helper_test.go scripts: implement script for creating dumps 2020-11-24 16:47:33 +03:00
interop_neo.go manifest: simplify marshaling 2020-11-13 21:46:26 +03:00
interop_neo_test.go manifest: include contract Name 2020-11-24 11:23:44 +03:00
interop_system.go native: replace NEP-5 with NEP-17 2020-11-24 13:08:23 +03:00
interop_system_test.go pkg: move internal/ package to the root directory 2020-11-24 16:39:56 +03:00
interops.go core: implement System.Binary.Atoi/Itoa syscalls 2020-11-10 16:15:10 +03:00
interops_test.go core: allow to use state root in header 2020-11-20 17:16:32 +03:00
native_contract_test.go scripts: implement script for creating dumps 2020-11-24 16:47:33 +03:00
native_designate_test.go core: add P2PNotary designated role 2020-11-24 18:47:09 +03:00
native_neo_test.go scripts: implement script for creating dumps 2020-11-24 16:47:33 +03:00
native_oracle_test.go scripts: implement script for creating dumps 2020-11-24 16:47:33 +03:00
native_policy_test.go scripts: implement script for creating dumps 2020-11-24 16:47:33 +03:00
prometheus.go core: add state height to prometheus metrics 2020-07-30 12:42:15 +03:00
util.go core: save StateRootInHeader in genesis block 2020-11-24 16:39:56 +03:00
util_test.go core: remove unnecessary comment 2020-08-04 17:34:06 +03:00