neo-go/pkg/core
Anna Shaleva 8444f3d816 network: refactor notary service's PostBlock
There was a deadlock while trying to finalize transaction during
PostBlock:
	1) (*Notary).PostBlock is called under the blockchain lock
	2) (*Notary).onTransaction is called inside the PostBlock
	3) (*Notary).onTransaction needs to RLock the blockchain to add
completed transaction to the memory pool (and the blockchain is Lock'ed
by this moment)

The problem is fixed by using notifications subsistem, because it's not
required to call (*Notary).PostBlock under the blockchain lock.
2021-02-11 17:11:36 +03:00
..
block config: update testnet netmode to preview5 magic 2021-02-05 18:57:54 +03:00
blockchainer rpc: implement getnativecontracts RPC 2021-02-11 12:27:43 +03:00
chaindump blockchainer: allow to dump/restore chain 2020-11-24 16:43:11 +03:00
dao mpt: support put in batches 2021-01-13 12:25:27 +03:00
fee core: move GetPrice from core to interop 2021-02-05 11:36:32 +03:00
interop interop: reuse state.Native in ContractMD 2021-02-11 12:32:10 +03:00
mempool core: introduce mempool notifications 2021-02-02 22:01:32 +03:00
mpt mpt: support put in batches 2021-01-13 12:25:27 +03:00
native interop: reuse state.Native in ContractMD 2021-02-11 12:32:10 +03:00
state rpc: implement getnativecontracts RPC 2021-02-11 12:27:43 +03:00
storage mpt: update MPT after the block processing 2020-12-25 14:40:23 +03:00
test_data config: update testnet netmode to preview5 magic 2021-02-05 18:57:54 +03:00
transaction Revert "rpc: marshal fees and GAS as Fixed8 decimal" 2021-02-09 11:16:52 +03:00
blockchain.go interop: reuse state.Native in ContractMD 2021-02-11 12:32:10 +03:00
blockchain_test.go core: check all transaction scripts 2021-02-09 22:31:26 +03:00
doc.go core: add Blockchain event subscription mechanism 2020-05-25 00:27:39 +03:00
helper_test.go compiler: adjust init/_deploy method offsets during optimization 2021-02-11 15:59:02 +03:00
interop_neo.go core: add PickN flags to Storage.Find 2021-01-15 21:12:10 +03:00
interop_neo_test.go state: split ContractBase and UpdateCounter 2021-02-11 12:24:09 +03:00
interop_system.go native: add Ledger contract, fix #1696 2021-02-04 13:12:11 +03:00
interop_system_test.go state: split ContractBase and UpdateCounter 2021-02-11 12:24:09 +03:00
interops.go Merge pull request #1703 from nspcc-dev/initials_for_natives 2021-02-05 15:32:05 +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 interop: rename ContractID to ID 2021-02-11 12:27:43 +03:00
native_designate_test.go native: cache all roles in Designate 2021-01-28 17:09:05 +03:00
native_ledger_test.go native: add Ledger contract, fix #1696 2021-02-04 13:12:11 +03:00
native_management_test.go native/vm: add script check for deployed contracts 2021-02-09 22:31:26 +03:00
native_name_service_test.go core/tests: fix NameService test 2021-02-08 17:56:10 +03:00
native_neo_test.go native: unify committee checks 2021-01-29 10:50:17 +03:00
native_notary_test.go native: unify committee checks 2021-01-29 10:50:17 +03:00
native_oracle_test.go state: split ContractBase and UpdateCounter 2021-02-11 12:24:09 +03:00
native_policy_test.go core: store initial native values into DAO 2021-02-05 10:43:17 +03:00
notary_test.go network: refactor notary service's PostBlock 2021-02-11 17:11:36 +03:00
oracle_test.go core: store initial native values into DAO 2021-02-05 10:43:17 +03:00
prometheus.go core: add state height to prometheus metrics 2020-07-30 12:42:15 +03:00
util.go native: drop Neo.Native.Deploy, move contract init to management contract 2020-12-14 13:33:41 +03:00
util_test.go native: drop Neo.Native.Deploy, move contract init to management contract 2020-12-14 13:33:41 +03:00