obscuren
912cf7ba04
core: added fork test & double nonce test
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
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
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
obscuren
c37389f19c
core: check negative value transactions. Closes #1109
10 years ago
obscuren
3c6c891680
core: optimise pending transaction processing
10 years ago
obscuren
dcfecebe1f
core: get transaction by hash from transaction pool
10 years ago
obscuren
92f998c7ef
core: use removeTx instead of delete
10 years ago
obscuren
88292f35db
core: remove txs from queue in addition to removal of pending
10 years ago
obscuren
145e02fc54
core, miner: added value check on tx validation
...
* Changed CalcGasLimit to no longer need current block
* Added a gas * price + value on tx validation
* Transactions in the pool are now re-validated once every X
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
7f14fbd579
core: pending txs now re-validated once every second
10 years ago
obscuren
fba40e18d9
core: added accessor for queued transactions
10 years ago
obscuren
d3be1a2719
eth: moved mined, tx events to protocol-hnd and improved tx propagation
...
Transactions are now propagated to peers from which we have not yet
received the transaction. This will significantly reduce the chatter on
the network.
Moved new mined block handler to the protocol handler and moved
transaction handling to protocol handler.
10 years ago
obscuren
7138404cb0
core: only post event once per tx & fixed test
10 years ago
obscuren
498b24270a
core: implemented a queued approach processing transactions
...
Implemented a new transaction queue. Transactions with a holes in their
nonce sequence are also not propagated over the network.
N: 0,1,2,5,6,7 = propagate 0..2 -- 5..N is kept in the tx pool
10 years ago
obscuren
093d6d5074
core: removed nonce resetting from the block processor.
...
All nonce error handling has been moved to the worker
10 years ago
obscuren
6e2f78ebdd
Default log to stderr
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
f08e9cbe42
ignore invalid txs right after being added if they prove incorrect
10 years ago
obscuren
a953f3ec97
Sync managed accounts to the network
10 years ago
obscuren
09147a50ed
Improved tx pool to ignore invalid transactions
...
Transaction pool will attempt to ignore invalid transactions it had
previously encountered.
10 years ago
Felix Lange
a59dd393e7
core: fix tests
10 years ago
Felix Lange
17c5ba2b6b
core: actually convert transaction pool
10 years ago
Felix Lange
b95387a0dc
core: convert transaction pool to common.{Address,Hash}
10 years ago
obscuren
b523441361
Moved ethutil => common
10 years ago
Matthew Wampler-Doty
de9f79133f
Introducing ethash
10 years ago
obscuren
ea9a549bbd
Removed exported fields from state object and added proper set/getters
10 years ago
obscuren
fa4cbad315
Optimisations and fixed a couple of DDOS issues in the miner
10 years ago
obscuren
cb382fa76b
Validate transactions sender before adding to pool. Closes #272
10 years ago
Ethan Buchman
2da367a2be
fix unchecked slice index on tx.From()
10 years ago
obscuren
60d9611c23
Fixed tests where txs weren't properly removed
10 years ago
obscuren
6abf8ef78f
Merge
10 years ago
obscuren
16f417f5af
Fixed bug where logging could crash client during tx adding
10 years ago
obscuren
d336e24dce
Removed the need of having a backend for the tx pool
10 years ago
obscuren
ae2c90cc28
Removed value check from tx validation
10 years ago
obscuren
48d2a8b8ee
Refactored tx pool and added extra fields to block
...
* chain manager sets td on block + td output w/ String
* added tx pool tests for removing/adding/validating
* tx pool now uses a set for txs instead of list.List
10 years ago
obscuren
5ad473d758
Moved methods to messages
10 years ago
obscuren
db494170dc
Created generic message (easy for testing)
10 years ago
obscuren
0dc566124a
Merge fixes
10 years ago
obscuren
49e0267fe7
Locks, refactor, tests
...
* Added additional chain tests
* Added proper mutex' on chain
* Removed ethereum dependencies
10 years ago
zelig
c2af10d256
transaction pool changes
...
- use eventer events to broadcast transactions
- CurrentTransactions -> GetTransactions
- add AddTransactions
10 years ago
obscuren
5553e5aaed
states moved to chain
10 years ago