Péter Szilágyi
ca8cb65b73
core: fix data race accessing ChainManager.currentBlock
10 years ago
Péter Szilágyi
07baf66200
core: fix data race in accessing ChainManager.td
10 years ago
obscuren
190c1b688a
core: skip genesis block for reprocess. Closes #1202
10 years ago
obscuren
a5b977aa90
core: write accounts to statedb. Closes #1210
10 years ago
obscuren
5245bd7b20
core: added a test for missing nonces
...
This test showed the logic in the queue was slightly flawed sending out
transactions to its peer it couldn't even resolve itself.
10 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
6c27e2aaf6
core: add bad block for the 'missing nonce check' fork
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
Taylor Gerring
4ab0cedf42
Export should start with block 0
10 years ago
Taylor Gerring
ed621aae33
Cleanup
10 years ago
Taylor Gerring
89c9320d80
Allow exporting subset of chain
10 years ago
obscuren
7ab87f9f6e
wip
10 years ago
obscuren
912cf7ba04
core: added fork test & double nonce test
10 years ago
obscuren
0f51ee6c88
crypto: return common.Address rather than raw bytes
10 years ago
obscuren
dcdb4554d7
core: documented changes in tx pool
10 years ago
obscuren
cf5ad266f6
core: only change the nonce if the account nonce is lower
10 years ago
obscuren
9dd12a64a7
core: renamed txs to pending
10 years ago
obscuren
140d883901
core: test updates
10 years ago
obscuren
d09a6e5421
core, eth, miner: moved nonce management to tx pool.
...
Removed the managed tx state from the chain manager to the transaction
pool where it's much easier to keep track of nonces (and manage them).
The transaction pool now also uses the queue and pending txs differently
where queued txs are now moved over to the pending queue (i.e. txs ready
for processing and propagation).
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
Felix Lange
5721c43585
core: update documentation comments for TxPool
10 years ago
Felix Lange
ca31d71107
core: remove unused code from TxPool
10 years ago
Felix Lange
08befff8f1
core: compute less transaction hashes in TxPool
10 years ago
obscuren
770a0e7839
wip
10 years ago
obscuren
b26f5e0bb7
types: block json unmarshal method added
10 years ago
obscuren
fa4aefee44
core/vm: cleanup and renames
10 years ago
Felix Lange
48fb0c3213
core/vm: check for 'no code' before doing any work
10 years ago
Felix Lange
ea2718c946
core/vm: improve JUMPDEST analysis
...
* JUMPDEST analysis is faster because less type conversions are performed.
* The map of JUMPDEST locations is now created lazily at the first JUMP.
* The result of the analysis is kept around for recursive invocations
through CALL/CALLCODE.
Fixes #1147
10 years ago
Gustav Simonsson
55bf5051ad
Unsupport bruncles
10 years ago
Gustav Simonsson
147a699c65
Add missing err checks on From() (skip RPC for now)
10 years ago
Gustav Simonsson
32e1b104f8
Add EC signature validations before call to libsecp256k1
10 years ago
Felix Lange
55b60e699b
core: insert less length zero chains
...
This reduces the amount of queueEvents that are sent internally.
10 years ago
Felix Lange
e7e2cbfc01
core: re-add parallel nonce checks
...
In this incancation, the processor waits until the nonce
has been verified before handling the block.
10 years ago
Péter Szilágyi
b7fc85d68e
core: fix #1154 , sort out data race accessing the future blocks
10 years ago
obscuren
12b90600eb
core: moved guards
10 years ago
obscuren
16038b4e67
core: added bad block
10 years ago
obscuren
109f995684
core: log block hash during nonce error
10 years ago
obscuren
75f5ae80fd
core: partially removed nonce parallelisation and added merge error chk
...
Invalid forks are now detected
Current setup of parellelisation actually inserts bad blocks. This fix
is tmp until a better one is found
10 years ago
Péter Szilágyi
29b0480cfb
core, eth/downloader: expose the bad hashes, check in downloader
10 years ago
obscuren
e3253b5d5e
core: fixed an issue with storing receipts
10 years ago
obscuren
7595716816
core: adjust gas calculation
10 years ago
obscuren
12650e16d3
core, miner: fixed miner time issue and removed future blocks
...
* Miner should no longer generate blocks with a time stamp less or equal
than it's parent.
* Future blocks are no longer processed and queued directly.
Closes #1118
10 years ago
Gustav Simonsson
bf5f0b1d0c
Update ValidateHeader comments
10 years ago
Gustav Simonsson
14955bd454
Revert "core: block.gasLimit - parent.gasLimit <= parent.gasLimit / GasLimitBoundDivisor"
...
This reverts commit be2b0501b5
.
10 years ago
obscuren
be2b0501b5
core: block.gasLimit - parent.gasLimit <= parent.gasLimit / GasLimitBoundDivisor
10 years ago
obscuren
b2f2806055
cmd/geth, core: Updated DB version & seedhash debug method
10 years ago
obscuren
c37389f19c
core: check negative value transactions. Closes #1109
10 years ago
obscuren
eae0927597
core: prevent crash when last block fails
10 years ago
obscuren
a6b46420d0
core: ban hash 38f5bb...a714bc
...
Hash 38f5bbbffd74804820ffa4bab0cd540e9de229725afb98c1a7e57936f4a714bc
ignored.
10 years ago
obscuren
f6f81169fe
core/vm: Fork fix. Removal of appending 0 bytes in memset
10 years ago