Bas van Kervel
c273ed7d82
Moved leveldb update loop to eth/backend
...
change order of block insert and update LastBlock
bugfix, wrong hash stored in blockDb
10 years ago
Bas van Kervel
5cfa0e9187
bugfix, wrong hash stored in blockDb
10 years ago
obscuren
7edbb0110f
core: set the state for the managed tx state
...
Set the state for the managed tx state instead of creating a new
managed state.
10 years ago
Bas van Kervel
c9e22976f5
change order of block insert and update LastBlock
10 years ago
obscuren
b8160cc6d4
core: shuffled some code
10 years ago
obscuren
72d065d491
core: force block process & fixed chain manager test
10 years ago
obscuren
97a9753f87
core: added chain reset mechanism on bad blocks
10 years ago
obscuren
45da3e17e2
core: added chain head reset to known block
10 years ago
obscuren
97b0c4b697
core: moved TD calculation from proc to chain
10 years ago
obscuren
164b878854
cleanup
10 years ago
obscuren
84f1af6413
core: merge using equal block numbers rather than the current block
10 years ago
obscuren
dff39553d4
core: changed split detection to also account for number less than
10 years ago
obscuren
333d4e0f27
core: during split properly insert parent blocks
...
During a split parent and grand parent were included in the database but
not in the canonical chain (numbered chain). Added a `merge` function
which finds the common ancestor of the chains and reinserts the missing
blocks.
10 years ago
zelig
3d57e377a4
blockpool stability fixes:
...
- follow up locks and fix them
- chainManager: call SetQueued for parentErr future blocks, uncomment TD checks, unskip test
- make ErrIncorrectTD non-fatal to be forgiving to genuine mistaken nodes (temp) but demote them to guard against stuck best peers.
- add purging to bounded nodeCache (config nodeCacheSize)
- use nodeCache when creating blockpool entries and let non-best peers add blocks (performance boost)
- minor error in addError
- reduce idleBestPeerTimeout to 1 minute
- correct status counts and unskip status passing status test
- glogified logging
10 years ago
Bas van Kervel
49a513bdeb
Added blockchain DB versioning support, closes #650
10 years ago
obscuren
0636e17dbe
Added default registrar
10 years ago
zelig
262714fc6c
future queued block support
...
- queued bool // flag for blockpool to skip TD check
- set to true when future block queued
- in checkTD: skip check if queued
- TODO: add test (insertchain sets future block)
10 years ago
obscuren
688d118c7e
Updated logging
10 years ago
obscuren
9c55576c7b
Block header changed & console miner control
...
* miner control moved to `admin.miner`
* miner option to set extra data
* block extra now bytes
10 years ago
obscuren
736aefe9b5
time lapse
10 years ago
obscuren
053d5552ab
Updated logging
10 years ago
obscuren
c39484bc4b
Added thread safe each
10 years ago
obscuren
eff6a43419
Removed debugging
10 years ago
obscuren
7a18a39351
prevent deadlock
10 years ago
obscuren
e1ed8c33bd
Improved chain manager, improved block processor, fixed tests
...
* ChainManager allows cached future blocks for later processing
* BlockProcessor allows a 4 second window on future blocks
* Fixed tests
10 years ago
obscuren
c985ce4d78
Changed log to new logging
10 years ago
obscuren
218bfeb60e
check for nil block (tmp).
...
@zelig this needs to be addressed in the block pool.
10 years ago
obscuren
a0e44e3281
basic glog
10 years ago
obscuren
f9d94c7462
do not include BlockEqualTS as valid uncles
10 years ago
Gustav Simonsson
c26c8d3a44
Read most protocol params from common/params.json
...
* 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
10 years ago
obscuren
9de1ad6546
fixed tests
10 years ago
obscuren
0ec171ccdf
Copy fix
10 years ago
obscuren
0ee0094cc0
better block propagation
10 years ago
obscuren
0330077d76
moved state and vm to core
10 years ago
obscuren
d7eaa97a29
moved to error
10 years ago
Gustav Simonsson
becc503230
Correct difficulty calculation to use new difficulty minimum
10 years ago
obscuren
dc3a9379f5
logging for possible uncles
10 years ago
obscuren
524f8199bf
added some nil checks for cache (testing specific)
10 years ago
obscuren
deee9cb170
Added caching for block chain. Currently set to 10k
10 years ago
obscuren
29eb220910
:-)
10 years ago
obscuren
e540a75030
re-enabled json logging
10 years ago
obscuren
14a2f42f37
fixed chain event. Closes #529
10 years ago
obscuren
48dd601de0
prep template for fixed size hashes
10 years ago
Felix Lange
b5b83db450
core: use package rlp to encode blocks
...
This also changes the chain export format so there is no
enclosing list around the blocks, which enables streaming export.
10 years ago
obscuren
8ce6a36478
converted chain manager
10 years ago
obscuren
b523441361
Moved ethutil => common
10 years ago
obscuren
44636e5b82
typo
10 years ago
obscuren
532a74f50e
Improved errors. Closes #475
10 years ago
obscuren
b927c29469
GetBlockByNumber now properly looks for a number in the database
10 years ago
obscuren
03403399fc
Return proper error
10 years ago