aboutsummaryrefslogtreecommitdiffstats
path: root/les/server.go
Commit message (Collapse)AuthorAgeFilesLines
* les: fix megacheck warnings (#14941)Felföldi Zsolt2017-08-091-11/+0
| | | | | | * les: fix megacheck warnings * les: fixed testGetProofs
* les: code refactoring (#14416)Felföldi Zsolt2017-06-211-3/+18
| | | | | | | | | | | | This commit does various code refactorings: - generalizes and moves the request retrieval/timeout/resend logic out of LesOdr (will be used by a subsequent PR) - reworks the peer management logic so that all services can register with peerSet to get notified about added/dropped peers (also gets rid of the ugly getAllPeers callback in requestDistributor) - moves peerSet, LesOdr, requestDistributor and retrieveManager initialization out of ProtocolManager because I believe they do not really belong there and the whole init process was ugly and ad-hoc
* core, consensus: pluggable consensus engines (#3817)Péter Szilágyi2017-04-051-1/+1
| | | | | This commit adds pluggable consensus engines to go-ethereum. In short, it introduces a generic consensus interface, and refactors the entire codebase to use this interface.
* core: refactor genesis handlingFelix Lange2017-03-231-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | This commit solves several issues concerning the genesis block: * Genesis/ChainConfig loading was handled by cmd/geth code. This left library users in the cold. They could specify a JSON-encoded string and overwrite the config, but didn't get any of the additional checks performed by geth. * Decoding and writing of genesis JSON was conflated in WriteGenesisBlock. This made it a lot harder to embed the genesis block into the forthcoming config file loader. This commit changes things so there is a single Genesis type that represents genesis blocks. All uses of Write*Genesis* are changed to use the new type instead. * If the chain config supplied by the user was incompatible with the current chain (i.e. the chain had already advanced beyond a scheduled fork), it got overwritten. This is not an issue in practice because previous forks have always had the highest total difficulty. It might matter in the future though. The new code reverts the local chain to the point of the fork when upgrading configuration. The change to genesis block data removes compression library dependencies from package core.
* all: update light logs (and a few others) to the new modelPéter Szilágyi2017-03-031-3/+2
|
* all: blidly swap out glog to our log15, logs need reworkPéter Szilágyi2017-02-231-4/+4
|
* les: remove delayed les server startingZsolt Felfoldi2017-01-261-27/+3
|
* les, light: add block availability check for ODR requestsZsolt Felfoldi2016-12-101-5/+4
|
* eth, les: defer starting LES service until ETH initial sync is finishedZsolt Felfoldi2016-12-101-1/+27
|
* les: fixed loggingJeffrey Wilcke2016-11-161-1/+1
|
* les: cleaned up logging (#3256)Jeffrey Wilcke2016-11-131-3/+8
|
* all: update license informationFelix Lange2016-11-091-1/+1
|
* core/types: remove header accessorsFelix Lange2016-11-091-2/+2
| | | | | | These accessors were introduced by light client changes, but the only method that is actually used is GetNumberU64. This commit replaces all uses of .GetNumberU64 with .Number.Uint64.
* p2p/discv5: added new topic discovery packageZsolt Felfoldi2016-11-091-2/+3
|
* les: light client protocol and APIZsolt Felfoldi2016-11-091-0/+401