Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | core, miner: tx pool drops txs below ask price | obscuren | 2015-06-15 | 1 | -0/+1 |
| | |||||
* | eth, core: interupt the chain processing on stop | obscuren | 2015-06-12 | 1 | -1/+1 |
| | | | | | Added an additional channel which is used to interupt the chain manager when it's processing blocks. | ||||
* | Merge pull request #1227 from karalabe/block-fetcher-optimisations | Jeffrey Wilcke | 2015-06-11 | 1 | -18/+37 |
|\ | | | | | eth: optimize the notification/explicit fetch mechanism | ||||
| * | 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 |
| | | |||||
* | | Merge pull request #1224 from karalabe/report-import-progress | Jeffrey Wilcke | 2015-06-11 | 1 | -4/+42 |
|\ \ | | | | | | | cmd/geth, eth/downloader: collect and report import progress too | ||||
| * | | eth/downloader: fetch the block hashes on the fly, when needed | Péter Szilágyi | 2015-06-11 | 1 | -9/+5 |
| | | | |||||
| * | | cmd/geth, eth/downloader: rough guess at the import eta | Péter Szilágyi | 2015-06-10 | 1 | -2/+13 |
| | | | |||||
| * | | cmd/geth, eth/downloader: collect and report import progress too | Péter Szilágyi | 2015-06-10 | 1 | -4/+35 |
| |/ | |||||
* / | core: fixed race condition in the transaction pool | obscuren | 2015-06-10 | 1 | -5/+0 |
|/ | | | | Removed `Stop/Start` mechanism from the transaction pool. | ||||
* | core, eth: document that result of GetTransactions is modifiable | Felix Lange | 2015-06-09 | 1 | -2/+4 |
| | |||||
* | eth/downloader: fix hash fetch timeout handling | Felix Lange | 2015-06-09 | 1 | -12/+18 |
| | | | | Fixes #1206 | ||||
* | eth: add protocol tests | Felix Lange | 2015-06-09 | 1 | -336/+190 |
| | | | | The protocol tests were commented out when eth/downloader was introduced. | ||||
* | eth: limit number of sent transactions based on message size | Felix Lange | 2015-06-09 | 2 | -9/+109 |
| | | | | | | | | | | | | | | 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: limit number of sent blocks based on message size | Felix Lange | 2015-06-09 | 1 | -2/+11 |
| | | | | | If blocks get larger, sending 256 at once can make messages large enough to exceed the low-level write timeout. | ||||
* | 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 | 3 | -14/+33 |
| | |||||
* | eth: fix data race accessing peer.recentHash | Péter Szilágyi | 2015-06-09 | 3 | -12/+32 |
| | |||||
* | Merge pull request #1188 from karalabe/newblockhashes-proposal | Jeffrey Wilcke | 2015-06-09 | 4 | -81/+262 |
|\ | | | | | eth: implement the NewBlockHashes protocol proposal | ||||
| * | eth: clean up pending announce download map, polish logs | Péter Szilágyi | 2015-06-09 | 2 | -14/+26 |
| | | |||||
| * | eth: split and handle explicitly vs. download requested blocks | Péter Szilágyi | 2015-06-09 | 2 | -23/+81 |
| | | |||||
| * | eth: fetch announced hashes from origin, periodically | Péter Szilágyi | 2015-06-09 | 2 | -32/+80 |
| | | |||||
| * | eth: mark blocks as known when broadcasting hashes too | Péter Szilágyi | 2015-06-08 | 1 | -0/+3 |
| | | |||||
| * | eth: implement the NewBlockHashes protocol proposal | Péter Szilágyi | 2015-06-08 | 3 | -63/+123 |
| | | |||||
* | | Merge pull request #1153 from karalabe/downloader-banned-starvation-attack | Jeffrey Wilcke | 2015-06-09 | 6 | -177/+315 |
|\ \ | | | | | | | eth/downloader: gather and ban hashes from invalid chains | ||||
| * | | eth/downloader: test registration rejection on head ban | Péter Szilágyi | 2015-06-08 | 1 | -2/+10 |
| | | | |||||
| * | | eth/downloader: reject peer registration if head is banned | Péter Szilágyi | 2015-06-08 | 1 | -4/+15 |
| | | | |||||
| * | | eth/downloader: cap the hash ban set, add test for it | Péter Szilágyi | 2015-06-08 | 6 | -12/+64 |
| | | | |||||
| * | | eth/downloader: fix throttling test to be less timing dependent | Péter Szilágyi | 2015-06-08 | 1 | -3/+7 |
| | | | |||||
| * | | eth/downloader: fix another rebase error | Péter Szilágyi | 2015-06-08 | 1 | -2/+1 |
| | | | |||||
| * | | eth/downloader: preallocate the block cache | Péter Szilágyi | 2015-06-08 | 3 | -21/+14 |
| | | | |||||
| * | | eth/downloader: fix merge compile error | Péter Szilágyi | 2015-06-08 | 1 | -1/+1 |
| | | | |||||
| * | | eth/downloader: don't block hash deliveries while pulling blocks | Péter Szilágyi | 2015-06-08 | 1 | -17/+14 |
| | | | |||||
| * | | eth/downloader: update test for shitty travis | Péter Szilágyi | 2015-06-08 | 1 | -1/+1 |
| | | | |||||
| * | | eth/downloader: clean up and simplify the code a bit | Péter Szilágyi | 2015-06-08 | 1 | -13/+3 |
| | | | |||||
| * | | eth/downloader: short circuit sync if head hash is banned | Péter Szilágyi | 2015-06-08 | 1 | -0/+4 |
| | | | |||||
| * | | eth/downloader: accumulating hash bans for reconnecting attackers | Péter Szilágyi | 2015-06-08 | 2 | -5/+126 |
| | | | |||||
| * | | eth/downloader: clean up tests and unused variables | Péter Szilágyi | 2015-06-08 | 2 | -120/+79 |
| |/ | |||||
* | | core: write accounts to statedb. Closes #1210 | obscuren | 2015-06-09 | 1 | -1/+1 |
| | | |||||
* | | core: settable genesis nonce | obscuren | 2015-06-09 | 1 | -1/+6 |
|/ | | | | | | | You can set the nonce of the block with `--genesisnonce`. When the genesis nonce changes and it doesn't match with the first block in your database it will fail. A new `datadir` must be given if the nonce of the genesis block changes. | ||||
* | Merge pull request #1189 from karalabe/downloader-polishes | Jeffrey Wilcke | 2015-06-05 | 3 | -19/+50 |
|\ | | | | | eth/downloader: handle timeouts more gracefully | ||||
| * | eth/downloader: differentiate stale and nonexistent deliveries | Péter Szilágyi | 2015-06-05 | 2 | -19/+46 |
| | | |||||
| * | eth/downloader: log hard timeouts and reset capacity | Péter Szilágyi | 2015-06-05 | 2 | -0/+4 |
| | | |||||
* | | eth, eth/downloader: fix #1098, elevate empty hash errors to peer drops | Péter Szilágyi | 2015-06-05 | 2 | -3/+3 |
|/ | |||||
* | Merge pull request #1181 from obscuren/txpool_fixes | Jeffrey Wilcke | 2015-06-05 | 1 | -30/+1 |
|\ | | | | | cmd: transaction pool fixes and improvements | ||||
| * | core, eth, miner: moved nonce management to tx pool. | obscuren | 2015-06-04 | 1 | -29/+0 |
| | | | | | | | | | | | | | | | | Removed the managed tx state from the chain manager to the transaction pool where it's much easier to keep track of nonces (and manage them). The transaction pool now also uses the queue and pending txs differently where queued txs are now moved over to the pending queue (i.e. txs ready for processing and propagation). | ||||
| * | cmd/utils, eth: core.NewBlockProcessor no longer needs TxPool | Felix Lange | 2015-06-04 | 1 | -1/+1 |
| | | |||||
* | | eth/downloader: drop log entry from peer, it's covered already | Péter Szilágyi | 2015-06-04 | 1 | -5/+0 |
| | | |||||
* | | eth/downloader: log after state updates, easier to debug | Péter Szilágyi | 2015-06-04 | 1 | -5/+3 |
| | | |||||
* | | eth/downloader: fix #1178, don't request blocks beyond the cache bounds | Péter Szilágyi | 2015-06-04 | 3 | -15/+35 |
|/ | |||||
* | eth/downloader: demote peers if they exceed the soft limits at 1 blocks already | Péter Szilágyi | 2015-06-03 | 1 | -3/+8 |
| | |||||
* | eth/downloader: add a basic block download congestion control | Péter Szilágyi | 2015-06-03 | 5 | -55/+67 |
| | |||||
* | Update bootnode | Taylor Gerring | 2015-06-01 | 1 | -1/+1 |
| | |||||
* | eth: 100% block propogation | obscuren | 2015-05-28 | 1 | -2/+1 |
| | |||||
* | core, eth/downloader: expose the bad hashes, check in downloader | Péter Szilágyi | 2015-05-28 | 2 | -2/+17 |
| | |||||
* | eth: hard disconnect if a peer is flaky | Péter Szilágyi | 2015-05-27 | 1 | -4/+12 |
| | |||||
* | Merge pull request #1108 from karalabe/fine-seeding | Felix Lange | 2015-05-27 | 1 | -7/+5 |
|\ | | | | | Fine tune seeder and p2p peer handling | ||||
| * | cmd/geth, cmd/utils, eth, p2p: pass and honor a no discovery flag | Péter Szilágyi | 2015-05-27 | 1 | -0/+2 |
| | | |||||
| * | eth, p2p: start the p2p server even if maxpeers == 0 | Péter Szilágyi | 2015-05-26 | 1 | -7/+3 |
| | | |||||
* | | core: check negative value transactions. Closes #1109 | obscuren | 2015-05-27 | 1 | -1/+0 |
| | | |||||
* | | eth/downloader: silence "Added N blocks from..." if N == 0 | Péter Szilágyi | 2015-05-26 | 1 | -1/+1 |
|/ | |||||
* | Merge pull request #1014 from fjl/p2p-dialer-3000 | Jeffrey Wilcke | 2015-05-26 | 1 | -1/+1 |
|\ | | | | | p2p: new dialer, peer management without locks | ||||
| * | eth: stop p2p.Server on shutdown | Felix Lange | 2015-05-25 | 1 | -1/+1 |
| | | |||||
* | | eth, eth/downloader: surface downloaded block origin, drop on error | Péter Szilágyi | 2015-05-26 | 5 | -23/+39 |
| | | |||||
* | | expand acronym in log message from TD | Jason Carver | 2015-05-23 | 1 | -1/+1 |
|/ | | | to total difficulty | ||||
* | Merge pull request #1055 from ethersphere/autodag | Jeffrey Wilcke | 2015-05-22 | 1 | -0/+88 |
|\ | | | | | automatic DAG pregeneration for smooth epoch transitions | ||||
| * | automatic DAG pregeneration for smooth epoch transitions | zelig | 2015-05-21 | 1 | -0/+88 |
| | | | | | | | | | | | | | | | | - backend: AutoDAG bool flag passed from cli/eth.Config to ethereum, autoDAG loop started if true - backend: autoDAG loop start/stop, remove previous DAG - cli: AutoDAG bool flag, off by default, but automatically ON if mining - admin jsre: add startAutoDAG stopAutoDAG and makeDAG in miner section - switch on/off DAG autogeneration when miner started/stopped on console | ||||
* | | Merge pull request #1064 from karalabe/downloader-attacks | Jeffrey Wilcke | 2015-05-22 | 6 | -28/+99 |
|\ \ | |/ |/| | Fix two additional download vulnerabilities | ||||
| * | eth, eth/downloader: remove duplicate consts, bump hash fetch to 2K | Péter Szilágyi | 2015-05-21 | 6 | -13/+14 |
| | | |||||
| * | eth/downloader: circumvent a forged block chain with known parent attack | Péter Szilágyi | 2015-05-21 | 2 | -13/+56 |
| | | |||||
| * | eth/downloader: prevent a peer from dripping bad hashes | Péter Szilágyi | 2015-05-21 | 2 | -9/+36 |
| | | |||||
* | | eth: reduced max open files for LevelDB | obscuren | 2015-05-21 | 1 | -1/+1 |
| | | |||||
* | | Merge pull request #1048 from ethersphere/cli-fixes | Jeffrey Wilcke | 2015-05-20 | 1 | -0/+20 |
|\ \ | | | | | | | CLI, JSRE admin and Solc improvements | ||||
| * | | solc now in ethereum, fixes solc path setting; setSolc() didnt work | zelig | 2015-05-20 | 1 | -0/+20 |
| |/ | |||||
* | | Merge pull request #1050 from karalabe/handle-slow-download-tester | Jeffrey Wilcke | 2015-05-20 | 1 | -1/+1 |
|\ \ | | | | | | | eth/downloader: fix test to it doesn't time out on a slow machine | ||||
| * | | eth/downloader: fix test to it doesn't time out on a slow machine | Péter Szilágyi | 2015-05-20 | 1 | -1/+1 |
| | | | |||||
* | | | eth: fix odd method names in peer set | Péter Szilágyi | 2015-05-20 | 2 | -7/+7 |
| |/ |/| | |||||
* | | Merge pull request #1035 from karalabe/eth-threadsafe-peers | Jeffrey Wilcke | 2015-05-19 | 3 | -68/+150 |
|\ \ | | | | | | | eth: make the peer-set thread safe | ||||
| * | | eth: remote a superfluous peerSet method | Péter Szilágyi | 2015-05-19 | 1 | -12/+0 |
| | | | |||||
| * | | eth: make the peer set thread safe | Péter Szilágyi | 2015-05-19 | 3 | -68/+162 |
| |/ | |||||
* / | core: parallelise nonce checking when processing blocks | obscuren | 2015-05-18 | 1 | -2/+2 |
|/ | | | | | | ChainManager now uses a parallel approach to block processing where all nonces are checked seperatly from the block processing process. This speeds up the process by about 3 times on my i7 | ||||
* | eth/downloader: moved start event | obscuren | 2015-05-16 | 1 | -2/+2 |
| | | | | Start event has moved because it could possibly could stall the miner | ||||
* | eth, cmd/geth: start mining from console respects CLI flag | obscuren | 2015-05-16 | 1 | -0/+2 |
| | |||||
* | Merge pull request #996 from karalabe/fix-potential-crosscheck-race | Jeffrey Wilcke | 2015-05-16 | 1 | -5/+7 |
|\ | | | | | eth/downloader: circumvent download race between crosscheck and hashes | ||||
| * | eth/downloader: circumvent download race between crosscheck and hashes | Péter Szilágyi | 2015-05-16 | 1 | -5/+7 |
| | | |||||
* | | eth/downloader: fix #992, where tests may time out on a slow machine | Péter Szilágyi | 2015-05-16 | 1 | -0/+6 |
|/ | |||||
* | eth/downloader: fix cancel channel double close | Péter Szilágyi | 2015-05-16 | 1 | -3/+8 |
| | |||||
* | eth/downloader: circumvent a fake blockchain attack | Péter Szilágyi | 2015-05-15 | 2 | -27/+58 |
| | |||||
* | eth/downloader: don't penalize for stale cross checks | Péter Szilágyi | 2015-05-15 | 1 | -7/+17 |
| | |||||
* | eth, eth/downloader: detect and handle madeup hash attacks | Péter Szilágyi | 2015-05-15 | 4 | -43/+110 |
| | |||||
* | eth: drop a sync peer if it sends an invalid hash chain | Péter Szilágyi | 2015-05-15 | 1 | -1/+1 |
| | |||||
* | eth/downloader: circumvent hash reordering attacks | Péter Szilágyi | 2015-05-15 | 3 | -49/+88 |
| | |||||
* | eth/downloader: check sync after failed attacks | Péter Szilágyi | 2015-05-15 | 2 | -7/+23 |
| | |||||
* | eth/downloader: add a test for detecting missing blocks | Péter Szilágyi | 2015-05-15 | 2 | -8/+24 |
| | |||||
* | eth, eth/downloader: prevent hash repeater attack | Péter Szilágyi | 2015-05-15 | 4 | -15/+50 |
| | |||||
* | eth/downloader: fixed test | obscuren | 2015-05-15 | 1 | -1/+3 |
| | |||||
* | eth, eth/downloader, miner: use download events to check miner start | obscuren | 2015-05-15 | 3 | -3/+23 |
| | |||||
* | Merge pull request #974 from karalabe/downloader-fix-unknown-parent-attack | Jeffrey Wilcke | 2015-05-14 | 4 | -38/+92 |
|\ | | | | | eth, eth/downloader: handle a potential unknown parent attack | ||||
| * | eth/downloader: add a small additional check to the test | Péter Szilágyi | 2015-05-14 | 1 | -0/+3 |
| | | |||||
| * | eth/downloader: remove a previous leftover | Péter Szilágyi | 2015-05-14 | 1 | -1/+0 |
| | | |||||
| * | eth, eth/downloader: remove parent verification from the downlaoder | Péter Szilágyi | 2015-05-14 | 4 | -46/+17 |
| | | |||||
| * | eth, eth/downloader: handle a potential unknown parent attack | Péter Szilágyi | 2015-05-14 | 3 | -31/+112 |
| | | |||||
* | | Merge pull request #950 from karalabe/downloader-cancel-sync | Jeffrey Wilcke | 2015-05-14 | 1 | -32/+37 |
|\ \ | | | | | | | eth/downloader: fix deliveries to check for sync cancels | ||||
| * | | eth/downloader: remove a redundant sync progress check | Péter Szilágyi | 2015-05-13 | 1 | -4/+0 |
| | | | |||||
| * | | eth/downloader: add a user sync notificaton | Péter Szilágyi | 2015-05-13 | 1 | -0/+5 |
| | | | |||||
| * | | eth/downloader: sync the cancel channel during cancel too | Péter Szilágyi | 2015-05-13 | 1 | -21/+4 |
| | | | |||||
| * | | eth/downloader: fix deliveries to check for sync cancels | Péter Szilágyi | 2015-05-13 | 1 | -10/+31 |
| |/ | |||||
* / | eth/downloader: fix nil panic caused by wrong variable use | Péter Szilágyi | 2015-05-13 | 1 | -1/+1 |
|/ | |||||
* | eth/downloader: fix active peer shadowing, polish func names | Péter Szilágyi | 2015-05-13 | 3 | -24/+16 |
| | |||||
* | eth: 100% tx propagation | obscuren | 2015-05-13 | 1 | -1/+1 |
| | |||||
* | Fix common.Address / []byte type conversions | Gustav Simonsson | 2015-05-12 | 1 | -1/+1 |
| | |||||
* | Use common.Address type for accounts.Address | Gustav Simonsson | 2015-05-12 | 1 | -5/+8 |
| | |||||
* | Merge pull request #933 from bas-vk/issue928 | Jeffrey Wilcke | 2015-05-12 | 1 | -7/+6 |
|\ | | | | | replaced path with platform aware filepath module | ||||
| * | replaced several path.* with filepath.* which is platform independent | Bas van Kervel | 2015-05-12 | 1 | -7/+6 |
| | | |||||
* | | eth, ethdb: lower the amount of open files & improve err messages for db | obscuren | 2015-05-12 | 1 | -0/+1 |
|/ | | | | Closes #880 | ||||
* | eth, ethdb: lower the amount of open files & improve err messages for db | obscuren | 2015-05-12 | 1 | -3/+6 |
| | | | | Closes #880 | ||||
* | eth, eth/downloader: moved pending queue error message to debug | obscuren | 2015-05-11 | 2 | -3/+4 |
| | |||||
* | cmd/geth, miner, backend, xeth: Fixed miner threads to be settable | obscuren | 2015-05-11 | 1 | -6/+6 |
| | | | | | Miner threads are now settable through the admin interface (closes #897) and specify 0 CPU worker threads when eth_getWork is called (closes #916) | ||||
* | eth/downloader: use count instead of peers, clearer | Péter Szilágyi | 2015-05-11 | 2 | -4/+4 |
| | |||||
* | eth/downloader: revert to demotion, use harsher penalty | Péter Szilágyi | 2015-05-11 | 2 | -8/+19 |
| | |||||
* | eth/downloader: fix #910, thread safe peers & polishes | Péter Szilágyi | 2015-05-11 | 4 | -161/+210 |
| | |||||
* | core, eth, miner: improved tx removal & fatal error on db sync err | obscuren | 2015-05-11 | 1 | -3/+5 |
| | | | | | | | | * core: Added GasPriceChange event * eth: When one of the DB flush methods error a fatal error log message is given. Hopefully this will prevent corrupted databases from occuring. * miner: remove transactions with low gas price. Closes #906, #903 | ||||
* | eth: added a cancel method for the downloader | obscuren | 2015-05-10 | 3 | -2/+106 |
| | | | | | | | | | 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. | ||||
* | cmd/geth, cmd/mist, eth, flags: renamed loglevel to verbosity | obscuren | 2015-05-09 | 1 | -7/+11 |
| | |||||
* | Merge pull request #863 from karalabe/ordered-block-download | Jeffrey Wilcke | 2015-05-08 | 7 | -383/+468 |
|\ | | | | | eth/downloader: prioritize block fetch based on chain position, cap memo... | ||||
| * | eth/downloader: fix leftover state between syncs | Péter Szilágyi | 2015-05-08 | 1 | -1/+4 |
| | | |||||
| * | eth, eth/downloader: handle sync errors a bit more gracefully | Péter Szilágyi | 2015-05-08 | 4 | -48/+48 |
| | | |||||
| * | eth, eth/downloader: make synchronize thread safe | Péter Szilágyi | 2015-05-08 | 5 | -82/+22 |
| | | |||||
| * | eth/downloader: fix priority queue reset, add throttling test | Péter Szilágyi | 2015-05-07 | 1 | -0/+48 |
| | | |||||
| * | eth/downloader: fix expiration not running while fetching | Péter Szilágyi | 2015-05-07 | 2 | -34/+32 |
| | | |||||
| * | eth/downloader: prioritize block fetch based on chain position, cap memory use | Péter Szilágyi | 2015-05-07 | 5 | -273/+369 |
| | | |||||
* | | cmd, eth, p2p: introduce pending peer cli arg, add tests | Péter Szilágyi | 2015-05-07 | 1 | -12/+14 |
|/ | |||||
* | fixed merge issue | obscuren | 2015-05-07 | 1 | -4/+49 |
|\ | |||||
| * | eth, p2p: add trusted node list beside static list | Péter Szilágyi | 2015-05-04 | 1 | -12/+12 |
| | | |||||
| * | eth, p2p: rename trusted nodes to static, drop inbound extra slots | Péter Szilágyi | 2015-05-01 | 1 | -11/+11 |
| | | |||||
| * | cmd, eth, p2p: fix review issues enumerated by Felix | Péter Szilágyi | 2015-04-30 | 1 | -5/+5 |
| | | |||||
| * | cmd/geth, cmd/utils, eth: internalize trusted node config file | Péter Szilágyi | 2015-04-30 | 1 | -23/+20 |
| | | |||||
| * | cmd/geth, cmd/mist, cmd/utils, eth, p2p: support trusted peers | Péter Szilágyi | 2015-04-30 | 1 | -4/+52 |
| | | |||||
* | | Merge pull request #791 from fjl/discover-sha3-distance | Jeffrey Wilcke | 2015-05-07 | 1 | -2/+2 |
|\ \ | | | | | | | p2p/discover: sha3-based node distance | ||||
| * | | p2p/discover: new endpoint format | Felix Lange | 2015-04-30 | 1 | -2/+2 |
| |/ | | | | | | | | | | | This commit changes the discovery protocol to use the new "v4" endpoint format, which allows for separate UDP and TCP ports and makes it possible to discover the UDP address after NAT. | ||||
* | | Integrate new ethash API and change geth makedag cmd | Gustav Simonsson | 2015-05-05 | 1 | -2/+1 |
| | | |||||
* | | downloader: hash downloading recovery | obscuren | 2015-05-03 | 2 | -29/+71 |
| | | | | | | | | | | | | If a peer fails to respond (disconnect, etc) during hash downloading switch to a different peer which has it's current_hash in the queue's peer set. | ||||
* | | cmd/geth, eth: bump version & tmp fix for incorrect TD peers | obscuren | 2015-05-03 | 1 | -0/+7 |
| | | |||||
* | | eth/downloader: put back hashes on block overflow error | obscuren | 2015-05-03 | 1 | -19/+14 |
| | | |||||
* | | eth/downloader: changed has to blockHashes for chain linking | obscuren | 2015-05-03 | 1 | -1/+1 |
| | | |||||
* | | eth/downloader: added additional tests | obscuren | 2015-05-03 | 2 | -4/+73 |
| | | |||||
* | | 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 | 6 | -291/+347 |
| | | | | | | | | | | | | | | 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 | ||||
* | | eth/downloader: delete blocks from queue | obscuren | 2015-04-30 | 2 | -3/+15 |
| | | |||||
* | | core: added a wait group to chain manager for graceful shutdown | obscuren | 2015-04-30 | 1 | -0/+1 |
| | | |||||
* | | core, eth: verify td of received blocks | obscuren | 2015-04-30 | 1 | -1/+21 |
| | | |||||
* | | eth, eth/downloader: remove bad peers from peer set | obscuren | 2015-04-30 | 2 | -17/+29 |
|/ | | | | Peers in the eth protocol handler are now being ignored for catch up. | ||||
* | eth: rely on p2p to determine block propagation | obscuren | 2015-04-30 | 1 | -1/+1 |
| | |||||
* | core/types, eth: meassure and display propagation times | obscuren | 2015-04-30 | 1 | -1/+3 |
| | |||||
* | eth/downloader: drop block | obscuren | 2015-04-30 | 1 | -1/+1 |
| | |||||
* | core: fixed tetst to reflect (int, error) return by insertChain | obscuren | 2015-04-29 | 1 | -2/+2 |
| | |||||
* | eth/downloader: ignore orphan blocks in the downloader. | obscuren | 2015-04-29 | 1 | -5/+9 |
| | | | | | | When blocks have been sorted and are being processed, orphan blocks should be ignored and thrown out. The protocol handler is responsible for downloading blocks which have missing parents. | ||||
* | core: return the index of the block that failed when inserting a chain | obscuren | 2015-04-29 | 2 | -6/+5 |
| | |||||
* | eth/downloader: reset the chain when parent is missing during processing | obscuren | 2015-04-29 | 1 | -0/+2 |
| | |||||
* | eth: check if downloader is busy before showing log message | obscuren | 2015-04-29 | 2 | -0/+9 |
| | |||||
* | Merge pull request #793 from karalabe/discovery-node-cache | Jeffrey Wilcke | 2015-04-28 | 1 | -0/+3 |
|\ | | | | | p2p/discover: persistent node database | ||||
| * | cmd/bootnode, eth, p2p, p2p/discover: use a fancier db design | Péter Szilágyi | 2015-04-24 | 1 | -8/+2 |
| | | |||||
| * | cmd/bootnode, eth, p2p, p2p/discover: clean up the seeder and mesh into eth. | Péter Szilágyi | 2015-04-24 | 1 | -3/+10 |
| | | |||||
| * | cmd, eth, p2p, p2p/discover: init and clean up the seed cache | Péter Szilágyi | 2015-04-24 | 1 | -0/+2 |
| | | |||||
* | | eth: pull in a lost merge change | Péter Szilágyi | 2015-04-28 | 1 | -2/+4 |
| | | | | | | | | Ref: https://github.com/Gustav-Simonsson/go-ethereum/commit/21c4c155ee68890a069654dcc5bc083a867f65cd | ||||
* | | Merge pull request #805 from obscuren/download_improvements | Jeffrey Wilcke | 2015-04-25 | 8 | -214/+160 |
|\ \ | | | | | | | eth, eth/downloader: improve downloader and remove asynchronousness | ||||
| * | | eth/downloader: removed update loop and synch channel | obscuren | 2015-04-25 | 1 | -25/+0 |
| | | | |||||
| * | | xeth, core, cmd/utils: Transaction can not be over block gas limit | obscuren | 2015-04-24 | 1 | -1/+1 |
| | | | | | | | | | | | | Transactions will be invalidated when the tx.gas_limit > block.gas_limit | ||||
| * | | eth: added a few informative messages regarding downloading | obscuren | 2015-04-24 | 1 | -0/+6 |
| | | | |||||
| * | | eth/downloader: fixed tests | obscuren | 2015-04-24 | 1 | -12/+8 |
| | | | |||||
| * | | eth, eth/downloader: simplified synchronisation process | obscuren | 2015-04-24 | 2 | -31/+24 |
| | | | |||||
| * | | eth/downloader: removed peer td management and best peer selection | obscuren | 2015-04-24 | 2 | -16/+2 |
| | | | |||||
| * | | eth, eth/downloader: don't require td on downloader. Fixed tests | obscuren | 2015-04-24 | 4 | -25/+22 |
| | | | |||||
| * | | eth, eth/downloader: moved peer selection to protocol handler | obscuren | 2015-04-24 | 4 | -134/+127 |
| | | | |||||
* | | | backend: start miner in its go routine (no wait to generate DAG) | zelig | 2015-04-24 | 1 | -2/+1 |
|/ / | |||||
* / | eth: cleanup | obscuren | 2015-04-24 | 1 | -5/+1 |
|/ | |||||
* | Merge pull request #797 from tgerring/bootnodes | Jeffrey Wilcke | 2015-04-24 | 1 | -2/+3 |
|\ | | | | | Bootnodes update | ||||
| * | Updated bootnodes | Taylor Gerring | 2015-04-24 | 1 | -2/+3 |
| | | | | | | | | Update pub key for EU node and add new SA node | ||||
* | | Moved leveldb update loop to eth/backend | Bas van Kervel | 2015-04-23 | 1 | -18/+49 |
|/ | | | | | | change order of block insert and update LastBlock bugfix, wrong hash stored in blockDb | ||||
* | eth: moved mined, tx events to protocol-hnd and improved tx propagation | obscuren | 2015-04-23 | 3 | -28/+78 |
| | | | | | | | | | Transactions are now propagated to peers from which we have not yet received the transaction. This will significantly reduce the chatter on the network. Moved new mined block handler to the protocol handler and moved transaction handling to protocol handler. | ||||
* | eth: start tx pool in a goroutine | obscuren | 2015-04-23 | 1 | -1/+1 |
| | |||||
* | Merge pull request #756 from Gustav-Simonsson/block_test_improvements | Jeffrey Wilcke | 2015-04-21 | 1 | -1/+4 |
|\ | | | | | Block test improvements | ||||
| * | eth: use NewDB hook also for extra DB | Felix Lange | 2015-04-19 | 1 | -1/+4 |
| | | | | | | | | (cherry picked from commit d5083033f15bb815a6212eddae16a7125db58738) | ||||
* | | Merge branch 'frontier/natspec' of ↵ | obscuren | 2015-04-21 | 1 | -0/+3 |
|\ \ | | | | | | | | | | https://github.com/ethersphere/go-ethereum into ethersphere-frontier/natspec | ||||
| * | | NatSpec cli option, resolver tests passing | zsfelfoldi | 2015-04-20 | 1 | -0/+3 |
| |/ | |||||
* / | core: added chain head reset to known block | obscuren | 2015-04-20 | 2 | -1/+4 |
|/ | |||||
* | geth: admin download status | obscuren | 2015-04-20 | 1 | -11/+15 |
| | |||||
* | downloader: fixed tests with low ttl | obscuren | 2015-04-19 | 2 | -2/+3 |
| | |||||
* | moved | obscuren | 2015-04-19 | 1 | -6/+6 |
| | |||||
* | Merge branch 'rlp-size-validation' of https://github.com/fjl/go-ethereum ↵ | obscuren | 2015-04-19 | 1 | -6/+6 |
|\ | | | | | | | | | | | | | into fjl-rlp-size-validation Conflicts: eth/protocol.go | ||||
| * | cmd/rlpdump, cmd/utils, eth, p2p, whisper: use rlp input limit | Felix Lange | 2015-04-17 | 1 | -3/+3 |
| | | |||||
* | | Merge branch 'develop' of github.com-obscure:ethereum/go-ethereum into develop | obscuren | 2015-04-19 | 1 | -4/+1 |
|\ \ | |||||
| * \ | Merge pull request #749 from fjl/fix-nodekey-persistence | Jeffrey Wilcke | 2015-04-19 | 1 | -4/+1 |
| |\ \ | | | | | | | | | Fix p2p node key persistence | ||||
| | * | | eth: fix node key persistence | Felix Lange | 2015-04-19 | 1 | -4/+1 |
| | | | | | | | | | | | | | | | | | | | | | | | | crypto.LoadECDSA has been modified to expect hex data. The key was being saved as raw bytes, causing the file to be rewritten on every start. | ||||
* | | | | Removed debug println | obscuren | 2015-04-19 | 1 | -3/+0 |
| | | | | |||||
* | | | | eth: drop blocks with low TD | obscuren | 2015-04-19 | 2 | -5/+7 |
| | | | | |||||
* | | | | downloader: moved chunk ignoring. Fixes issue with catching up | obscuren | 2015-04-19 | 4 | -31/+44 |
|/ / / | |||||
* | | | eth: temp 100% block propagation because of the current state of the net | obscuren | 2015-04-19 | 1 | -2/+2 |
| | | | |||||
* | | | downloader: defer peer reset after download | obscuren | 2015-04-19 | 2 | -4/+8 |
|/ / | |||||
* | | downloader: reset hashTtl on receive | obscuren | 2015-04-19 | 1 | -0/+2 |
| | | |||||
* | | eth: removed debug messages to stdout | obscuren | 2015-04-19 | 1 | -2/+2 |
| | | |||||
* | | downloader: don't remove peers. keep them around | obscuren | 2015-04-19 | 3 | -17/+17 |
| | | |||||
* | | typo | obscuren | 2015-04-19 | 1 | -1/+1 |
| | | |||||
* | | downloader: free up peers from work when the downloader resets | obscuren | 2015-04-19 | 3 | -5/+22 |
| | | |||||
* | | downloader: throw an error if there are no peers available for download | obscuren | 2015-04-19 | 1 | -6/+16 |
| | | | | | | | | | | | | If all peers have been tried during the block download process and some hashes are unfetchable (available peers > 0 and fetching == 0) throw an error so the process can be aborted. | ||||
* | | downloader: fixed a race condition for download status | obscuren | 2015-04-19 | 1 | -1/+0 |
| | | |||||
* | | eth: adapted to new synchronous api of downloader's AddBlock | obscuren | 2015-04-19 | 3 | -4/+14 |
| | | |||||
* | | downloader: improved downloading and synchronisation | obscuren | 2015-04-19 | 4 | -110/+129 |
| | | | | | | | | | | | | * Downloader's peers keeps track of peer's previously requested hashes so that we don't have to re-request * Changed `AddBlock` to be fully synchronous | ||||
* | | downloader: make sure that hashes are only accepted from the active peer | obscuren | 2015-04-18 | 2 | -20/+54 |
| | | |||||
* | | downloader: reset the queue if a peer response with an empty hash set | obscuren | 2015-04-18 | 3 | -15/+37 |
| | | |||||
* | | eth: ignore NewBlockMsg with lower td | obscuren | 2015-04-18 | 1 | -2/+3 |
| | | |||||
* | | downloader: all handlers check for isBusy | obscuren | 2015-04-18 | 1 | -7/+7 |
| | | |||||
* | | eth: fixed proper BroadcastBlock for mined blocks | obscuren | 2015-04-18 | 1 | -1/+1 |
| | | |||||
* | | eth: listen for mined blocks and propagate using the protocol manager | obscuren | 2015-04-18 | 1 | -17/+15 |
| | | |||||
* | | eth: drop blocks that are known | obscuren | 2015-04-18 | 1 | -0/+6 |
| | | |||||
* | | eth: additional cleanups to the subprotocol, improved block propagation | obscuren | 2015-04-18 | 3 | -56/+140 |
| | | | | | | | | | | | | | | | | * Improved block propagation by sending blocks only to peers to which, as far as we know, the peer does not know about. * Made sub protocol its own manager * SubProtocol now contains the p2p.Protocol which is used instead of a function-returning-protocol thing. | ||||
* | | eth: began split up of peers and protocol manager | obscuren | 2015-04-18 | 4 | -388/+369 |
| | | |||||
* | | Merge branch 'develop' into downloader-proto | obscuren | 2015-04-18 | 2 | -5/+117 |
|\| | | | | | | | | | Conflicts: eth/downloader/downloader.go | ||||
| * | downloader: fixed a typo | obscuren | 2015-04-17 | 1 | -1/+1 |
| | | |||||
| * | downloader: added demotion / promotion in prep. for rep. system | obscuren | 2015-04-16 | 2 | -0/+25 |
| | | |||||
| * | downloader: updated downloader and fixed issues with catch up | obscuren | 2015-04-16 | 1 | -21/+47 |
| | | | | | | | | | | | | Properly ignore blocks coming from peers not in our peer list (blocked) and do never request anything from bad peers. Added some checks to account for blocks known when requesting hashes (missing parents). | ||||
* | | eth: basic implementation of the downloader | obscuren | 2015-04-17 | 1 | -0/+25 |
| | | |||||
* | | Merge branch 'develop' into downloader-proto | obscuren | 2015-04-16 | 3 | -32/+79 |
|\ \ | |||||
| * | | downloader: updated downloader and fixed issues with catch up | obscuren | 2015-04-16 | 1 | -22/+48 |
| |/ | | | | | | | | | | | Properly ignore blocks coming from peers not in our peer list (blocked) and do never request anything from bad peers. Added some checks to account for blocks known when requesting hashes (missing parents). | ||||
| * | eth: limit the amount of peers that will receive Block/Tx messages | obscuren | 2015-04-14 | 1 | -2/+3 |
| | | | | | | | | All transaction and block messages are now limited using `sqrt(peers)` | ||||
| * | Merge branch 'develop' of github.com-obscure:ethereum/go-ethereum into develop | obscuren | 2015-04-13 | 2 | -8/+28 |
| |\ | |||||
| | * | Merge pull request #702 from ethersphere/frontier/blockpool | Jeffrey Wilcke | 2015-04-13 | 1 | -7/+5 |
| | |\ | | | | | | | | | blockpool stability fixes: | ||||
| | | * | blockpool stability fixes: | zelig | 2015-04-13 | 1 | -7/+5 |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - follow up locks and fix them - chainManager: call SetQueued for parentErr future blocks, uncomment TD checks, unskip test - make ErrIncorrectTD non-fatal to be forgiving to genuine mistaken nodes (temp) but demote them to guard against stuck best peers. - add purging to bounded nodeCache (config nodeCacheSize) - use nodeCache when creating blockpool entries and let non-best peers add blocks (performance boost) - minor error in addError - reduce idleBestPeerTimeout to 1 minute - correct status counts and unskip status passing status test - glogified logging | ||||
| | * | | Added blockchain DB versioning support, closes #650 | Bas van Kervel | 2015-04-13 | 1 | -1/+23 |
| | |/ | |||||
* | / | eth: added downloader for syncing up the chain | obscuren | 2015-04-13 | 2 | -37/+72 |
|/ / | |||||
* | | downloader: added missing blocks catchup functionality | obscuren | 2015-04-13 | 4 | -133/+303 |
| | | | | | | | | | | When a parent is missing in the block list an attempt should be made to fetch the missing parent and grandparents. | ||||
* | | downloader: return an error for peer.fetch and return chunk to queue | obscuren | 2015-04-12 | 2 | -3/+16 |
| | | | | | | | | | | If a peer was somehow already fetching and somehow managed to end up in the `available` pool it should return it's work. | ||||
* | | downloader: renamed chunks to queue | obscuren | 2015-04-12 | 1 | -0/+0 |
| | | |||||
* | | downloader: implemented new downloader | obscuren | 2015-04-12 | 4 | -0/+602 |
|/ | |||||
* | Disabled TD check | obscuren | 2015-04-09 | 1 | -1/+1 |
| | | | | | @zelig: Temporarily commented out TD check untill the rest of the network has been fixed. | ||||
* | Moved log to debug | obscuren | 2015-04-09 | 1 | -5/+10 |
| | |||||
* | Moved handling of nonces to the managed state | obscuren | 2015-04-09 | 1 | -1/+1 |
| | |||||
* | Improved transaction pool | obscuren | 2015-04-09 | 1 | -1/+1 |
| | | | | | | | | | | The transaction pool will now some easily be able to pre determine the validity of a transaction by checking the following: * Account existst * gas limit higher than the instrinsic gas * enough funds to pay upfront costs * nonce check | ||||
* | Sync managed accounts to the network | obscuren | 2015-04-08 | 1 | -0/+15 |
| | |||||
* | Updated logging | obscuren | 2015-04-07 | 2 | -9/+9 |
| | |||||
* | Update ethash | obscuren | 2015-04-05 | 1 | -1/+1 |
| | |||||
* | Changed log to new logging | obscuren | 2015-04-04 | 1 | -1/+1 |
| | |||||
* | corrected | obscuren | 2015-04-01 | 1 | -1/+1 |
| | |||||
* | bumped network protocol | obscuren | 2015-04-01 | 1 | -1/+1 |
| | |||||
* | eth: update cpp bootnode address | Felix Lange | 2015-04-01 | 1 | -2/+2 |
| | |||||
* | change StatusMsgData.TD back to pointer type *big.Int | zelig | 2015-04-01 | 2 | -8/+8 |
| | |||||
* | check TxMsg | zelig | 2015-04-01 | 2 | -1/+43 |
| | | | | | | - add validation on TxMsg checking for nil - add test for nil transaction - add test for zero value transaction (no extra validation needed) | ||||
* | test for invalid rlp encoding of block in BlocksMsg | zelig | 2015-04-01 | 2 | -7/+32 |
| | | | | | | | - rename Validate -> ValidateFields not to confure consensus block validation - add nil transaction and nil uncle header validation - remove bigint field checks: rlp already decodes *big.Int to big.NewInt(0) - add test for nil header, nil transaction | ||||
* | add tests for valid blocks msg handling | zelig | 2015-04-01 | 1 | -4/+46 |
| |