Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | cmd/geth, cmd/utils, core, rpc: renamed to blockchain | Jeffrey Wilcke | 2015-10-04 | 1 | -652/+0 |
| | | | | | | * Renamed ChainManager to BlockChain * Checkpointing is no longer required and never really properly worked when the state was corrupted. | ||||
* | cmd/evm, core/vm, test: refactored VM and core | Jeffrey Wilcke | 2015-10-04 | 1 | -2/+2 |
| | | | | | | | | | | | | | | | | | * Moved `vm.Transfer` to `core` package and changed execution to call `env.Transfer` instead of `core.Transfer` directly. * core/vm: byte code VM moved to jump table instead of switch * Moved `vm.Transfer` to `core` package and changed execution to call `env.Transfer` instead of `core.Transfer` directly. * Byte code VM now shares the same code as the JITVM * Renamed Context to Contract * Changed initialiser of state transition & unexported methods * Removed the Execution object and refactor `Call`, `CallCode` & `Create` in to their own functions instead of being methods. * Removed the hard dep on the state for the VM. The VM now depends on a Database interface returned by the environment. In the process the core now depends less on the statedb by usage of the env * Moved `Log` from package `core/state` to package `core/vm`. | ||||
* | core: Add BadHashErr and test for BadHashes handling | Gustav Simonsson | 2015-09-23 | 1 | -1/+54 |
| | |||||
* | core, core/types: readd transactions after chain re-org | Jeffrey Wilcke | 2015-09-22 | 1 | -13/+111 |
| | | | | | | | | | | | | | | 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 | ||||
* | core: separate and contain POW verifier, extensive tests | Péter Szilágyi | 2015-09-21 | 1 | -16/+1 |
| | |||||
* | all: move common.Database to package ethdb | Felix Lange | 2015-09-15 | 1 | -2/+2 |
| | |||||
* | core: split out TD from database and all internals | Péter Szilágyi | 2015-09-11 | 1 | -9/+5 |
| | |||||
* | core, eth: split the db blocks into headers and bodies | Péter Szilágyi | 2015-09-11 | 1 | -1/+4 |
| | |||||
* | core, eth, trie, xeth: merged state, chain, extra databases in one | Jeffrey Wilcke | 2015-08-08 | 1 | -9/+9 |
| | |||||
* | Merge pull request #1515 from fjl/license-fixes | Jeffrey Wilcke | 2015-07-28 | 1 | -1/+1 |
|\ | | | | | all: fix license headers one more time | ||||
| * | 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. | ||||
* | | cmd/core,xeth: removed unneeded states & added batch writes | Jeffrey Wilcke | 2015-07-23 | 1 | -1/+0 |
|/ | |||||
* | 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". | ||||
* | cmd, core, eth, common: genesis preparation | Jeffrey Wilcke | 2015-07-10 | 1 | -25/+21 |
| | | | | | Implemented the --genesis flag thru which we can set a custom genesis block, including the official Ethereum genesis block. | ||||
* | all: update license information | Felix Lange | 2015-07-07 | 1 | -0/+16 |
| | |||||
* | core, miner: miner header validation, transaction & receipt writing | Jeffrey Wilcke | 2015-07-03 | 1 | -6/+6 |
| | | | | | | | | * 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 | ||||
* | core: added checkpoint for last block | Jeffrey Wilcke | 2015-06-30 | 1 | -2/+1 |
| | | | | | * Add a checkpoint every X blocks * Removed queued write | ||||
* | core: replaced BlockCache with lru.Cache | Jeffrey Wilcke | 2015-06-30 | 1 | -1/+1 |
| | |||||
* | core: fixed tests | Jeffrey Wilcke | 2015-06-30 | 1 | -1/+0 |
| | |||||
* | core: renamed next to pending & fixed tests | obscuren | 2015-06-30 | 1 | -2/+4 |
| | |||||
* | core: add GenerateChain, GenesisBlockForTesting | Felix Lange | 2015-06-30 | 1 | -3/+3 |
| | |||||
* | core/types: make blocks immutable | Felix Lange | 2015-06-30 | 1 | -15/+15 |
| | |||||
* | core: settable genesis nonce | obscuren | 2015-06-09 | 1 | -13/+38 |
| | | | | | | | 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. | ||||
* | core: fix the nonce check one more time | Felix Lange | 2015-06-08 | 1 | -0/+53 |
| | | | | | The block nonce verification was effectively disabled by a typo. This time, there is an actual test for it. | ||||
* | core: don't remove transactions after block processing | Felix Lange | 2015-06-04 | 1 | -4/+2 |
| | | | | | The transaction pool drops processed transactions on its own during pool maintenance. | ||||
* | core: skipped tests while cache disabled | obscuren | 2015-05-20 | 1 | -0/+2 |
| | |||||
* | core: fixed tests | obscuren | 2015-05-19 | 1 | -4/+11 |
| | |||||
* | eth/downloader: fixed test | obscuren | 2015-05-15 | 1 | -1/+1 |
| | |||||
* | removed redundant newlines in import block | Bas van Kervel | 2015-05-12 | 1 | -2/+1 |
| | |||||
* | replaced several path.* with filepath.* which is platform independent | Bas van Kervel | 2015-05-12 | 1 | -2/+3 |
| | |||||
* | core: added some additional chain tests for shortest chain | obscuren | 2015-04-30 | 1 | -4/+29 |
| | |||||
* | core: fixed tetst to reflect (int, error) return by insertChain | obscuren | 2015-04-29 | 1 | -2/+2 |
| | |||||
* | core: fixed chain reorg during splits | obscuren | 2015-04-29 | 1 | -1/+51 |
| | | | | | | | | | | | | | | Chain reorgs weren't properly handled when a chain was further ahead. Previously we'd end up with mixed chains in our canonical numbering sequence. Added test for this type of forking. ``` /-o-o-o A o-C-+ \-o-o-o-o B ``` Ends up with with C A1, A2, A3, B4 | ||||
* | xeth, core, cmd/utils: Transaction can not be over block gas limit | obscuren | 2015-04-24 | 1 | -2/+2 |
| | | | | Transactions will be invalidated when the tx.gas_limit > block.gas_limit | ||||
* | core: force block process & fixed chain manager test | obscuren | 2015-04-20 | 1 | -3/+4 |
| | |||||
* | Improved transaction pool | obscuren | 2015-04-09 | 1 | -2/+2 |
| | | | | | | | | | | 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 | ||||
* | Added caching for block chain. Currently set to 10k | obscuren | 2015-03-20 | 1 | -1/+1 |
| | |||||
* | core: fix tests | Felix Lange | 2015-03-18 | 1 | -5/+4 |
| | |||||
* | Add additional extra database for non-protocol related data | obscuren | 2015-03-12 | 1 | -2/+2 |
| | | | | * Add transaction to extra database after a successful block process | ||||
* | cmd/evm, core, ethdb, state, tests/helper: remove ReadConfig calls | Felix Lange | 2015-03-10 | 1 | -2/+0 |
| | |||||
* | Fixed tests | obscuren | 2015-03-07 | 1 | -5/+5 |
| | |||||
* | Introducing ethash | Matthew Wampler-Doty | 2015-03-03 | 1 | -15/+31 |
| | |||||
* | Exposing stuff for ethash | Matthew Wampler-Doty | 2015-02-28 | 1 | -2/+0 |
| | |||||
* | public functions for making chains on the fly | Ethan Buchman | 2015-02-28 | 1 | -96/+0 |
| | |||||
* | core: chain manager forking tests | Ethan Buchman | 2015-02-18 | 1 | -0/+276 |
| | |||||
* | Skip for travis | obscuren | 2015-01-25 | 1 | -0/+2 |
| | |||||
* | skipping for travis | obscuren | 2015-01-25 | 1 | -0/+4 |
| | |||||
* | pre-pow | obscuren | 2015-01-12 | 1 | -0/+18 |
| | |||||
* | fixed other tests to use hashes as well | obscuren | 2015-01-08 | 1 | -2/+1 |
| | |||||
* | Changed to use hash for comparison | obscuren | 2015-01-08 | 1 | -2/+3 |
| | | | | | DeepReflect would fail on TD since TD isn't included in the original block and thus the test would fail. | ||||
* | Refactored ethutil.Config.Db out | obscuren | 2015-01-07 | 1 | -14/+6 |
| | |||||
* | Fixed tests | obscuren | 2015-01-06 | 1 | -2/+2 |
| | |||||
* | added nil check | obscuren | 2015-01-02 | 1 | -9/+1 |
| | |||||
* | Removed the need of having a backend for the tx pool | obscuren | 2015-01-02 | 1 | -2/+2 |
| | |||||
* | Fixed tests | obscuren | 2015-01-02 | 1 | -4/+11 |
| | |||||
* | Chain tests | obscuren | 2014-12-30 | 1 | -5/+48 |
| | |||||
* | Fixed chain test & added new chain | obscuren | 2014-12-30 | 1 | -14/+33 |
| | |||||
* | Locks, refactor, tests | obscuren | 2014-12-18 | 1 | -4/+62 |
| | | | | | | * Added additional chain tests * Added proper mutex' on chain * Removed ethereum dependencies | ||||
* | moved err check | obscuren | 2014-12-17 | 1 | -0/+18 |
| | |||||
* | Removed tests because they've become obsolete | obscuren | 2014-12-10 | 1 | -115/+0 |
| | |||||
* | Renames for chain, updated VM, moved methods | obscuren | 2014-12-04 | 1 | -1/+1 |
| | | | | | | * Renamed a couple more chain => core * Updated VM `pc` to be uint64 rather than big int * XEth interface cleanup | ||||
* | Renamed `chain` => `core` | obscuren | 2014-12-04 | 1 | -0/+116 |