aboutsummaryrefslogtreecommitdiffstats
path: root/core/block_processor.go
Commit message (Collapse)AuthorAgeFilesLines
* core, eth, rpc: proper gas used. Closes #1417Jeffrey Wilcke2015-07-071-0/+1
| | | | Added some additional backward compatibility code for old receipts
* core, miner: removed vm errors from consensus err checkingJeffrey Wilcke2015-07-061-3/+2
| | | | | Removed VM errors from the consensus errors. They now used for output only.
* Fix core error forwarding, unify OOG VM errGustav Simonsson2015-07-041-2/+3
|
* core, miner, tests: renamed state methodsJeffrey Wilcke2015-07-041-2/+2
| | | | | | | | | | | | * Update => SyncIntermediate * Added SyncObjects SyncIntermediate only updates whatever has changed, but, as a side effect, requires much more disk space. SyncObjects will only sync whatever is required for a block and will not save intermediate state to disk. As drawback this requires more time when more txs come in.
* core, core/state: only write necessary state. Skip intermediateJeffrey Wilcke2015-07-041-1/+1
|
* core, eth, miner, xeth: receipt storage fixJeffrey Wilcke2015-07-041-19/+15
| | | | | * Added GetReceiptsFromBlock, GetReceipt, PutReceipts * Added ContractAddress to receipt. See #1042
* core, miner: miner header validation, transaction & receipt writingJeffrey Wilcke2015-07-031-56/+8
| | | | | | | | * 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
* Use uint64 for block header timestampGustav Simonsson2015-06-301-8/+7
|
* core, eth, rpc: avoid unnecessary block header copyingFelix Lange2015-06-301-20/+22
|
* core: remove superfluous big.Int allocationsFelix Lange2015-06-301-15/+16
| | | | | With blocks now being immutable, use big.Int values from accessor functions instead of copying their results.
* core/types: make blocks immutableFelix Lange2015-06-301-46/+49
|
* core, miner, xeth: renamed gas methodsobscuren2015-06-211-1/+1
| | | | | | * BuyGas => SubGas * RefundGas => AddGas * SetGasPool => SetGasLimit
* core: ValidatedHeader (method => function)obscuren2015-06-181-63/+63
| | | | | Changed header validation method to function in preparation of @karalabe's PR.
* core, core/vm: state improvements and tx pool speed upobscuren2015-06-171-8/+6
| | | | Removed full tx validation during state transitions
* core: TMP testing codeobscuren2015-06-171-15/+8
|
* removed duplicate function after rebasezsfelfoldi2015-06-151-16/+2
|
* fixed saving receiptszsfelfoldi2015-06-151-0/+22
|
* core/vm: fixed printable characters using unicode insteadobscuren2015-06-121-4/+0
|
* core: retry block now also parellise nonce checksobscuren2015-06-111-2/+8
|
* core: don't remove transactions after block processingFelix Lange2015-06-041-4/+1
| | | | | The transaction pool drops processed transactions on its own during pool maintenance.
* wipobscuren2015-06-041-6/+0
|
* Unsupport brunclesGustav Simonsson2015-06-021-2/+2
|
* core: fixed an issue with storing receiptsobscuren2015-05-281-25/+48
|
* Merge pull request #1121 from obscuren/miner_time_fixJeffrey Wilcke2015-05-271-2/+1
|\ | | | | Miner time fix
| * core, miner: fixed miner time issue and removed future blocksobscuren2015-05-271-2/+1
| | | | | | | | | | | | | | * Miner should no longer generate blocks with a time stamp less or equal than it's parent. * Future blocks are no longer processed and queued directly. Closes #1118
* | Update ValidateHeader commentsGustav Simonsson2015-05-271-4/+2
|/
* Revert "core: block.gasLimit - parent.gasLimit <= parent.gasLimit / ↵Gustav Simonsson2015-05-271-1/+1
| | | | | | GasLimitBoundDivisor" This reverts commit be2b0501b5832c0b49f07cdf2db597cc34450199.
* core: block.gasLimit - parent.gasLimit <= parent.gasLimit / GasLimitBoundDivisorobscuren2015-05-271-1/+1
|
* cmd/geth, core: Updated DB version & seedhash debug methodobscuren2015-05-271-1/+4
|
* core: switched back to `set.Set` for uncle verificationobscuren2015-05-211-24/+14
|
* Storing tx receipts in extraDbzsfelfoldi2015-05-201-0/+16
|
* Merge pull request #1022 from obscuren/parallel_nonce_checksJeffrey Wilcke2015-05-191-6/+8
|\ | | | | Parallelise nonce checks
| * core: parallelise nonce checking when processing blocksobscuren2015-05-181-6/+8
| | | | | | | | | | | | 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
* | core: bugfix test 2. set => hash mapobscuren2015-05-181-14/+23
| |
* | retobscuren2015-05-181-0/+1
| |
* | core: tmp diagnostic logsobscuren2015-05-181-0/+7
|/
* core: further improved uncle error messagesobscuren2015-05-161-8/+8
|
* core, cmd/geth, cmd/mist: cleanup. bump version 0.9.21obscuren2015-05-161-2/+0
|
* core: improved uncle messagesobscuren2015-05-151-3/+3
|
* Fixed max uncle count error messageVitalik Buterin2015-05-141-1/+1
|
* core: implemented a queued approach processing transactionsobscuren2015-04-231-1/+1
| | | | | | | Implemented a new transaction queue. Transactions with a holes in their nonce sequence are also not propagated over the network. N: 0,1,2,5,6,7 = propagate 0..2 -- 5..N is kept in the tx pool
* Validate block header UncleHash against calculated hashGustav Simonsson2015-04-231-2/+9
|
* core: removed nonce resetting from the block processor.obscuren2015-04-211-2/+2
| | | | All nonce error handling has been moved to the worker
* core: upgraded block chain versionobscuren2015-04-211-1/+1
|
* core: force block process & fixed chain manager testobscuren2015-04-201-0/+14
|
* core: moved TD calculation from proc to chainobscuren2015-04-201-7/+7
|
* core: improved uncle validation error messageobscuren2015-04-181-3/+2
|
* Added blockchain DB versioning support, closes #650Bas van Kervel2015-04-131-0/+6
|
* Changed how logs are being recordedobscuren2015-04-081-4/+7
| | | | | | | Logs are now recorded per transactions instead of tossing them out after each transaction. This should also fix an issue with `eth_getFilterLogs` (#629) Also now implemented are the `transactionHash, blockHash, transactionIndex, logIndex` on logs. Closes #654.
* prevent deadlockobscuren2015-04-051-4/+4
|
* Improved chain manager, improved block processor, fixed testsobscuren2015-04-041-1/+1
| | | | | | * ChainManager allows cached future blocks for later processing * BlockProcessor allows a 4 second window on future blocks * Fixed tests
* Changed log to new loggingobscuren2015-04-041-4/+6
|
* Moved logging to logger.Coreobscuren2015-04-041-2/+2
|
* basic glogobscuren2015-04-041-19/+5
|
* do not include BlockEqualTS as valid unclesobscuren2015-04-031-1/+1
|
* Removed old (unused) argumentobscuren2015-04-021-2/+2
|
* Merge pull request #623 from ↵Jeffrey Wilcke2015-04-021-6/+5
|\ | | | | | | | | Gustav-Simonsson/read_protocol_values_from_common_params Read most protocol params from common/params.json
| * Read most protocol params from common/params.jsonGustav Simonsson2015-04-021-6/+5
| | | | | | | | | | | | | | | | | | * Add params package with exported variables generated from github.com/ethereum/common/blob/master/params.json * Use params package variables in applicable places * Add check for minimum gas limit in validation of block's gas limit * Remove common/params.json from go-ethereum to avoid outdated version of it
* | Fixed uncle rewards in minerobscuren2015-04-021-17/+23
|/ | | | | The uncle rewards were changed in the block processor. This change will reflect those changes in the miner as well.
* Merge branch 'hexify' of https://github.com/tgerring/go-ethereum into ↵obscuren2015-04-011-3/+19
|\ | | | | | | tgerring-hexify
| * txMeta storage as structTaylor Gerring2015-04-011-17/+11
| |
| * Store and retrieve tx context metadata #608Taylor Gerring2015-04-011-3/+25
| | | | | | | | | | Improving this in the future will allow for cleaning up a bit of legacy code.
* | Blocktest fixed, Execution fixedobscuren2015-04-011-1/+5
|/ | | | | | * Added new CreateAccount method which properly overwrites previous accounts (excluding balance) * Fixed block tests (100% success)
* Correct gas limit validation according to new algorithmGustav Simonsson2015-03-301-1/+4
| | | | | | * Use absolute value of (block's gas limit) - (parent's gas limit) in comparison with diff limit. * Ensure the diff is strictly smaller than the allowed size.
* added tx tests and fixed block testsobscuren2015-03-261-1/+1
|
* removed legacy codeobscuren2015-03-241-1/+0
|
* Gas validation and clean up of legacy codeobscuren2015-03-241-12/+11
|
* fixed bad unclesobscuren2015-03-241-2/+2
|
* moved state and vm to coreobscuren2015-03-231-1/+1
|
* logging for possible unclesobscuren2015-03-231-13/+23
|
* mergeobscuren2015-03-191-11/+7
|\
| * fixed chain event. Closes #529obscuren2015-03-191-12/+8
| |
* | core: adapt Message for new Transaction.From signatureFelix Lange2015-03-171-1/+2
| |
* | converted chain managerobscuren2015-03-171-20/+18
|/
* Moved ethutil => commonobscuren2015-03-161-6/+6
|
* Implemented managed stateobscuren2015-03-131-4/+2
| | | | * Reimplemented nonce management for known accounts.
* Removed some of that gas pre pay magicobscuren2015-03-131-9/+8
|
* Add additional extra database for non-protocol related dataobscuren2015-03-121-2/+18
| | | | * Add transaction to extra database after a successful block process
* Improved error reporting and removed commented codeobscuren2015-03-111-11/+6
|
* Fixed error message. Closes #448obscuren2015-03-101-1/+1
|
* Miner fixes and updates (including miner)obscuren2015-03-051-5/+2
|
* uncle validationobscuren2015-03-041-22/+38
|
* Changed nonce to a uint64obscuren2015-03-041-2/+2
|
* Merge branch 'xcthulhu-publictests' into poc-9obscuren2015-03-041-3/+10
|\
| * fixed pow stuffobscuren2015-03-041-3/+2
| |
| * Merge branch 'publictests' of https://github.com/xcthulhu/go-ethereum into ↵obscuren2015-03-041-2/+10
| |\ | | | | | | | | | xcthulhu-publictests
| | * Introducing ethashMatthew Wampler-Doty2015-03-031-2/+3
| | |
| | * Only one uncleMatthew Wampler-Doty2015-03-031-0/+4
| | |
| | * Exposing stuff for ethashMatthew Wampler-Doty2015-02-281-0/+3
| | |
| | * Fixed consensus issue for refundingobscuren2015-02-271-4/+4
| | | | | | | | | | | | * Refund should _always_ go to the origin
* | | changed messageobscuren2015-03-041-1/+1
|/ /
* | GasLimit check updatedobscuren2015-03-041-6/+8
| |
* | wipobscuren2015-02-271-4/+6
|/
* Validate block header gas limitGustav Simonsson2015-02-261-1/+6
| | | | | | | | * Add block header gas limit validation in ValidateBlock function, see eq 39 and 45 in yellow paper. Before it was calculated _for_ the block instead of validated. * Use the block header gas limit when setting the gas pool instead of calculating the value for the block.
* Added eth_logs & fixed issue with manual log filteringobscuren2015-02-221-10/+6
| | | | | | * Implemented `eth_logs` * Fixed issue with `filter.Find()` where logs were appended to an incorrect, non-returned slice resulting in no logs found
* dirty tracking for state objects fixedobscuren2015-02-201-5/+2
|
* Optimisations and fixed a couple of DDOS issues in the minerobscuren2015-02-201-11/+14
|
* Added GetBlock GetUncle with OOB guardobscuren2015-02-181-1/+5
|
* Merge branch 'develop' into minerobscuren2015-02-121-45/+14
|\
| * Documented methods & removed old manifestobscuren2015-02-121-29/+14
| |
| * moved managerobscuren2015-02-091-16/+0
| |
* | Basic structure minerobscuren2015-02-101-5/+5
| |
* | mergedobscuren2015-02-091-16/+17
|\|
| * Undone fix. Will re-enable once chain resetsobscuren2015-02-061-12/+5
| |
| * Merge pull request #290 from ↵Jeffrey Wilcke2015-02-061-6/+6
| |\ | | | | | | | | | | | | Gustav-Simonsson/correct_block_parent_timestamp_check Correct block parent timestamp check and typos
| | * Correct block parent timestamp check and typosGustav Simonsson2015-02-041-6/+6
| | |
| * | pending / chain eventobscuren2015-02-061-0/+8
| | |
* | | Merge branch 'develop' into minerobscuren2015-02-061-2/+3
|/ /
* | Filteringobscuren2015-02-051-6/+7
| |
* | WIP minerobscuren2015-02-041-37/+37
|/
* Docs & old code removedobscuren2015-02-031-1/+1
|
* reworking messages => logobscuren2015-01-281-0/+21
|
* Future blocks not allowedobscuren2015-01-221-21/+4
|
* Fixed difficultyobscuren2015-01-181-2/+1
| | | | Difficulty was broken when refactored.
* Fixed consensus issueobscuren2015-01-131-1/+1
|
* Moved the TD method from block processor.obscuren2015-01-101-39/+15
|
* Cast to string for hashable typeobscuren2015-01-101-1/+1
|
* mem fixes for vm. Changed uncle inclusion testsobscuren2015-01-101-14/+20
|
* Refactored ethutil.Config.Db outobscuren2015-01-071-3/+7
|
* Adjusted difficulty and skip get tx messagesobscuren2015-01-061-0/+1
|
* Limit block extra to 1024obscuren2015-01-061-0/+4
|
* BlockManager => BlockProcessorobscuren2015-01-051-2/+2
|
* BlockManager => BlockProcessorobscuren2015-01-051-0/+359