- 01 6月, 2017 2 次提交
-
-
由 Péter Szilágyi 提交于
-
由 Péter Szilágyi 提交于
-
- 30 5月, 2017 1 次提交
-
-
由 Péter Szilágyi 提交于
-
- 29 5月, 2017 1 次提交
-
-
由 Péter Szilágyi 提交于
-
- 25 5月, 2017 2 次提交
-
-
由 Péter Szilágyi 提交于
-
由 changhong 提交于
1. fix typos 2. methods recevier of struct should be same 3. comments improve (cherry picked from commit 1ba979539582a00b7fd1a7c8a37a6852e59eac0d)
-
- 17 5月, 2017 1 次提交
-
-
由 Péter Szilágyi 提交于
-
- 28 2月, 2017 2 次提交
-
-
由 Felix Lange 提交于
* common/math: optimize PaddedBigBytes, use it more name old time/op new time/op delta PaddedBigBytes-8 71.1ns ± 5% 46.1ns ± 1% -35.15% (p=0.000 n=20+19) name old alloc/op new alloc/op delta PaddedBigBytes-8 48.0B ± 0% 32.0B ± 0% -33.33% (p=0.000 n=20+20) * all: unify big.Int zero checks Various checks were in use. This commit replaces them all with Int.Sign, which is cheaper and less code. eg templates: func before(x *big.Int) bool { return x.BitLen() == 0 } func after(x *big.Int) bool { return x.Sign() == 0 } func before(x *big.Int) bool { return x.BitLen() > 0 } func after(x *big.Int) bool { return x.Sign() != 0 } func before(x *big.Int) int { return x.Cmp(common.Big0) } func after(x *big.Int) int { return x.Sign() } * common/math, crypto/secp256k1: make ReadBits public in package math
-
由 Péter Szilágyi 提交于
-
- 23 2月, 2017 1 次提交
-
-
由 Péter Szilágyi 提交于
-
- 15 2月, 2017 1 次提交
-
-
由 Felix Lange 提交于
-
- 25 1月, 2017 1 次提交
-
-
由 Felix Lange 提交于
The Subscription type is gone, all uses are replaced by *TypeMuxSubscription. This change is prep-work for the introduction of the new Subscription type in a later commit. gorename -from '"github.com/ethereum/go-ethereum/event"::Event' -to TypeMuxEvent gorename -from '"github.com/ethereum/go-ethereum/event"::muxsub' -to TypeMuxSubscription gofmt -w -r 'Subscription -> *TypeMuxSubscription' ./event/*.go find . -name '*.go' -and -not -regex '\./vendor/.*' \| xargs gofmt -w -r 'event.Subscription -> *event.TypeMuxSubscription'
-
- 07 1月, 2017 1 次提交
-
-
由 Péter Szilágyi 提交于
-
- 06 1月, 2017 1 次提交
-
-
由 Felix Lange 提交于
-
- 16 12月, 2016 1 次提交
-
-
由 Péter Szilágyi 提交于
-
- 13 12月, 2016 1 次提交
-
-
由 Bas van Kervel 提交于
-
- 11 12月, 2016 1 次提交
-
-
由 bas-vk 提交于
The transaction pool keeps track of the current nonce in its local pendingState. When a new block comes in the pendingState is reset. During the reset it fetches multiple times the current state through the use of the currentState callback. When a second block comes in during the reset its possible that the state changes during the reset. If that block holds transactions that are currently in the pool the local pendingState that is used to determine nonces can get out of sync.
-
- 13 11月, 2016 2 次提交
-
-
由 Jeffrey Wilcke 提交于
-
由 Jeffrey Wilcke 提交于
This commit implements EIP158 part 1, 2, 3 & 4 1. If an account is empty it's no longer written to the trie. An empty account is defined as (balance=0, nonce=0, storage=0, code=0). 2. Delete an empty account if it's touched 3. An empty account is redefined as either non-existent or empty. 4. Zero value calls and zero value suicides no longer consume the 25k reation costs. params: moved core/config to params Signed-off-by: NJeffrey Wilcke <jeffrey@ethereum.org>
-
- 01 11月, 2016 1 次提交
-
-
由 Martin Holst Swende 提交于
* core: Add metrics collection for transaction events; replace/discard for pending and future queues, as well as invalid transactions * core: change namespace for txpool metrics * core: define more metrics (not yet used) * core: implement more tx metrics for when transactions are dropped * core: minor formatting tweeks (will squash later) * core: remove superfluous meter, fix missing pending nofunds * core, metrics: switch txpool meters to counters
-
- 14 10月, 2016 1 次提交
-
-
由 Péter Szilágyi 提交于
-
- 10 10月, 2016 1 次提交
-
-
由 Felix Lange 提交于
-
- 06 10月, 2016 1 次提交
-
-
由 Felix Lange 提交于
This commit replaces the deep-copy based state revert mechanism with a linear complexity journal. This commit also hides several internal StateDB methods to limit the number of ways in which calling code can use the journal incorrectly. As usual consultation and bug fixes to the initial implementation were provided by @karalabe, @obscuren and @Arachnid. Thank you!
-
- 02 9月, 2016 4 次提交
-
-
由 Péter Szilágyi 提交于
-
由 Péter Szilágyi 提交于
-
由 Péter Szilágyi 提交于
-
由 Péter Szilágyi 提交于
-
- 03 6月, 2016 1 次提交
-
-
由 Felix Lange 提交于
Fixes #2650
-
- 09 5月, 2016 1 次提交
-
-
由 Felix Lange 提交于
Shutting down geth prints hundreds of annoying error messages in some cases. The errors appear because the Stop method of eth.ProtocolManager, miner.Miner and core.TxPool is asynchronous. Left over peer sessions generate events which are processed after Stop even though the database has already been closed. The fix is to make Stop synchronous using sync.WaitGroup. For eth.ProtocolManager, in order to make use of WaitGroup safe, we need a way to stop new peer sessions from being added while waiting on the WaitGroup. The eth protocol Run function now selects on a signaling channel and adds to the WaitGroup only if ProtocolManager is not shutting down. For miner.worker and core.TxPool the number of goroutines is static, WaitGroup can be used in the usual way without additional synchronisation.
-
- 01 4月, 2016 1 次提交
-
-
由 Jeffrey Wilcke 提交于
Added chain configuration options and write out during genesis database insertion. If no "config" was found, nothing is written to the database. Configurations are written on a per genesis base. This means that any chain (which is identified by it's genesis hash) can have their own chain settings.
-
- 16 3月, 2016 1 次提交
-
-
由 Leif Jurvetson 提交于
-
- 18 2月, 2016 2 次提交
-
-
由 Jeffrey Wilcke 提交于
* Removed some strange code that didn't apply state reverting properly * Refactored code setting from vm & state transition to the executioner * Updated tests
-
由 Gustav Simonsson 提交于
* change gas cost for contract creating txs * invalidate signature with s value greater than secp256k1 N / 2 * OOG contract creation if not enough gas to store code * new difficulty adjustment algorithm * new DELEGATECALL op code
-
- 01 2月, 2016 1 次提交
-
-
由 Péter Szilágyi 提交于
-
- 22 1月, 2016 1 次提交
-
-
由 Péter Szilágyi 提交于
-
- 05 1月, 2016 1 次提交
-
-
由 Péter Szilágyi 提交于
-
- 16 12月, 2015 1 次提交
-
-
由 zsfelfoldi 提交于
-
- 16 10月, 2015 1 次提交
-
-
由 Gustav Simonsson 提交于
-
- 12 10月, 2015 1 次提交
-
-
由 Péter Szilágyi 提交于
-
- 22 9月, 2015 1 次提交
-
-
由 Jeffrey Wilcke 提交于
Added a `Difference` method to `types.Transactions` which sets the receiver to the difference of a to b (NOTE: not a **and** b). Transaction pool subscribes to RemovedTransactionEvent adding back to those potential missing from the chain. When a chain re-org occurs remove any transactions that were removed from the canonical chain during the re-org as well as the receipts that were generated in the process. Closes #1746
-