aboutsummaryrefslogtreecommitdiffstats
path: root/core/transaction_pool_test.go
Commit message (Collapse)AuthorAgeFilesLines
* core: reduce CPU load by reducing calls to checkQueueJeffrey Wilcke2015-06-301-0/+2
| | | | | | | | | | | | | | | | * Reduced maxQueue count * Added proper deletion past maxQueue limit * Added cheap stats method to txpool queueCheck was called for **every** transaction instead of: 1. add all txs 2. check queue previously 1. add txs[i] 2. check queue 3. if i < len(txs) goto 1.
* core/types: make transactions immutableFelix Lange2015-06-301-65/+26
|
* core, xeth: moved nonce management burden from xeth to txpoolobscuren2015-06-101-11/+27
|
* core: added a test for missing noncesobscuren2015-06-091-0/+23
| | | | | This test showed the logic in the queue was slightly flawed sending out transactions to its peer it couldn't even resolve itself.
* core: added fork test & double nonce testobscuren2015-06-051-0/+49
|
* core: renamed txs to pendingobscuren2015-06-041-8/+8
|
* core: test updatesobscuren2015-06-041-1/+1
|
* core, eth, miner: moved nonce management to tx pool.obscuren2015-06-041-10/+10
| | | | | | | | 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).
* core: compute less transaction hashes in TxPoolFelix Lange2015-06-041-10/+10
|
* core: check negative value transactions. Closes #1109obscuren2015-05-271-0/+14
|
* core: remove txs from queue in addition to removal of pendingobscuren2015-04-301-0/+27
|
* core, miner: added value check on tx validationobscuren2015-04-261-2/+3
| | | | | | * 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
* xeth, core, cmd/utils: Transaction can not be over block gas limitobscuren2015-04-241-1/+1
| | | | Transactions will be invalidated when the tx.gas_limit > block.gas_limit
* core: only post event once per tx & fixed testobscuren2015-04-231-6/+6
|
* core: implemented a queued approach processing transactionsobscuren2015-04-231-2/+52
| | | | | | | 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
* Improved transaction poolobscuren2015-04-091-67/+30
| | | | | | | | | | 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
* Changed R S to big int and fixed testsobscuren2015-04-051-2/+6
|
* moved state and vm to coreobscuren2015-03-231-1/+1
|
* core: fix testsFelix Lange2015-03-181-7/+5
|
* Moved ethutil => commonobscuren2015-03-161-3/+3
|
* Validate transactions sender before adding to pool. Closes #272obscuren2015-02-011-0/+10
|
* Refactored ethutil.Config.Db outobscuren2015-01-071-4/+10
|
* Fixed testsobscuren2015-01-061-3/+3
|
* Removed the need of having a backend for the tx poolobscuren2015-01-021-1/+1
|
* Added tests for valid transactionsobscuren2015-01-021-11/+10
|
* Refactored tx pool and added extra fields to blockobscuren2015-01-021-0/+82
* 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