Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | core: txpool listen for ChainHeadEvent instead of ChainEvent | Jeffrey Wilcke | 2015-06-30 | 1 | -2/+2 |
| | | | | | | | Changed the transaction pool to listen for ChainHeadEvent when resetting the state instead of ChainEvent. It makes very little sense to burst through transactions while we are catching up (e.g., have more than one block to process) | ||||
* | core: reduce CPU load by reducing calls to checkQueue | Jeffrey Wilcke | 2015-06-30 | 1 | -26/+49 |
| | | | | | | | | | | | | | | | | * 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 blocks immutable | Felix Lange | 2015-06-30 | 1 | -1/+1 |
| | |||||
* | core/types: make transactions immutable | Felix Lange | 2015-06-30 | 1 | -11/+8 |
| | |||||
* | removed old rpc structure and added new inproc api client | Bas van Kervel | 2015-06-22 | 1 | -1/+1 |
| | |||||
* | core, core/vm: state improvements and tx pool speed up | obscuren | 2015-06-17 | 1 | -9/+13 |
| | | | | Removed full tx validation during state transitions | ||||
* | core: moved check for max queue to checkQueue | obscuren | 2015-06-15 | 1 | -16/+10 |
| | | | | | Moved the queue to check to the checkQueue method so no undeeded loops need to be initiated or sorting needs to happen twice. | ||||
* | core: reduce max allowed queued txs per address | obscuren | 2015-06-15 | 1 | -0/+19 |
| | | | | | Transactions in the queue are now capped to a maximum of 200 transactions. This number is completely arbitrary. | ||||
* | core, miner: tx pool drops txs below ask price | obscuren | 2015-06-15 | 1 | -3/+16 |
| | |||||
* | core: fixed race condition for subscriptions | obscuren | 2015-06-10 | 1 | -2/+1 |
| | |||||
* | core: fixed race condition in the transaction pool | obscuren | 2015-06-10 | 1 | -30/+30 |
| | | | | Removed `Stop/Start` mechanism from the transaction pool. | ||||
* | core, xeth: moved nonce management burden from xeth to txpool | obscuren | 2015-06-10 | 1 | -10/+15 |
| | |||||
* | core, eth: document that result of GetTransactions is modifiable | Felix Lange | 2015-06-09 | 1 | -0/+1 |
| | |||||
* | core: added a test for missing nonces | obscuren | 2015-06-09 | 1 | -1/+1 |
| | | | | | 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 test | obscuren | 2015-06-05 | 1 | -20/+26 |
| | |||||
* | core: documented changes in tx pool | obscuren | 2015-06-04 | 1 | -3/+30 |
| | |||||
* | core: only change the nonce if the account nonce is lower | obscuren | 2015-06-04 | 1 | -1/+3 |
| | |||||
* | core: renamed txs to pending | obscuren | 2015-06-04 | 1 | -16/+16 |
| | |||||
* | core: test updates | obscuren | 2015-06-04 | 1 | -1/+0 |
| | |||||
* | core, eth, miner: moved nonce management to tx pool. | obscuren | 2015-06-04 | 1 | -37/+51 |
| | | | | | | | | 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: update documentation comments for TxPool | Felix Lange | 2015-06-04 | 1 | -22/+25 |
| | |||||
* | core: remove unused code from TxPool | Felix Lange | 2015-06-04 | 1 | -41/+13 |
| | |||||
* | core: compute less transaction hashes in TxPool | Felix Lange | 2015-06-04 | 1 | -72/+72 |
| | |||||
* | Merge pull request #1167 from Gustav-Simonsson/check_ec_recover_err | Jeffrey Wilcke | 2015-06-04 | 1 | -1/+1 |
|\ | | | | | Add missing err checks on From() | ||||
| * | Add missing err checks on From() (skip RPC for now) | Gustav Simonsson | 2015-06-02 | 1 | -1/+1 |
| | | |||||
* | | Add EC signature validations before call to libsecp256k1 | Gustav Simonsson | 2015-06-02 | 1 | -6/+0 |
|/ | |||||
* | core: check negative value transactions. Closes #1109 | obscuren | 2015-05-27 | 1 | -0/+5 |
| | |||||
* | core: optimise pending transaction processing | obscuren | 2015-05-11 | 1 | -1/+1 |
| | |||||
* | core: get transaction by hash from transaction pool | obscuren | 2015-05-08 | 1 | -0/+21 |
| | |||||
* | core: use removeTx instead of delete | obscuren | 2015-05-07 | 1 | -1/+1 |
| | |||||
* | core: remove txs from queue in addition to removal of pending | obscuren | 2015-04-30 | 1 | -1/+22 |
| | |||||
* | core, miner: added value check on tx validation | obscuren | 2015-04-26 | 1 | -9/+9 |
| | | | | | | * 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 limit | obscuren | 2015-04-24 | 1 | -1/+9 |
| | | | | Transactions will be invalidated when the tx.gas_limit > block.gas_limit | ||||
* | core: pending txs now re-validated once every second | obscuren | 2015-04-23 | 1 | -3/+27 |
| | |||||
* | core: added accessor for queued transactions | obscuren | 2015-04-23 | 1 | -0/+12 |
| | |||||
* | eth: moved mined, tx events to protocol-hnd and improved tx propagation | obscuren | 2015-04-23 | 1 | -2/+4 |
| | | | | | | | | | 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. | ||||
* | core: only post event once per tx & fixed test | obscuren | 2015-04-23 | 1 | -9/+15 |
| | |||||
* | core: implemented a queued approach processing transactions | obscuren | 2015-04-23 | 1 | -22/+70 |
| | | | | | | | 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 | ||||
* | core: removed nonce resetting from the block processor. | obscuren | 2015-04-21 | 1 | -2/+4 |
| | | | | All nonce error handling has been moved to the worker | ||||
* | Default log to stderr | obscuren | 2015-04-09 | 1 | -1/+0 |
| | |||||
* | Improved transaction pool | obscuren | 2015-04-09 | 1 | -42/+45 |
| | | | | | | | | | | 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 | ||||
* | ignore invalid txs right after being added if they prove incorrect | obscuren | 2015-04-09 | 1 | -0/+1 |
| | |||||
* | Sync managed accounts to the network | obscuren | 2015-04-08 | 1 | -3/+2 |
| | |||||
* | Improved tx pool to ignore invalid transactions | obscuren | 2015-04-08 | 1 | -8/+29 |
| | | | | | Transaction pool will attempt to ignore invalid transactions it had previously encountered. | ||||
* | core: fix tests | Felix Lange | 2015-03-18 | 1 | -1/+1 |
| | |||||
* | core: actually convert transaction pool | Felix Lange | 2015-03-17 | 1 | -6/+9 |
| | |||||
* | core: convert transaction pool to common.{Address,Hash} | Felix Lange | 2015-03-17 | 1 | -33/+21 |
| | |||||
* | Moved ethutil => common | obscuren | 2015-03-16 | 1 | -3/+3 |
| | |||||
* | Introducing ethash | Matthew Wampler-Doty | 2015-03-03 | 1 | -1/+1 |
| | |||||
* | Merge branch 'develop' of https://github.com/ethereum/go-ethereum into develop | Ethan Buchman | 2015-02-27 | 1 | -10/+25 |
|\ | |||||
| * | Removed exported fields from state object and added proper set/getters | obscuren | 2015-02-20 | 1 | -1/+1 |
| | | |||||
| * | Optimisations and fixed a couple of DDOS issues in the miner | obscuren | 2015-02-20 | 1 | -9/+24 |
| | | |||||
* | | Merge branch 'develop' of https://github.com/ethereum/go-ethereum into develop | Ethan Buchman | 2015-02-18 | 1 | -7/+13 |
|\| | |||||
| * | Validate transactions sender before adding to pool. Closes #272 | obscuren | 2015-02-01 | 1 | -7/+13 |
| | | |||||
* | | fix unchecked slice index on tx.From() | Ethan Buchman | 2015-01-27 | 1 | -2/+7 |
|/ | |||||
* | Fixed tests where txs weren't properly removed | obscuren | 2015-01-07 | 1 | -5/+5 |
| | |||||
* | Merge | obscuren | 2015-01-06 | 1 | -31/+23 |
| | |||||
* | Fixed bug where logging could crash client during tx adding | obscuren | 2015-01-03 | 1 | -1/+9 |
| | |||||
* | Removed the need of having a backend for the tx pool | obscuren | 2015-01-02 | 1 | -13/+10 |
| | |||||
* | Removed value check from tx validation | obscuren | 2015-01-02 | 1 | -2/+6 |
| | |||||
* | Refactored tx pool and added extra fields to block | obscuren | 2015-01-02 | 1 | -96/+34 |
| | | | | | | * 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 | ||||
* | Merge branch 'badsig' of https://github.com/ebuchman/go-ethereum into ↵ | obscuren | 2014-12-19 | 1 | -2/+6 |
| | | | | | | | ebuchman-badsig Conflicts: core/transaction_pool.go | ||||
* | merge | obscuren | 2014-12-19 | 1 | -15/+6 |
|\ | |||||
| * | Moved methods to messages | obscuren | 2014-12-18 | 1 | -6/+0 |
| | | |||||
| * | Created generic message (easy for testing) | obscuren | 2014-12-18 | 1 | -10/+7 |
| | | |||||
* | | Merge fixes | obscuren | 2014-12-18 | 1 | -4/+2 |
| | | |||||
* | | Merged develop | obscuren | 2014-12-18 | 1 | -9/+15 |
|\| | |||||
| * | Locks, refactor, tests | obscuren | 2014-12-18 | 1 | -10/+16 |
| | | | | | | | | | | | | * Added additional chain tests * Added proper mutex' on chain * Removed ethereum dependencies | ||||
* | | transaction pool changes | zelig | 2014-12-15 | 1 | -10/+16 |
|/ | | | | | | - use eventer events to broadcast transactions - CurrentTransactions -> GetTransactions - add AddTransactions | ||||
* | states moved to chain | obscuren | 2014-12-11 | 1 | -1/+1 |
| | |||||
* | Skip mining on transactions that don't meet the min accepted gas price | obscuren | 2014-12-05 | 1 | -4/+4 |
| | |||||
* | Improved and simplified wallet functions and behaviour | obscuren | 2014-12-04 | 1 | -1/+1 |
| | |||||
* | Renamed State => StateDB | obscuren | 2014-12-04 | 1 | -1/+1 |
| | |||||
* | Renamed `chain` => `core` | obscuren | 2014-12-04 | 1 | -0/+236 |