obscuren
ff5b3ef087
core/vm: added structured logging
10 years ago
obscuren
468501cb86
core/vm: changed program counter to uint64
10 years ago
obscuren
bc6031e7bb
core, xeth: moved nonce management burden from xeth to txpool
10 years ago
Péter Szilágyi
d652a58ada
core: fix a race condition accessing the gas limit
10 years ago
Péter Szilágyi
fecf214175
core: fix a lock annoyance and potential deadlock
10 years ago
Felix Lange
73c355591f
core, eth: document that result of GetTransactions is modifiable
10 years ago
Felix Lange
7aefe123e9
core/types: add Transaction.Size
10 years ago
Gustav Simonsson
6e3b58e491
Remove unneeded if check on EC recover padding
10 years ago
Gustav Simonsson
ad5b5a4895
Pad precompiled EC recover input and add validations
10 years ago
Péter Szilágyi
ebf2aabd25
core: fix up a deadlock caused by double locking
10 years ago
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