neoneo-go/pkg/network
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
..
capability capability: prevent panic on wrong capabilities receival 2020-05-29 00:11:54 +03:00
extpool network: implement pool for Extensible payloads 2021-01-28 17:09:06 +03:00
metrics cli,pkg: use zap.Logger 2020-01-10 11:14:27 +03:00
payload network: refactor P2PNotaryRequest decoding 2021-02-11 17:11:33 +03:00
blockqueue.go network: restrict block queue size 2020-09-02 17:04:49 +03:00
blockqueue_test.go internals: move testchain from network to internals 2021-02-02 22:01:32 +03:00
compress.go network: handle length mismatch in decompression routine 2020-08-03 22:38:55 +03:00
discovery.go network: don't register addresses before version handshake 2021-01-18 21:10:06 +03:00
discovery_test.go network: don't register addresses before version handshake 2021-01-18 21:10:06 +03:00
helper_test.go internals: move testchain from network to internals 2021-02-02 22:01:32 +03:00
message.go network: replace ConsensusType with ExtensibleType 2021-01-22 10:38:33 +03:00
message_string.go network: replace ConsensusType with ExtensibleType 2021-01-22 10:38:33 +03:00
message_test.go network: replace ConsensusType with ExtensibleType 2021-01-22 10:38:33 +03:00
notary_feer.go core: introduce mempool notifications 2021-02-02 22:01:32 +03:00
peer.go network: support non-blocking broadcast 2020-12-25 14:36:52 +03:00
prometheus.go monitoring: add prometheus monitoring 2019-10-29 20:51:17 +03:00
relay_reason.go fix spelling and godoc comments 2019-10-22 17:56:03 +03:00
server.go network: refactor notary service's PostBlock 2021-02-11 17:11:36 +03:00
server_config.go oracle: integrate module in core and RPC 2021-01-28 13:00:58 +03:00
server_test.go network: refactor P2PNotaryRequest decoding 2021-02-11 17:11:33 +03:00
tcp_peer.go network: set timeout on write 2020-12-25 14:36:53 +03:00
tcp_peer_test.go protocol: add capabilities to version payload 2020-05-27 19:01:14 +03:00
tcp_transport.go network: fix datarace in TCPTransport 2020-09-18 12:07:02 +03:00
transport.go protocol: add capabilities to version payload 2020-05-27 19:01:14 +03:00