les: remove clientPeerSet and serverSet (#21566)

* les: move NodeStateMachine from clientPool to LesServer

* les: new header broadcaster

* les: peerCommons.headInfo always contains last announced head

* les: remove clientPeerSet and serverSet

* les: fixed panic

* les: fixed --nodiscover option

* les: disconnect all peers at ns.Stop()

* les: added comments and fixed signed broadcasts

* les: removed unused parameter, fixed tests
# Conflicts:
#	les/client_handler.go
#	les/clientpool.go
#	les/clientpool_test.go
#	les/enr_entry.go
#	les/lespay/server/prioritypool.go
#	les/peer.go
#	les/protocol.go
#	les/server.go
#	les/server_handler.go
#	les/test_helper.go
This commit is contained in:
Felföldi Zsolt 2020-10-21 10:56:33 +02:00 committed by Igor Mandrigin
parent 07aefb98c3
commit 8effe4cb28

View File

@ -508,30 +508,3 @@ Date: Wed Oct 21 10:56:33 2020 +0200
* les: removed unused parameter, fixed tests * les: removed unused parameter, fixed tests
commit 3e82c9ef67b9948bc90ba244b9537054188ebaf8
Author: aaronbuchwald <aaron.buchwald56@gmail.com>
Date: Tue Oct 20 14:19:21 2020 -0400
eth/api: fix potential nil deref in AccountRange (#21710)
* Fix potential nil pointer error when neither block number nor hash is specified to accountRange
* Update error description
commit 9d25f34263fa0621bd0b70a53057df7c6a5eaa41
Author: Gary Rong <garyrong0905@gmail.com>
Date: Tue Oct 20 22:34:50 2020 +0800
core: track and improve tx indexing/unindexing (#21331)
* core: add background indexer to waitgroup
* core: make indexer stopable
* core/rawdb: add unit tests
* core/rawdb: fix lint
* core/rawdb: fix tests
* core/rawdb: fix linter