Péter Szilágyi
1e806c4c77
cmd, common, core, eth, node, rpc, tests, whisper, xeth: use protocol stacks
9 years ago
Gustav Simonsson
220b0bf6e5
Update common test files
9 years ago
Péter Szilágyi
9dc5de51a2
tests: fix data race in bad-block-report disabling during tests
9 years ago
Drake Burroughs
05ea8926c3
cmd/utils, crypto: add --lightkdf flag for lighter KDF
9 years ago
Gustav Simonsson
145366c07e
tests: update JSON files, add new wrappers
9 years ago
Jeffrey Wilcke
80f26086ee
core, tests: get_hash fix
...
Make sure that we're fetching the hash from the current chain and not
the canonical chain.
9 years ago
Felix Lange
de8d5aaa92
core, core/state: move gas tracking out of core/state
...
The amount of gas available for tx execution was tracked in the
StateObject representing the coinbase account. This commit makes the gas
counter a separate type in package core, which avoids unintended
consequences of intertwining the counter with state logic.
9 years ago
Gustav Simonsson
1b1f293082
core/state, core, miner: handle missing root error from state.New
9 years ago
Gustav Simonsson
e1616f77c7
core, core/vm, cmd/evm: remove redundant balance check
9 years ago
Jeffrey Wilcke
7c7692933c
cmd/geth, cmd/utils, core, rpc: renamed to blockchain
...
* Renamed ChainManager to BlockChain
* Checkpointing is no longer required and never really properly worked
when the state was corrupted.
9 years ago
Jeffrey Wilcke
361082ec4b
cmd/evm, core/vm, test: refactored VM and core
...
* 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`.
9 years ago
Felix Lange
a2d5a60418
core, core/state: batch-based state sync
9 years ago
Gustav Simonsson
5621308949
tests: add test for StateTests/stCallCodes.json
9 years ago
Gustav Simonsson
47ca6904b3
tests: use lastblockhash field to validate reorgs and block headers
9 years ago
Gustav Simonsson
075815e5ff
tests: update common test wrappers and test files
9 years ago
Felix Lange
8c4dab77ba
all: move common.Database to package ethdb
9 years ago
Péter Szilágyi
cdc2662c40
core: split out TD from database and all internals
9 years ago
Gustav Simonsson
fe8093b71f
Add TestBcForkUncleTests and update JSON files
9 years ago
Gustav Simonsson
7324176f70
Add tests for uncle timestamps and refactor timestamp type
9 years ago
Jeffrey Wilcke
36f7fe61c3
core, tests: Double SUICIDE fix
9 years ago
Jeffrey Wilcke
9cacec70f9
cmd/evm, core/vm, tests: changed DisableVm to EnableVm
9 years ago
Jeffrey Wilcke
a23478c0be
core, eth, trie, xeth: merged state, chain, extra databases in one
9 years ago
Jeffrey Wilcke
ac697326a6
core/vm: reduced big int allocations
...
Reduced big int allocation by making stack items modifiable. Instead of
adding items such as `common.Big0` to the stack, `new(big.Int)` is
added instead. One must expect that any item that is added to the stack
might change.
9 years ago
Jeffrey Wilcke
184e9ae9a8
core, tests: reduced state copy by N calls
...
Reduced the amount of state copied that are required by N calls by doing
a balance check prior to any state modifications.
9 years ago
Jeffrey Wilcke
846f34f78b
core/vm, tests: implemented semi-jit vm
...
* changed stack and removed stack ptr. Let go decide on slice reuse.
9 years ago
Jeffrey Wilcke
71d32f54f7
core, miner: added difficulty bomb
9 years ago
Jeffrey Wilcke
03c39d4fc0
tests: updated
9 years ago
Jeffrey Wilcke
9afda6ab8c
core: 5 ether block reward
9 years ago
Felix Lange
bfbcfbe4a9
all: fix license headers one more time
...
I forgot to update one instance of "go-ethereum" in commit 3f047be5a
.
9 years ago
Felix Lange
3f047be5aa
all: update license headers to distiguish GPL/LGPL
...
All code outside of cmd/ is licensed as LGPL. The headers
now reflect this by calling the whole work "the go-ethereum library".
9 years ago
Felix Lange
593b1b65e7
tests: document RLP tests
9 years ago
Felix Lange
5da82077d1
cmd/ethtest, tests: add support for RLP JSON tests
9 years ago
Jeffrey Wilcke
a32c51effd
cmd, core, eth, common: genesis preparation
...
Implemented the --genesis flag thru which we can set a custom genesis
block, including the official Ethereum genesis block.
9 years ago
Gustav Simonsson
b08abe64e4
Unskip SimpleTx3, check err in pre/post state validations
9 years ago
Gustav Simonsson
0b53a5c673
Update Ethereum JSON test files and wrappers
9 years ago
Felix Lange
bdae4fd573
all: add some godoc synopsis comments
9 years ago
Felix Lange
ea54283b30
all: update license information
9 years ago
Jeffrey Wilcke
35cd355c14
cmd,eth,rpc,tests: default coinbase
9 years ago
Gustav Simonsson
b7e8d954ef
Add TestBcGasPricer, comments and unskip tests
9 years ago
Jeffrey Wilcke
bcc1660abc
core, miner, tests: added test, implemented bad block reporting
9 years ago
Gustav Simonsson
0f04af5916
Fix core error forwarding, unify OOG VM err
10 years ago
Jeffrey Wilcke
ab16ce70fc
core, miner, tests: renamed state methods
...
* 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.
10 years ago
Gustav Simonsson
ff97059a99
Update Ethereum JSON tests, skip failing
10 years ago
Gustav Simonsson
4c490db6af
Use uint64 for block header timestamp
10 years ago
Felix Lange
1d42888d30
core/types: make blocks immutable
10 years ago
Felix Lange
654564e164
core/types: make transactions immutable
10 years ago
obscuren
398d08a8dd
tests: SetGasLimit
10 years ago
Taylor Gerring
0743243dce
Add --skip option to CLI
...
Disassociates hardcoded tests to skip when running via CLI. Tests still
skipped when running `go test`
10 years ago
Taylor Gerring
a9659e6dcf
recover test logic
10 years ago
Taylor Gerring
8d3faf69d0
Build error fixes
10 years ago