neoneo-go/pkg/services/notary
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
..
testdata core: add Notary module test 2021-02-02 22:01:32 +03:00
node.go core, network: add Notary module 2021-02-02 22:01:20 +03:00
node_test.go core: add Notary module test 2021-02-02 22:01:32 +03:00
notary.go network: refactor notary service's PostBlock 2021-02-11 17:11:36 +03:00
notary_test.go core: add Notary module test 2021-02-02 22:01:32 +03:00
request_type.go core, network: add Notary module 2021-02-02 22:01:20 +03:00