Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | core, eth, internal, miner: optimize txpool for quick ops | Péter Szilágyi | 2016-09-02 | 1 | -1/+4 |
| | |||||
* | eth, eth/downloader: better remote head tracking | Péter Szilágyi | 2016-07-25 | 1 | -3/+5 |
| | |||||
* | core: improved chainDb using sequential keys | zsfelfoldi | 2016-06-07 | 1 | -1/+2 |
| | |||||
* | eth: don't accept transactions until we sync up with the network | Péter Szilágyi | 2016-06-06 | 1 | -0/+2 |
| | |||||
* | eth: skip transaction handling during fast sync | Péter Szilágyi | 2016-05-17 | 1 | -3/+4 |
| | |||||
* | core, eth, miner: improve shutdown synchronisation | Felix Lange | 2016-05-09 | 1 | -1/+1 |
| | | | | | | | | | | | | | | | | | | | | Shutting down geth prints hundreds of annoying error messages in some cases. The errors appear because the Stop method of eth.ProtocolManager, miner.Miner and core.TxPool is asynchronous. Left over peer sessions generate events which are processed after Stop even though the database has already been closed. The fix is to make Stop synchronous using sync.WaitGroup. For eth.ProtocolManager, in order to make use of WaitGroup safe, we need a way to stop new peer sessions from being added while waiting on the WaitGroup. The eth protocol Run function now selects on a signaling channel and adds to the WaitGroup only if ProtocolManager is not shutting down. For miner.worker and core.TxPool the number of goroutines is static, WaitGroup can be used in the usual way without additional synchronisation. | ||||
* | eth: remove workaround for asynchronous processing in the downloader | Felix Lange | 2015-11-19 | 1 | -4/+0 |
| | |||||
* | eth: don't block sync goroutines that short circuit | Péter Szilágyi | 2015-10-28 | 1 | -2/+5 |
| | |||||
* | core, eth, trie: fix data races and merge/review issues | Péter Szilágyi | 2015-10-21 | 1 | -1/+17 |
| | |||||
* | core: support inserting pure header chains | Péter Szilágyi | 2015-10-19 | 1 | -1/+2 |
| | |||||
* | cmd/geth, cmd/utils, core, rpc: renamed to blockchain | Jeffrey Wilcke | 2015-10-04 | 1 | -1/+1 |
| | | | | | | * Renamed ChainManager to BlockChain * Checkpointing is no longer required and never really properly worked when the state was corrupted. | ||||
* | eth, eth/downloader: don't report stall if fetcher filled the block | Péter Szilágyi | 2015-07-29 | 1 | -1/+1 |
| | |||||
* | all: fix license headers one more time | Felix Lange | 2015-07-24 | 1 | -1/+1 |
| | | | | I forgot to update one instance of "go-ethereum" in commit 3f047be5a. | ||||
* | all: update license headers to distiguish GPL/LGPL | Felix Lange | 2015-07-23 | 1 | -4/+4 |
| | | | | | All code outside of cmd/ is licensed as LGPL. The headers now reflect this by calling the whole work "the go-ethereum library". | ||||
* | all: update license information | Felix Lange | 2015-07-07 | 1 | -0/+16 |
| | |||||
* | eth: clean up peer struct a bit, fix double txn bcast | Péter Szilágyi | 2015-07-01 | 1 | -9/+1 |
| | |||||
* | eth, eth/fetcher: separate notification sync mechanism | Péter Szilágyi | 2015-06-18 | 1 | -137/+8 |
| | |||||
* | eth, eth/downloader: fix processing interrupt caused by temp cancel | Péter Szilágyi | 2015-06-18 | 1 | -1/+1 |
| | |||||
* | eth: don't refetch non fitting blocks to avoid duplicates | Péter Szilágyi | 2015-06-15 | 1 | -1/+1 |
| | |||||
* | eth, eth/downloader: do async block fetches, add dl tests | Péter Szilágyi | 2015-06-15 | 1 | -1/+1 |
| | |||||
* | eth, eth/downloader: move block processing into the downlaoder | Péter Szilágyi | 2015-06-15 | 1 | -50/+3 |
| | |||||
* | eth, eth/downloader: move peer removal into downloader | Péter Szilágyi | 2015-06-15 | 1 | -30/+2 |
| | |||||
* | eth: dedup fetches to ensure no blocks are pulled twice | Péter Szilágyi | 2015-06-11 | 1 | -5/+23 |
| | |||||
* | eth: randomly fetch announced block (don't hammer origin) | Péter Szilágyi | 2015-06-11 | 1 | -4/+5 |
| | |||||
* | eth: discard fetched blocks that don't fit (no goroutine) | Péter Szilágyi | 2015-06-11 | 1 | -13/+13 |
| | |||||
* | eth: limit number of sent transactions based on message size | Felix Lange | 2015-06-09 | 1 | -0/+94 |
| | | | | | | | | | | | | | | Nodes that are out of sync will queue many transactions, which causes the initial transactions message to grow very large. Larger transactions messages can make communication impossible if the message is too big to send. Big transactions messages also exhaust egress bandwidth, which degrades other peer connections. The new approach to combat these issues is to send transactions in smaller batches. This commit introduces a new goroutine that handles delivery of all initial transaction transfers. Size-limited packs of transactions are sent to one peer at a time, conserving precious egress bandwidth. | ||||
* | eth: fix a data race in the hash announcement processing | Péter Szilágyi | 2015-06-09 | 1 | -10/+18 |
| | |||||
* | eth: fix data race accessing peer.td | Péter Szilágyi | 2015-06-09 | 1 | -1/+1 |
| | |||||
* | eth: fix data race accessing peer.recentHash | Péter Szilágyi | 2015-06-09 | 1 | -3/+4 |
| | |||||
* | eth: clean up pending announce download map, polish logs | Péter Szilágyi | 2015-06-09 | 1 | -13/+25 |
| | |||||
* | eth: split and handle explicitly vs. download requested blocks | Péter Szilágyi | 2015-06-09 | 1 | -0/+56 |
| | |||||
* | eth: fetch announced hashes from origin, periodically | Péter Szilágyi | 2015-06-09 | 1 | -3/+55 |
| | |||||
* | eth, eth/downloader: fix #1098, elevate empty hash errors to peer drops | Péter Szilágyi | 2015-06-05 | 1 | -1/+1 |
| | |||||
* | core, eth/downloader: expose the bad hashes, check in downloader | Péter Szilágyi | 2015-05-28 | 1 | -2/+1 |
| | |||||
* | core: check negative value transactions. Closes #1109 | obscuren | 2015-05-27 | 1 | -1/+0 |
| | |||||
* | eth, eth/downloader: surface downloaded block origin, drop on error | Péter Szilágyi | 2015-05-26 | 1 | -3/+11 |
| | |||||
* | expand acronym in log message from TD | Jason Carver | 2015-05-23 | 1 | -1/+1 |
| | | | to total difficulty | ||||
* | eth: make the peer set thread safe | Péter Szilágyi | 2015-05-19 | 1 | -17/+19 |
| | |||||
* | eth, eth/downloader: detect and handle madeup hash attacks | Péter Szilágyi | 2015-05-15 | 1 | -1/+1 |
| | |||||
* | eth: drop a sync peer if it sends an invalid hash chain | Péter Szilágyi | 2015-05-15 | 1 | -1/+1 |
| | |||||
* | eth, eth/downloader: prevent hash repeater attack | Péter Szilágyi | 2015-05-15 | 1 | -2/+4 |
| | |||||
* | eth, eth/downloader: remove parent verification from the downlaoder | Péter Szilágyi | 2015-05-14 | 1 | -9/+4 |
| | |||||
* | eth, eth/downloader: handle a potential unknown parent attack | Péter Szilágyi | 2015-05-14 | 1 | -6/+17 |
| | |||||
* | eth, eth/downloader: moved pending queue error message to debug | obscuren | 2015-05-11 | 1 | -1/+2 |
| | |||||
* | eth: added a cancel method for the downloader | obscuren | 2015-05-10 | 1 | -0/+3 |
| | | | | | | | | | Added a cancel method to the downloader which gracefully shuts down any active syncing process (hash fetching or block downloading) and resets the queue and remove any pending blocks. Issue with the downloader which would stall because of an active ongoing process when an invalid block was found. | ||||
* | eth, eth/downloader: handle sync errors a bit more gracefully | Péter Szilágyi | 2015-05-08 | 1 | -26/+28 |
| | |||||
* | eth, eth/downloader: make synchronize thread safe | Péter Szilágyi | 2015-05-08 | 1 | -12/+4 |
| | |||||
* | cmd/geth, eth: bump version & tmp fix for incorrect TD peers | obscuren | 2015-05-03 | 1 | -0/+7 |
| | |||||
* | eth,core: changed NewTicker to Tick | obscuren | 2015-05-03 | 1 | -4/+4 |
| | |||||
* | eth, eth/downloader: Moved block processing & graceful shutdown | obscuren | 2015-05-01 | 1 | -0/+101 |
The downloader is no longer responsible for processing blocks. The eth-protocol handler now takes care of this instead. Added graceful shutdown during block processing. Closes #846 |