Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | eth/downloader: always send termination wakes, clean leftover | Péter Szilágyi | 2015-09-23 | 1 | -20/+36 |
| | |||||
* | core, core/types: readd transactions after chain re-org | Jeffrey Wilcke | 2015-09-22 | 1 | -1/+1 |
| | | | | | | | | | | | | | | Added a `Difference` method to `types.Transactions` which sets the receiver to the difference of a to b (NOTE: not a **and** b). Transaction pool subscribes to RemovedTransactionEvent adding back to those potential missing from the chain. When a chain re-org occurs remove any transactions that were removed from the canonical chain during the re-org as well as the receipts that were generated in the process. Closes #1746 | ||||
* | Merge pull request #1810 from karalabe/pure-header-verifications-2 | Jeffrey Wilcke | 2015-09-17 | 1 | -1/+1 |
|\ | | | | | core, eth, miner: use pure header validation | ||||
| * | core, eth, miner: use pure header validation | Péter Szilágyi | 2015-09-16 | 1 | -1/+1 |
| | | |||||
* | | Merge pull request #1801 from fjl/ethdb | Jeffrey Wilcke | 2015-09-16 | 2 | -43/+13 |
|\ \ | | | | | | | all: move common.Database to ethdb and add NewBatch | ||||
| * | | ethdb: remove Flush | Felix Lange | 2015-09-15 | 1 | -33/+2 |
| | | | |||||
| * | | all: move common.Database to package ethdb | Felix Lange | 2015-09-15 | 2 | -10/+11 |
| |/ | |||||
* | | eth/downloader: header-chain order and ancestry check | Péter Szilágyi | 2015-09-15 | 3 | -7/+77 |
| | | |||||
* | | eth, rpc: standardize the chain sync progress counters | Péter Szilágyi | 2015-09-15 | 2 | -51/+476 |
|/ | |||||
* | core: split out TD from database and all internals | Péter Szilágyi | 2015-09-11 | 6 | -47/+66 |
| | |||||
* | core, eth: split the db blocks into headers and bodies | Péter Szilágyi | 2015-09-11 | 4 | -84/+89 |
| | |||||
* | cmd/geth, cmd/utils, eth: added dev mode flag | Jeffrey Wilcke | 2015-09-09 | 1 | -6/+9 |
| | | | | | | | | | | | | Dev mode enabled some debugging flags such as: * VM debugging mode * Simpler proof of work * Whisper enabled by default * Datadir to a tmp datadir * Maxpeers set to 0 * Gas price of 0 * Random listen port | ||||
* | eth/downloader: fix race causing occasional test failure | Péter Szilágyi | 2015-09-01 | 1 | -1/+3 |
| | |||||
* | Merge pull request #1701 from karalabe/eth62-sync-rebase | Felix Lange | 2015-08-27 | 16 | -1266/+3292 |
|\ | | | | | eth: implement eth/62 synchronization logic | ||||
| * | eth: update metrics collection to handle eth/62 algos | Péter Szilágyi | 2015-08-25 | 6 | -35/+159 |
| | | |||||
| * | eth: port the synchronisation algo to eth/62 | Péter Szilágyi | 2015-08-25 | 8 | -340/+1995 |
| | | |||||
| * | eth: kill off protocol eth/60 in preparation for eth/62 | Péter Szilágyi | 2015-08-24 | 6 | -804/+28 |
| | | |||||
| * | eth, eth/downloader: handle header requests, table driven proto tests | Péter Szilágyi | 2015-08-24 | 11 | -254/+1182 |
| | | |||||
| * | eth, metrics, p2p: prepare metrics and net packets to eth/62 | Péter Szilágyi | 2015-08-21 | 5 | -41/+136 |
| | | |||||
* | | Add tests for uncle timestamps and refactor timestamp type | Gustav Simonsson | 2015-08-25 | 1 | -1/+1 |
|/ | |||||
* | eth: fix an issue with pulling and inserting blocks twice | Péter Szilágyi | 2015-08-19 | 1 | -2/+4 |
| | |||||
* | Merge pull request #1627 from zsfelfoldi/gpo | Jeffrey Wilcke | 2015-08-17 | 1 | -10/+13 |
|\ | | | | | GPO update | ||||
| * | GPO update | zsfelfoldi | 2015-08-17 | 1 | -10/+13 |
| | | |||||
* | | Update CPP pubkey | Taylor Gerring | 2015-08-17 | 1 | -1/+1 |
| | | |||||
* | | Added SG bootnode | Taylor Gerring | 2015-08-17 | 1 | -2/+3 |
| | | |||||
* | | eth, trie: removed key prefixing from state entries & merge db fix | Jeffrey Wilcke | 2015-08-14 | 1 | -15/+19 |
| | | | | | | | | | | | | | | | | | | Fixed database merge strategy to use the correct database. Due to a copy paste fail when doing type evaluation the same database was being iterated (chain), all others were ignored. Removed state prefixing because {H(code): code} is stored in the same database as the rest of the state. | ||||
* | | core, eth, trie, xeth: merged state, chain, extra databases in one | Jeffrey Wilcke | 2015-08-08 | 2 | -74/+120 |
|/ | |||||
* | cmd/geth, eth: added canonical extra data | Jeffrey Wilcke | 2015-08-07 | 1 | -7/+2 |
| | | | | | Implemented canonical extra data according to https://github.com/ethereum/wiki/wiki/Extra-Data | ||||
* | miner: gas limit strategy, target 3141592 & def gas price 50 Shannon | Gustav Simonsson | 2015-08-04 | 1 | -1/+2 |
| | |||||
* | cmd, core, eth: support for the olympic network | Jeffrey Wilcke | 2015-08-04 | 1 | -0/+9 |
| | | | | Added a --olympic flag which initialiser the olympic protocol settings | ||||
* | eth, eth/downloader: don't report stall if fetcher filled the block | Péter Szilágyi | 2015-07-29 | 3 | -43/+65 |
| | |||||
* | Merge pull request #1533 from ethersphere/frontier/etherbase | Jeffrey Wilcke | 2015-07-28 | 1 | -1/+5 |
|\ | | | | | Etherbase defaults to first account even if it is created during the session | ||||
| * | etherbase defaults to first account even if created during the session | zelig | 2015-07-27 | 1 | -1/+5 |
| | | |||||
* | | Merge pull request #1515 from fjl/license-fixes | Jeffrey Wilcke | 2015-07-28 | 16 | -16/+16 |
|\ \ | |/ |/| | all: fix license headers one more time | ||||
| * | all: fix license headers one more time | Felix Lange | 2015-07-24 | 16 | -16/+16 |
| | | | | | | | | I forgot to update one instance of "go-ethereum" in commit 3f047be5a. | ||||
* | | params: reduce extra data to 32 bytes | Jeffrey Wilcke | 2015-07-26 | 1 | -2/+3 |
| | | |||||
* | | Merge pull request #1524 from obscuren/default-extra | Jeffrey Wilcke | 2015-07-25 | 1 | -0/+7 |
|\ \ | | | | | | | eth: set default miner extra to client name | ||||
| * | | eth: set default miner extra to client name | Jeffrey Wilcke | 2015-07-25 | 1 | -0/+7 |
| | | | |||||
* | | | cmd/geth, core, eth: Version 1.0.0 | Jeffrey Wilcke | 2015-07-25 | 3 | -3/+4 |
|/ / | | | | | | | | | | | | | Genesis release. Closes #1402 Conflicts: cmd/geth/main.go | ||||
* | | Merge pull request #1510 from fjl/license-fixes | Jeffrey Wilcke | 2015-07-23 | 16 | -64/+64 |
|\| | | | | | all: license fixes | ||||
| * | all: update license headers to distiguish GPL/LGPL | Felix Lange | 2015-07-23 | 16 | -64/+64 |
| | | | | | | | | | | All code outside of cmd/ is licensed as LGPL. The headers now reflect this by calling the whole work "the go-ethereum library". | ||||
* | | cmd, core, eth, ethdb: cache flag to allocate memory for db internal use | Péter Szilágyi | 2015-07-22 | 1 | -1/+2 |
|/ | |||||
* | cmd, core, eth, common: genesis preparation | Jeffrey Wilcke | 2015-07-10 | 2 | -18/+29 |
| | | | | | Implemented the --genesis flag thru which we can set a custom genesis block, including the official Ethereum genesis block. | ||||
* | Merge pull request #1451 from karalabe/handle-potential-TD-forge-attack | Jeffrey Wilcke | 2015-07-09 | 2 | -99/+44 |
|\ | | | | | eth/downloader: drop peer if advertised TD but won't delvier | ||||
| * | eth/downloader: drop peer if advertised TD but won't delvier | Péter Szilágyi | 2015-07-09 | 2 | -99/+44 |
| | | |||||
* | | Merge pull request #1450 from karalabe/fix-propagation-td | Jeffrey Wilcke | 2015-07-09 | 2 | -5/+17 |
|\ \ | | | | | | | eth: calculate the correct TD, only update if better | ||||
| * | | eth: calculate the correct TD, only update if better | Péter Szilágyi | 2015-07-09 | 2 | -5/+17 |
| |/ | |||||
* / | eth, ethdb: fix a data race during startup/shutdown | Péter Szilágyi | 2015-07-09 | 1 | -25/+3 |
|/ | |||||
* | all: add some godoc synopsis comments | Felix Lange | 2015-07-07 | 1 | -0/+1 |
| | |||||
* | all: update license information | Felix Lange | 2015-07-07 | 16 | -0/+256 |
| | |||||
* | Merge pull request #1428 from obscuren/coinbase-fixes | Jeffrey Wilcke | 2015-07-07 | 1 | -2/+8 |
|\ | | | | | cmd,eth,rpc,tests: default coinbase | ||||
| * | eth,miner,rpc: set coinbase | Jeffrey Wilcke | 2015-07-07 | 1 | -0/+1 |
| | | |||||
| * | cmd,eth,rpc,tests: default coinbase | Jeffrey Wilcke | 2015-07-07 | 1 | -2/+7 |
| | | |||||
* | | Registrar and contractInfo handling | zelig | 2015-07-07 | 1 | -1/+12 |
|/ | | | | | | | | | | | | | | | | * resolver -> common/registrar * global registrar name registry interface * add Call to resolver backend interface * the hashReg and UrlHing contracts now initialised from global registry * initialization of contracts uniform * improve errors and more econsistent method names * common/registrar/ethreg: versioned registrar * integrate new naming and registrar in natspec * js console api: setGlobalRegistrar, setHashReg, setUrlHint * js test TestContract uses mining - tests fixed all pass * eth/backend: allow PoW test mode (small ethash DAG) * console jsre refers to resolver.abi/addr, * cmd/geth/contracts.go moved to common/registrar | ||||
* | core, eth, rpc: proper gas used. Closes #1417 | Jeffrey Wilcke | 2015-07-07 | 1 | -1/+3 |
| | | | | Added some additional backward compatibility code for old receipts | ||||
* | Merge pull request #1283 from ethersphere/frontier/accounts | Jeffrey Wilcke | 2015-07-04 | 1 | -10/+2 |
|\ | | | | | Account management improvements | ||||
| * | require explicit etherbase address for mining. Falling back to primary is ↵ | zelig | 2015-07-03 | 1 | -3/+2 |
| | | | | | | | | risky given it is inconsistent if keys are imported/merged/created or copied/transfered | ||||
| * | unlock multiple passes and obsolete primary | zelig | 2015-07-03 | 1 | -9/+2 |
| | | | | | | | | | | | | | | * multiple passwords allowed in password file * split on "\n", sideeffect: chop trailing slashes. fixes common mistake <(echo 'pass') * remove accounts.Primary method * do not fall back to primary account for mining | ||||
* | | core, eth, miner, xeth: receipt storage fix | Jeffrey Wilcke | 2015-07-04 | 1 | -6/+3 |
| | | | | | | | | | | * Added GetReceiptsFromBlock, GetReceipt, PutReceipts * Added ContractAddress to receipt. See #1042 | ||||
* | | core, miner: miner header validation, transaction & receipt writing | Jeffrey Wilcke | 2015-07-03 | 2 | -2/+2 |
| | | | | | | | | | | | | | | | | * Miners do now verify their own header, not their state. * Changed old putTx and putReceipts to be exported * Moved writing of transactions and receipts out of the block processer in to the chain manager. Closes #1386 * Miner post ChainHeadEvent & ChainEvent. Closes #1388 | ||||
* | | eth/downloader: fix a rare test race on the OSX CI | Péter Szilágyi | 2015-07-03 | 1 | -1/+7 |
|/ | |||||
* | eth, eth/downloader: fix #1231, DOS vulnerability in hash queueing | Péter Szilágyi | 2015-07-01 | 2 | -5/+15 |
| | |||||
* | eth: fix #1371, double lock during block/txn known set limitation | Péter Szilágyi | 2015-07-01 | 1 | -10/+4 |
| | |||||
* | eth/downloader: reduce hash fetches in prep for eth/61 | Péter Szilágyi | 2015-07-01 | 1 | -3/+3 |
| | |||||
* | eth, eth/downloader: transition to eth 61 | Péter Szilágyi | 2015-07-01 | 8 | -140/+689 |
| | |||||
* | eth, eth/downloader: pass the eth protocol version through | Péter Szilágyi | 2015-07-01 | 4 | -36/+45 |
| | |||||
* | eth: add the blocks from numbers protocol message | Péter Szilágyi | 2015-07-01 | 4 | -26/+43 |
| | |||||
* | eth: fix #1319, put an upper limit on the known txns and blocks | Péter Szilágyi | 2015-07-01 | 1 | -0/+19 |
| | |||||
* | eth: clean up peer struct a bit, fix double txn bcast | Péter Szilágyi | 2015-07-01 | 4 | -71/+69 |
| | |||||
* | eth: start cleaning up old protocol implementation, add metrics | Péter Szilágyi | 2015-07-01 | 3 | -39/+105 |
| | |||||
* | cmd/geth, cmd/utils, eth: advertise both eth/60 and eth/61 | Péter Szilágyi | 2015-07-01 | 3 | -40/+60 |
| | |||||
* | cmd, core, eth, metrics, p2p: require enabling metrics | Péter Szilágyi | 2015-06-30 | 3 | -48/+49 |
| | |||||
* | cmd/geth, eth, ethdb: monitor database compactions | Péter Szilágyi | 2015-06-30 | 1 | -15/+24 |
| | |||||
* | gpo non-existent block checks | zsfelfoldi | 2015-06-30 | 1 | -4/+11 |
| | |||||
* | core, eth, rpc: avoid unnecessary block header copying | Felix Lange | 2015-06-30 | 2 | -7/+7 |
| | |||||
* | eth/downloader, eth/fetcher: use core.GenerateChain in tests | Felix Lange | 2015-06-30 | 2 | -236/+140 |
| | | | | | | TestMadeupParentBlockChainAttack has been deleted because it was too hard to port and the attack that it checks the prevention of is being averted in a different way (through a protocol change). | ||||
* | core/types: make blocks immutable | Felix Lange | 2015-06-30 | 1 | -1/+4 |
| | |||||
* | core/types: make transactions immutable | Felix Lange | 2015-06-30 | 1 | -2/+2 |
| | |||||
* | eth/fetcher: don't drop on future blocks, just not propagate | Péter Szilágyi | 2015-06-29 | 1 | -4/+16 |
| | |||||
* | eth/fetcher: don't double filter/fetch the same block | Péter Szilágyi | 2015-06-29 | 1 | -1/+1 |
| | |||||
* | eth, ethdb: measure database operation latencies too | Péter Szilágyi | 2015-06-24 | 1 | -9/+9 |
| | |||||
* | eth: make sure dbs are lvldb before instrumenting | Péter Szilágyi | 2015-06-24 | 1 | -18/+21 |
| | |||||
* | core, eth, eth/fetcher, ethdb: polish metrics gathering a bit | Péter Szilágyi | 2015-06-24 | 2 | -5/+24 |
| | |||||
* | eth/fetcher: fix failed merge | Péter Szilágyi | 2015-06-24 | 1 | -1/+1 |
| | |||||
* | cmd/geth, eth/fetcher: polish metrics reporting, add some more | Péter Szilágyi | 2015-06-24 | 1 | -10/+15 |
| | |||||
* | cmd/geth, eth/fetcher: initial metrics support | Péter Szilágyi | 2015-06-24 | 1 | -0/+14 |
| | | | | | Conflicts: cmd/geth/admin.go | ||||
* | eth/fetcher: fix a closure data race | Péter Szilágyi | 2015-06-23 | 1 | -2/+3 |
| | |||||
* | eth/fetcher: clean up test assertions | Péter Szilágyi | 2015-06-22 | 1 | -111/+49 |
| | |||||
* | eth/fetcher: remove test sleeps (15s -> 2.8s) | Péter Szilágyi | 2015-06-22 | 2 | -59/+167 |
| | |||||
* | eth/fetcher: handle and (crude) test block memory DOS | Péter Szilágyi | 2015-06-22 | 2 | -23/+105 |
| | |||||
* | eth/fetcher: handle and test block announce DOS attacks | Péter Szilágyi | 2015-06-22 | 2 | -7/+82 |
| | |||||
* | eth/fetcher: lower max cache size, add timeout slack | Péter Szilágyi | 2015-06-19 | 1 | -4/+15 |
| | |||||
* | eth: fix the propagation/announce order for mined blocks | Péter Szilágyi | 2015-06-19 | 1 | -4/+4 |
| | |||||
* | eth/fetcher: since uncles are allowed, drop phase test | Péter Szilágyi | 2015-06-19 | 1 | -51/+0 |
| | |||||
* | eth/fetcher: allow backward uncle imports too | Péter Szilágyi | 2015-06-19 | 1 | -2/+3 |
| | |||||
* | eth: fix test breakage from the previous commit | Péter Szilágyi | 2015-06-18 | 2 | -2/+1 |
| | |||||
* | eth, eth/fetcher: propagate after header verify, announce only on insert | Péter Szilágyi | 2015-06-18 | 4 | -43/+81 |
| | |||||
* | eth: clean the block request packet handling a bit | Péter Szilágyi | 2015-06-18 | 1 | -17/+17 |
| | |||||
* | eth, eth/fetcher: move propagated block import into fetcher | Péter Szilágyi | 2015-06-18 | 4 | -123/+106 |
| | |||||
* | eth/fetcher: make tests thread safe | Péter Szilágyi | 2015-06-18 | 1 | -22/+34 |
| | |||||
* | eth/fetcher: build longest chain until proven otherwise | Péter Szilágyi | 2015-06-18 | 3 | -31/+95 |
| | |||||
* | eth/fetcher: fix premature queue cleanup, general polishes | Péter Szilágyi | 2015-06-18 | 1 | -35/+47 |
| | |||||
* | eth, eth/fetcher: define and enforce propagation boundaries | Péter Szilágyi | 2015-06-18 | 3 | -24/+60 |
| | |||||
* | eth/fetcher: deduplicate future blocks | Péter Szilágyi | 2015-06-18 | 2 | -25/+71 |
| | |||||
* | eth, eth/fetcher: cache future propagated blocks too | Péter Szilágyi | 2015-06-18 | 3 | -0/+51 |
| | |||||
* | eth, eth/fetcher: use an import queue to store out of order blocks | Péter Szilágyi | 2015-06-18 | 3 | -33/+91 |
| | |||||
* | eth/fetcher: add test to check for duplicate downloads | Péter Szilágyi | 2015-06-18 | 1 | -0/+38 |
| | |||||
* | eth/fetcher: fix timer reset bug, add initial tests | Péter Szilágyi | 2015-06-18 | 3 | -6/+212 |
| | |||||
* | eth, eth/fetcher: separate notification sync mechanism | Péter Szilágyi | 2015-06-18 | 4 | -182/+293 |
| | |||||
* | eth/downloader: extend slow test to fix even slower CI server... | Péter Szilágyi | 2015-06-18 | 1 | -1/+1 |
| | |||||
* | eth/downloader: always reenter processing if not exiting | Péter Szilágyi | 2015-06-18 | 2 | -39/+37 |
| | |||||
* | eth, eth/downloader: fix processing interrupt caused by temp cancel | Péter Szilágyi | 2015-06-18 | 3 | -24/+22 |
| | |||||
* | eth/downloader: fix #1280, overlapping (good/bad) delivery hang | Péter Szilágyi | 2015-06-17 | 2 | -0/+35 |
| | |||||
* | Merge pull request #1260 from obscuren/tx-drop-low-tx | Jeffrey Wilcke | 2015-06-16 | 1 | -0/+1 |
|\ | | | | | core: drop low gas tx | ||||
| * | core, miner: tx pool drops txs below ask price | obscuren | 2015-06-15 | 1 | -0/+1 |
| | | |||||
* | | Merge pull request #990 from zsfelfoldi/gasprice | Jeffrey Wilcke | 2015-06-15 | 2 | -16/+217 |
|\ \ | | | | | | | eth: add GasPriceOracle | ||||
| * | | fixed gas price corr. factor | zsfelfoldi | 2015-06-15 | 1 | -1/+1 |
| | | | |||||
| * | | fallback for uninitialized GPO config values | zsfelfoldi | 2015-06-15 | 1 | -0/+3 |
| | | | |||||
| * | | fixed initial base price bug | zsfelfoldi | 2015-06-15 | 1 | -0/+4 |
| | | | |||||
| * | | added missing source | zsfelfoldi | 2015-06-15 | 1 | -0/+174 |
| | | | |||||
| * | | fixed saving receipts | zsfelfoldi | 2015-06-15 | 1 | -16/+36 |
| |/ | |||||
* | | eth: don't refetch non fitting blocks to avoid duplicates | Péter Szilágyi | 2015-06-15 | 1 | -1/+1 |
| | | |||||
* | | eth/downloader: detailed comment for the race corner case | Péter Szilágyi | 2015-06-15 | 1 | -4/+15 |
| | | |||||
* | | eth/downloader: fix import statistic reset, fetch hashes async | Péter Szilágyi | 2015-06-15 | 1 | -11/+14 |
| | | |||||
* | | eth, eth/downloader: do async block fetches, add dl tests | Péter Szilágyi | 2015-06-15 | 3 | -5/+47 |
| | | |||||
* | | eth/downloader: sanity test for multi peer syncs | Péter Szilágyi | 2015-06-15 | 1 | -0/+31 |
| | | |||||
* | | eth, eth/downloader: move block processing into the downlaoder | Péter Szilágyi | 2015-06-15 | 4 | -231/+253 |
| | | |||||
* | | eth/downloader: add valid peer during attacks (check interference) | Péter Szilágyi | 2015-06-15 | 1 | -93/+140 |
| | | |||||
* | | eth/downloader: instreument and test the sync peer drop | Péter Szilágyi | 2015-06-15 | 2 | -9/+66 |
| | | |||||
* | | eth: fix an accidental test compile error | Péter Szilágyi | 2015-06-15 | 1 | -3/+1 |
| | | |||||
* | | eth/downloader: support individual peers in the test suite | Péter Szilágyi | 2015-06-15 | 1 | -112/+113 |
| | | |||||
* | | eth/downloader: remove uneeded testing functions | Péter Szilágyi | 2015-06-15 | 2 | -37/+2 |
| | | |||||
* | | eth, eth/downloader: move peer removal into downloader | Péter Szilágyi | 2015-06-15 | 6 | -82/+83 |
|/ | |||||
* | 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 |
| |