aboutsummaryrefslogtreecommitdiffstats
path: root/core/chain_manager_test.go
Commit message (Collapse)AuthorAgeFilesLines
* cmd/geth, cmd/utils, core, rpc: renamed to blockchainJeffrey Wilcke2015-10-041-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 coreJeffrey Wilcke2015-10-041-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 handlingGustav Simonsson2015-09-231-1/+54
|
* core, core/types: readd transactions after chain re-orgJeffrey Wilcke2015-09-221-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 testsPéter Szilágyi2015-09-211-16/+1
|
* all: move common.Database to package ethdbFelix Lange2015-09-151-2/+2
|
* core: split out TD from database and all internalsPéter Szilágyi2015-09-111-9/+5
|
* core, eth: split the db blocks into headers and bodiesPéter Szilágyi2015-09-111-1/+4
|
* core, eth, trie, xeth: merged state, chain, extra databases in oneJeffrey Wilcke2015-08-081-9/+9
|
* Merge pull request #1515 from fjl/license-fixesJeffrey Wilcke2015-07-281-1/+1
|\ | | | | all: fix license headers one more time
| * all: fix license headers one more timeFelix Lange2015-07-241-1/+1
| | | | | | | | I forgot to update one instance of "go-ethereum" in commit 3f047be5a.
* | cmd/core,xeth: removed unneeded states & added batch writesJeffrey Wilcke2015-07-231-1/+0
|/
* all: update license headers to distiguish GPL/LGPLFelix Lange2015-07-231-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 preparationJeffrey Wilcke2015-07-101-25/+21
| | | | | Implemented the --genesis flag thru which we can set a custom genesis block, including the official Ethereum genesis block.
* all: update license informationFelix Lange2015-07-071-0/+16
|
* core, miner: miner header validation, transaction & receipt writingJeffrey Wilcke2015-07-031-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 blockJeffrey Wilcke2015-06-301-2/+1
| | | | | * Add a checkpoint every X blocks * Removed queued write
* core: replaced BlockCache with lru.CacheJeffrey Wilcke2015-06-301-1/+1
|
* core: fixed testsJeffrey Wilcke2015-06-301-1/+0
|
* core: renamed next to pending & fixed testsobscuren2015-06-301-2/+4
|
* core: add GenerateChain, GenesisBlockForTestingFelix Lange2015-06-301-3/+3
|
* core/types: make blocks immutableFelix Lange2015-06-301-15/+15
|
* core: settable genesis nonceobscuren2015-06-091-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 timeFelix Lange2015-06-081-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 processingFelix Lange2015-06-041-4/+2
| | | | | The transaction pool drops processed transactions on its own during pool maintenance.
* core: skipped tests while cache disabledobscuren2015-05-201-0/+2
|
* core: fixed testsobscuren2015-05-191-4/+11
|
* eth/downloader: fixed testobscuren2015-05-151-1/+1
|
* removed redundant newlines in import blockBas van Kervel2015-05-121-2/+1
|
* replaced several path.* with filepath.* which is platform independentBas van Kervel2015-05-121-2/+3
|
* core: added some additional chain tests for shortest chainobscuren2015-04-301-4/+29
|
* core: fixed tetst to reflect (int, error) return by insertChainobscuren2015-04-291-2/+2
|
* core: fixed chain reorg during splitsobscuren2015-04-291-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 limitobscuren2015-04-241-2/+2
| | | | Transactions will be invalidated when the tx.gas_limit > block.gas_limit
* core: force block process & fixed chain manager testobscuren2015-04-201-3/+4
|
* Improved transaction poolobscuren2015-04-091-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 10kobscuren2015-03-201-1/+1
|
* core: fix testsFelix Lange2015-03-181-5/+4
|
* Add additional extra database for non-protocol related dataobscuren2015-03-121-2/+2
| | | | * Add transaction to extra database after a successful block process
* cmd/evm, core, ethdb, state, tests/helper: remove ReadConfig callsFelix Lange2015-03-101-2/+0
|
* Fixed testsobscuren2015-03-071-5/+5
|
* Introducing ethashMatthew Wampler-Doty2015-03-031-15/+31
|
* Exposing stuff for ethashMatthew Wampler-Doty2015-02-281-2/+0
|
* public functions for making chains on the flyEthan Buchman2015-02-281-96/+0
|
* core: chain manager forking testsEthan Buchman2015-02-181-0/+276
|
* Skip for travisobscuren2015-01-251-0/+2
|
* skipping for travisobscuren2015-01-251-0/+4
|
* pre-powobscuren2015-01-121-0/+18
|
* fixed other tests to use hashes as wellobscuren2015-01-081-2/+1
|
* Changed to use hash for comparisonobscuren2015-01-081-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 outobscuren2015-01-071-14/+6
|
* Fixed testsobscuren2015-01-061-2/+2
|
* added nil checkobscuren2015-01-021-9/+1
|
* Removed the need of having a backend for the tx poolobscuren2015-01-021-2/+2
|
* Fixed testsobscuren2015-01-021-4/+11
|
* Chain testsobscuren2014-12-301-5/+48
|
* Fixed chain test & added new chainobscuren2014-12-301-14/+33
|
* Locks, refactor, testsobscuren2014-12-181-4/+62
| | | | | | * Added additional chain tests * Added proper mutex' on chain * Removed ethereum dependencies
* moved err checkobscuren2014-12-171-0/+18
|
* Removed tests because they've become obsoleteobscuren2014-12-101-115/+0
|
* Renames for chain, updated VM, moved methodsobscuren2014-12-041-1/+1
| | | | | | * Renamed a couple more chain => core * Updated VM `pc` to be uint64 rather than big int * XEth interface cleanup
* Renamed `chain` => `core`obscuren2014-12-041-0/+116