Jeffrey Wilcke
992e4f83cb
core: replaced BlockCache with lru.Cache
9 years ago
Jeffrey Wilcke
e349fac97d
core: fixed tests
9 years ago
obscuren
07db098ccf
core: renamed next to pending & fixed tests
9 years ago
Felix Lange
ceaf1c080b
core: add GenerateChain, GenesisBlockForTesting
9 years ago
Felix Lange
1d42888d30
core/types: make blocks immutable
9 years ago
obscuren
6244b10a8f
core: settable genesis nonce
...
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.
10 years ago
Felix Lange
0b493910d3
core: fix the nonce check one more time
...
The block nonce verification was effectively disabled by a typo.
This time, there is an actual test for it.
10 years ago
Felix Lange
ec7a2c3442
core: don't remove transactions after block processing
...
The transaction pool drops processed transactions on its own
during pool maintenance.
10 years ago
obscuren
87a05c8f38
core: skipped tests while cache disabled
10 years ago
obscuren
40717465bc
core: fixed tests
10 years ago
obscuren
cfb2b51b74
eth/downloader: fixed test
10 years ago
Bas van Kervel
95773b9673
removed redundant newlines in import block
10 years ago
Bas van Kervel
b79dd188d9
replaced several path.* with filepath.* which is platform independent
10 years ago
obscuren
2590a7dabb
core: added some additional chain tests for shortest chain
10 years ago
obscuren
c930045834
core: fixed tetst to reflect (int, error) return by insertChain
10 years ago
obscuren
4e07967711
core: fixed chain reorg during splits
...
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
10 years ago
obscuren
405720b218
xeth, core, cmd/utils: Transaction can not be over block gas limit
...
Transactions will be invalidated when the tx.gas_limit > block.gas_limit
10 years ago
obscuren
72d065d491
core: force block process & fixed chain manager test
10 years ago
obscuren
6184781b49
Improved transaction pool
...
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
10 years ago
obscuren
deee9cb170
Added caching for block chain. Currently set to 10k
10 years ago
Felix Lange
a59dd393e7
core: fix tests
10 years ago
obscuren
ef6706696c
Add additional extra database for non-protocol related data
...
* Add transaction to extra database after a successful block process
10 years ago
Felix Lange
80985f97da
cmd/evm, core, ethdb, state, tests/helper: remove ReadConfig calls
10 years ago
obscuren
22b493a6ff
Fixed tests
10 years ago
Matthew Wampler-Doty
de9f79133f
Introducing ethash
10 years ago
Matthew Wampler-Doty
ba1f4bbe91
Exposing stuff for ethash
10 years ago
Ethan Buchman
0efd6a881a
public functions for making chains on the fly
10 years ago
Ethan Buchman
9446489cf3
core: chain manager forking tests
10 years ago
obscuren
0d96528d2f
Skip for travis
10 years ago
obscuren
2ba54a69be
skipping for travis
10 years ago
obscuren
35fe4313d5
pre-pow
10 years ago
obscuren
5f958a582d
fixed other tests to use hashes as well
10 years ago
obscuren
e27237a03a
Changed to use hash for comparison
...
DeepReflect would fail on TD since TD isn't included in the original
block and thus the test would fail.
10 years ago
obscuren
fed3e6a808
Refactored ethutil.Config.Db out
10 years ago
obscuren
564f02aa2b
Fixed tests
10 years ago
obscuren
e2d1d832ef
added nil check
10 years ago
obscuren
d336e24dce
Removed the need of having a backend for the tx pool
10 years ago
obscuren
b619b244c7
Fixed tests
10 years ago
obscuren
8df689bd44
Chain tests
10 years ago
obscuren
2f8a45cd8b
Fixed chain test & added new chain
10 years ago
obscuren
49e0267fe7
Locks, refactor, tests
...
* Added additional chain tests
* Added proper mutex' on chain
* Removed ethereum dependencies
10 years ago
obscuren
b1c58b76a9
moved err check
10 years ago
obscuren
3308491c92
Removed tests because they've become obsolete
10 years ago
obscuren
83663ed4b0
Renames for chain, updated VM, moved methods
...
* Renamed a couple more chain => core
* Updated VM `pc` to be uint64 rather than big int
* XEth interface cleanup
10 years ago
obscuren
9008b155d3
Renamed `chain` => `core`
10 years ago
obscuren
14e2e488fd
Added `chain` tests & minor fixes
...
* Fork tests (equal and larger chains)
* `chain.link` fields are now exported
* moved debug function from state to dump.go
10 years ago
obscuren
3ee0461cb5
Moved ethchain to chain
10 years ago