aboutsummaryrefslogtreecommitdiffstats
path: root/core
Commit message (Collapse)AuthorAgeFilesLines
* core: handle nolocals during add, exepmt locals from expirationPéter Szilágyi2017-07-051-4/+9
|
* cmd, core: add --txpool.nolocals to disable local price exemptionsPéter Szilágyi2017-07-051-2/+4
|
* core, eth, les: polish txpool API around local/remote txsPéter Szilágyi2017-07-053-138/+143
|
* core: Prevent local tx:s from being discardedMartin Holst Swende2017-07-011-7/+12
|
* core: Change local-handling to use sender-account instead of tx hashesMartin Holst Swende2017-07-012-59/+48
|
* core: fix an off-by-one when the block import counts blocksMartin Holst Swende2017-06-291-1/+1
|
* Merge pull request #14718 from holiman/gascalc_fixPéter Szilágyi2017-06-282-17/+17
|\ | | | | core/vm: fix overflow in gas calculation formula
| * core/vm : fix testcase for gas calculationMartin Holst Swende2017-06-281-11/+7
| |
| * core/vm: fix overflow in gas calculation formulaMartin Holst Swende2017-06-281-6/+10
| |
* | core/vm: add benchmarks for some ops and precompiles (#14641)Martin Holst Swende2017-06-281-0/+242
|/
* core/state: access trie through Database interface, track errors (#14589)Felix Lange2017-06-2718-270/+354
| | | | | | | | | With this commit, core/state's access to the underlying key/value database is mediated through an interface. Database errors are tracked in StateDB and returned by CommitTo or the new Error method. Motivation for this change: We can remove the light client's duplicated copy of core/state. The light client now supports node iteration, so tracing and storage enumeration can work with the light client (not implemented in this commit).
* Merge pull request #14687 from markya0616/unused_eventsPéter Szilágyi2017-06-261-16/+0
|\ | | | | core: remove unused events
| * core: remove unused eventsmark.lin2017-06-231-16/+0
| |
* | Merge pull request #14673 from holiman/txfixPéter Szilágyi2017-06-232-41/+199
|\ \ | | | | | | core: add testcase for txpool
| * | core: ensure transactions correctly drop on pool limitingPéter Szilágyi2017-06-232-87/+166
| | |
| * | core: add testcase for txpoolMartin Holst Swende2017-06-232-0/+79
| | |
* | | eth/downloader: separate state sync from queue (#14460)Felix Lange2017-06-222-8/+29
|/ / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * eth/downloader: separate state sync from queue Scheduling of state node downloads hogged the downloader queue lock when new requests were scheduled. This caused timeouts for other requests. With this change, state sync is fully independent of all other downloads and doesn't involve the queue at all. State sync is started and checked on in processContent. This is slightly awkward because processContent doesn't have a select loop. Instead, the queue is closed by an auxiliary goroutine when state sync fails. We tried several alternatives to this but settled on the current approach because it's the least amount of change overall. Handling of the pivot block has changed slightly: the queue previously prevented import of pivot block receipts before the state of the pivot block was available. In this commit, the receipt will be imported before the state. This causes an annoyance where the pivot block is committed as fast block head even when state downloads fail. Stay tuned for more updates in this area ;) * eth/downloader: remove cancelTimeout channel * eth/downloader: retry state requests on timeout * eth/downloader: improve comment * eth/downloader: mark peers idle when state sync is done * eth/downloader: move pivot block splitting to processContent This change also ensures that pivot block receipts aren't imported before the pivot block itself. * eth/downloader: limit state node retries * eth/downloader: improve state node error handling and retry check * eth/downloader: remove maxStateNodeRetries It fails the sync too much. * eth/downloader: remove last use of cancelCh in statesync.go Fixes TestDeliverHeadersHang*Fast and (hopefully) the weird cancellation behaviour at the end of fast sync. * eth/downloader: fix leak in runStateSync * eth/downloader: don't run processFullSyncContent in LightSync mode * eth/downloader: improve comments * eth/downloader: fix vet, megacheck * eth/downloader: remove unrequested tasks anyway * eth/downloader, trie: various polishes around duplicate items This commit explicitly tracks duplicate and unexpected state delieveries done against a trie Sync structure, also adding there to import info logs. The commit moves the db batch used to commit trie changes one level deeper so its flushed after every node insertion. This is needed to avoid a lot of duplicate retrievals caused by inconsistencies between Sync internals and database. A better approach is to track not-yet-written states in trie.Sync and flush on commit, but I'm focuing on correctness first now. The commit fixes a regression around pivot block fail count. The counter previously was reset to 1 if and only if a sync cycle progressed (inserted at least 1 entry to the database). The current code reset it already if a node was delivered, which is not stong enough, because unless it ends up written to disk, an attacker can just loop and attack ad infinitum. The commit also fixes a regression around state deliveries and timeouts. The old downloader tracked if a delivery is stale (none of the deliveries were requestedt), in which case it didn't mark the node idle and did not send further requests, since it signals a past timeout. The current code did mark it idle even on stale deliveries, which eventually caused two requests to be in flight at the same time, making the deliveries always stale and mass duplicating retrievals between multiple peers. * eth/downloader: fix state request leak This commit fixes the hang seen sometimes while doing the state sync. The cause of the hang was a rare combination of events: request state data from peer, peer drops and reconnects almost immediately. This caused a new download task to be assigned to the peer, overwriting the old one still waiting for a timeout, which in turned leaked the requests out, never to be retried. The fix is to ensure that a task assignment moves any pending one back into the retry queue. The commit also fixes a regression with peer dropping due to stalls. The current code considered a peer stalling if they timed out delivering 1 item. However, the downloader never requests only one, the minimum is 2 (attempt to fine tune estimated latency/bandwidth). The fix is simply to drop if a timeout is detected at 2 items. Apart from the above bugfixes, the commit contains some code polishes I made while debugging the hang. * core, eth, trie: support batched trie sync db writes * trie: rename SyncMemCache to syncMemBatch
* / cmd/evm, core/vm: add --nomemory, --nostack to evm (#14617)Martin Holst Swende2017-06-212-31/+31
|/
* Merge pull request #14581 from holiman/byte_optPéter Szilágyi2017-06-132-7/+48
|\ | | | | core/vm: improve opByte
| * core/vm, common/math: Add doc about Byte, fix formatMartin Holst Swende2017-06-091-1/+0
| |
| * common/math, core/vm: Un-expose bigEndianByteAt, use correct terms for ↵Martin Holst Swende2017-06-071-2/+2
| | | | | | | | endianness
| * core/vm, common/math: Add fast getByte for bigints, improve opByteMartin Holst Swende2017-06-052-7/+49
| |
* | cmd/evm: add --prestate, --sender, --json flags for fuzzing (#14476)Martin Holst Swende2017-06-074-19/+142
| |
* | core/types: use Header.Hash for block hashes (#14587)bailantaotao2017-06-071-1/+1
| | | | | | Fixes #14586
* | core: Fix VM error loggingLewis Marshall2017-06-061-1/+1
|/ | | | Signed-off-by: Lewis Marshall <lewis@lmars.net>
* core/vm: Use a bitmap instead of a map for jumpdest analysisNick Johnson2017-06-021-14/+12
| | | | t push --force
* core: only reorg changed account, not allPéter Szilágyi2017-06-012-21/+35
|
* core: don't uselessly recheck transactions on dumpPéter Szilágyi2017-06-011-19/+8
|
* core: check for gas limit exceeding txs too on new blockPéter Szilágyi2017-05-303-31/+72
|
* cmd, core, eth: configurable txpool parametersPéter Szilágyi2017-05-294-75/+120
|
* core: fix minor accidental typos and comment errorsPéter Szilágyi2017-05-253-8/+8
|
* core: typos and comments improvechanghong2017-05-2511-323/+324
| | | | | | | | 1. fix typos 2. methods recevier of struct should be same 3. comments improve (cherry picked from commit 1ba979539582a00b7fd1a7c8a37a6852e59eac0d)
* core/vm: allocate stack to 1024Jeffrey Wilcke2017-05-251-1/+1
| | | | | Pre allocate the stack to 1024 optimising stack pushing, reducing calls to runtime.makeslice and runtime.mallocgc
* Merge pull request #14502 from karalabe/mobile-import-ecdsaFelix Lange2017-05-251-1/+1
|\ | | | | Enforce 256 bit keys on raw import, support raw mobile imports
| * accounts/keystore, crypto: enforce 256 bit keys on importPéter Szilágyi2017-05-231-1/+1
| |
* | core/vm: expose intpool to stack dup methodJeffrey Wilcke2017-05-232-3/+3
| | | | | | | | | | Improve the duplication method of the stack to reuse big ints by passing in an existing integer pool.
* | core/vm: capped int poolJeffrey Wilcke2017-05-231-0/+6
| |
* | core/vm: improved push instructionsJeffrey Wilcke2017-05-232-35/+48
| | | | | | | | | | Improved push instructions by removing unnecessary big int allocations and by making it int instead of big.Int
* | core/vm: improve error message for invalid opcodesValentin Wüstholz2017-05-221-1/+1
| |
* | core/state: fixed (self)destructed objectsJeffrey Wilcke2017-05-182-2/+9
| | | | | | | | | | | | Add the object to the list of destructed objects during a selfdestruct / suicide operation and also remove it from the list once the journal reverts.
* | consensus, core, core/vm, parems: review fixesJeffrey Wilcke2017-05-184-23/+13
| |
* | core/types: corrected abstract signing addressJeffrey Wilcke2017-05-181-1/+1
| |
* | consensus, core/*, params: metropolis preparation refactorJeffrey Wilcke2017-05-1811-133/+233
|/ | | | | | | | | | | | | | | | | | | | | | | | This commit is a preparation for the upcoming metropolis hardfork. It prepares the state, core and vm packages such that integration with metropolis becomes less of a hassle. * Difficulty calculation requires header instead of individual parameters * statedb.StartRecord renamed to statedb.Prepare and added Finalise method required by metropolis, which removes unwanted accounts from the state (i.e. selfdestruct) * State keeps record of destructed objects (in addition to dirty objects) * core/vm pre-compiles may now return errors * core/vm pre-compiles gas check now take the full byte slice as argument instead of just the size * core/vm now keeps several hard-fork instruction tables instead of a single instruction table and removes the need for hard-fork checks in the instructions * core/vm contains a empty restruction function which is added in preparation of metropolis write-only mode operations * Adds the bn256 curve * Adds and sets the metropolis chain config block parameters (2^64-1)
* cmd, core, eth, miner: remove txpool gas price limits (#14442)Péter Szilágyi2017-05-174-101/+599
|
* core: fix processing regression during receipt importPéter Szilágyi2017-05-082-8/+5
|
* cmd, core, params: add --rinkeby flag for fast connectivityPéter Szilágyi2017-05-042-0/+13
|
* Merge pull request #14350 from fjl/trie-iterator-skip-2Péter Szilágyi2017-04-254-7/+24
|\ | | | | eth: add debug_storageRangeAt
| * eth: add debug_storageRangeAtFelix Lange2017-04-252-2/+18
| |
| * trie: add start key to NodeIterator constructorsFelix Lange2017-04-253-5/+5
| | | | | | | | | | | | | | | | | | The 'step' method is split into two parts, 'peek' and 'push'. peek returns the next state but doesn't make it current. The end of iteration was previously tracked by setting 'trie' to nil. End of iteration is now tracked using the 'iteratorEnd' error, which is slightly cleaner and requires less code.
| * trie: clean up iterator constructorsFelix Lange2017-04-253-4/+5
| | | | | | | | | | | | | | Make it so each iterator has exactly one public constructor: - NodeIterators can be created through a method. - Iterators can be created through NewIterator on any NodeIterator.
* | core, light: delete SplitStatTy, ChainSplitEvent (unused)Felix Lange2017-04-222-12/+3
| |
* | core: make genesis incompatibility error more explicitPéter Szilágyi2017-04-201-1/+1
|/
* all: update license informationFelix Lange2017-04-149-2/+114
|
* core: don't import genesis block in TestDAOForkRangeExtradataFelix Lange2017-04-131-4/+4
| | | | The genesis block doesn't have a valid ancestor.
* consensus, core, ethstats: use engine specific block beneficiary (#14318)Péter Szilágyi2017-04-125-11/+29
| | | | | | * consensus, core, ethstats: use engine specific block beneficiary * core, eth, les, miner: use explicit beneficiary during mining
* core: fix comment typoJustin2017-04-101-1/+1
|
* consensus/clique: Proof of Authority (#3753)Péter Szilágyi2017-04-101-4/+1
| | | | This PR is a prototype implementation of plugable consensus engines and the Clique PoA protocol ethereum/EIPs#225
* consensus, core: drop all the legacy custom core error typesPéter Szilágyi2017-04-068-220/+38
|
* core, core/types: regenerate JSON marshaling, add "hash" to headers (#13868)Felix Lange2017-04-0611-259/+250
| | | | | | | | | | * Makefile: fix devtools target * core: regenerate genesis marshaling with fjl/gencodec@cbfa5be5a8a8 * core/types: regenerate marshaling methods with fjl/gencodec@cbfa5be5a8a8 * core/types: add "hash" to JSON headers
* core/state: make TestSnapshotRandom work again (#3816)gary rong2017-04-053-5/+8
| | | | | | In `touch` operation, only `touched` filed has been changed. Therefore in the related undo function, only `touched` field should be reverted. In addition, whether remove this obj from dirty map should depend on prevDirty flag.
* core, consensus: pluggable consensus engines (#3817)Péter Szilágyi2017-04-0516-962/+335
| | | | | This commit adds pluggable consensus engines to go-ethereum. In short, it introduces a generic consensus interface, and refactors the entire codebase to use this interface.
* core/types: rename txdata.gasLimit -> txdata.gas in JSON (#13848)bas-vk2017-03-292-4/+4
|
* core, core/types: use non-pointer receiver for Marshal* methodsFelix Lange2017-03-277-112/+106
| | | | | Regenerated with fjl/gencodec@1a75a2161009 Also add ,omitempty to optional GenesisAccount fields.
* core/types: ensure all EIP155 signer fields are set by deriveSignerFelix Lange2017-03-251-1/+1
| | | | Fixes #3819
* core: refactor genesis handlingFelix Lange2017-03-2318-529/+813
| | | | | | | | | | | | | | | | | | | | | | | | This commit solves several issues concerning the genesis block: * Genesis/ChainConfig loading was handled by cmd/geth code. This left library users in the cold. They could specify a JSON-encoded string and overwrite the config, but didn't get any of the additional checks performed by geth. * Decoding and writing of genesis JSON was conflated in WriteGenesisBlock. This made it a lot harder to embed the genesis block into the forthcoming config file loader. This commit changes things so there is a single Genesis type that represents genesis blocks. All uses of Write*Genesis* are changed to use the new type instead. * If the chain config supplied by the user was incompatible with the current chain (i.e. the chain had already advanced beyond a scheduled fork), it got overwritten. This is not an issue in practice because previous forks have always had the highest total difficulty. It might matter in the future though. The new code reverts the local chain to the point of the fork when upgrading configuration. The change to genesis block data removes compression library dependencies from package core.
* core/types: handle nil ChainId in NewEIP155SignerFelix Lange2017-03-231-0/+3
| | | | | | All uses of ChainConfig.ChainId eventually end up in NewEIP155Signer. This fixes the case where users forget to set the ChainId in their config.
* core/state: expose CommitToFelix Lange2017-03-231-2/+3
|
* les: implement request distributor, fix blocking issues (#3660)Felföldi Zsolt2017-03-232-5/+15
| | | | | * les: implement request distributor, fix blocking issues * core: moved header validation before chain mutex lock
* core/vm: use uint64 instead of *big.Int in tracer (#3805)Yohann Leon2017-03-223-14/+10
|
* core, eth, les: support resuming fast sync on heavy rollback (#3743)Péter Szilágyi2017-03-221-24/+49
|
* Merge pull request #3756 from fjl/core-types-gencodecFelix Lange2017-03-229-312/+510
|\ | | | | core/types: use gencodec for JSON marshaling code
| * core/types: use gencodec for JSON marshaling codeFelix Lange2017-03-079-312/+510
| |
* | all: swap out the C++ ethash to the pure Go one (mining todo)Péter Szilágyi2017-03-0910-58/+52
|/
* Merge pull request #3739 from karalabe/logger-updates-4Péter Szilágyi2017-03-041-2/+0
|\ | | | | all: update light logs (and a few others) to the new model
| * all: update light logs (and a few others) to the new modelPéter Szilágyi2017-03-031-2/+0
| |
* | core: reorg logs crashed, add a check for corner casesPéter Szilágyi2017-03-031-6/+9
|/
* Merge pull request #3722 from fjl/hexutil-text-unmarshalPéter Szilágyi2017-03-022-12/+12
|\ | | | | common/hexutil: implement TextMarshaler, TextUnmarshaler
| * common/hexutil: implement TextMarshaler, TextUnmarshalerFelix Lange2017-03-022-12/+12
| | | | | | | | | | | | | | | | | | | | | | | | | | This commit makes the wrapper types more generally applicable. encoding.TextMarshaler is supported by most codec implementations (e.g. for yaml). The tests now ensure that package json actually recognizes the custom marshaler implementation irrespective of how it is implemented. The Uint type has new tests, too. These are tricky because uint size depends on the CPU word size. Turns out that there was one incorrect case where decoding returned ErrUint64Range instead of ErrUintRange.
* | core/evm, core/vm: improved evm trace outputJeffrey Wilcke2017-03-011-15/+25
|/ | | | | | | | * Improved the standard evm tracer output and renamed it to WriteTrace which now takes an io.Writer to write the logs to. * Added WriteLogs which writes logs to the given writer in a readable format. * evm utility now also prints logs generated during the execution.
* cmd/evm, core/asm: add EVM assembler (#3686)Jeffrey Wilcke2017-03-014-18/+610
| | | | | The evm compile command implements a simple assembly language that compiles to EVM bytecode.
* cmd/utils, core, params: fork all teh things for dev mode (#3697)Jeffrey Wilcke2017-03-011-0/+3
|
* Merge pull request #3723 from karalabe/logger-updates-2Péter Szilágyi2017-02-2812-220/+152
|\ | | | | Logger updates
| * core/state: drop most of a logs (useless at this volume)Péter Szilágyi2017-02-282-17/+2
| |
| * core, log: track field length and pad to alignPéter Szilágyi2017-02-282-7/+7
| |
| * all: next batch of log polishes to contextual versionsPéter Szilágyi2017-02-2810-203/+150
| |
* | all: unify big.Int zero checks, use common/math in more places (#3716)Felix Lange2017-02-2811-25/+27
|/ | | | | | | | | | | | | | | | | | | | | | | | | | | | * 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
* core, eth: drop database block splitting upgraderPéter Szilágyi2017-02-281-18/+0
|
* core, core/vm, cmd/disasm: unify procedures for disassembling evm code (#3530)Valentin Wüstholz2017-02-275-162/+213
|
* common: move big integer math to common/math (#3699)Felix Lange2017-02-2712-72/+111
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * common: remove CurrencyToString Move denomination values to params instead. * common: delete dead code * common: move big integer operations to common/math This commit consolidates all big integer operations into common/math and adds tests and documentation. There should be no change in semantics for BigPow, BigMin, BigMax, S256, U256, Exp and their behaviour is now locked in by tests. The BigD, BytesToBig and Bytes2Big functions don't provide additional value, all uses are replaced by new(big.Int).SetBytes(). BigToBytes is now called PaddedBigBytes, its minimum output size parameter is now specified as the number of bytes instead of bits. The single use of this function is in the EVM's MSTORE instruction. Big and String2Big are replaced by ParseBig, which is slightly stricter. It previously accepted leading zeros for hexadecimal inputs but treated decimal inputs as octal if a leading zero digit was present. ParseUint64 is used in places where String2Big was used to decode a uint64. The new functions MustParseBig and MustParseUint64 are now used in many places where parsing errors were previously ignored. * common: delete unused big integer variables * accounts/abi: replace uses of BytesToBig with use of encoding/binary * common: remove BytesToBig * common: remove Bytes2Big * common: remove BigTrue * cmd/utils: add BigFlag and use it for error-checked integer flags While here, remove environment variable processing for DirectoryFlag because we don't use it. * core: add missing error checks in genesis block parser * common: remove String2Big * cmd/evm: use utils.BigFlag * common/math: check for 256 bit overflow in ParseBig This is supposed to prevent silent overflow/truncation of values in the genesis block JSON. Without this check, a genesis block that set a balance larger than 256 bits would lead to weird behaviour in the VM. * cmd/utils: fixup import
* all: blidly swap out glog to our log15, logs need reworkPéter Szilágyi2017-02-2312-161/+154
|
* trie: add difference iterator (#3637)Nick Johnson2017-02-231-17/+16
| | | | | This PR implements a differenceIterator, which allows iterating over trie nodes that exist in one trie but not in another. This is a prerequisite for most GC strategies, in order to find obsolete nodes.
* core, core/state, core/vm: remove exported account getters (#3618)Jeffrey Wilcke2017-02-2317-193/+184
| | | | Removed exported statedb object accessors, reducing the chance for nasty bugs to creep in. It's also ugly and unnecessary to have these methods.
* core/vm, crypto: support for go-fuzz (#3672)Jeffrey Wilcke2017-02-211-0/+20
|
* core/blockchain: Change iterator in procFutureBlocks to use lru.Peek instead ↵Martin Holst Swende2017-02-181-1/+1
| | | | of Get (#3655)
* crypto: add btcec fallback for sign/recover without cgo (#3680)Felix Lange2017-02-181-10/+16
| | | | | | | | | | | * vendor: add github.com/btcsuite/btcd/btcec * crypto: add btcec fallback for sign/recover without cgo This commit adds a non-cgo fallback implementation of secp256k1 operations. * crypto, core/vm: remove wrappers for sha256, ripemd160
* logger: remove Core verbosity level (#3659)Felix Lange2017-02-155-13/+13
|
* params: core, core/vm, miner: 64bit gas instructionsJeffrey Wilcke2017-02-1424-681/+843
| | | | | | | | | | | | | | | | | Reworked the EVM gas instructions to use 64bit integers rather than arbitrary size big ints. All gas operations, be it additions, multiplications or divisions, are checked and guarded against 64 bit integer overflows. In additon, most of the protocol paramaters in the params package have been converted to uint64 and are now constants rather than variables. * common/math: added overflow check ops * core: vmenv, env renamed to evm * eth, internal/ethapi, les: unmetered eth_call and cancel methods * core/vm: implemented big.Int pool for evm instructions * core/vm: unexported intPool methods & verification methods * core/vm: added memoryGasCost overflow check and test
* core, eth, internal: Added `debug_getBadBlocks()` method (#3654)Martin Holst Swende2017-02-142-1/+30
| | | | | | | | | | | | | | | | * core,eth,internal: Added `debug_getBadBlocks()` method When bad blocks are discovered, these are stored within geth. An RPC-endpoint makes them availablewithin the `debug` namespace. This feature makes it easier to discover network forks. ``` * core, api: go format + docs * core/blockchain: Documentation, fix minor nitpick * core: fix failing blockchain test
* Revert "params: core, core/vm, miner: 64bit gas instructions (#3514)"Jeffrey Wilcke2017-02-1325-1076/+922
| | | | This reverts commit 8b57c494908637a5c0e74f8f7a13b3218e026757.
* core: ignore 0x prefix for code in JSON genesis blocks (#3656)Martin Holst Swende2017-02-131-1/+1
|
* Merge pull request #3635 from holiman/hive_fixesPéter Szilágyi2017-02-031-0/+2
|\ | | | | core/genesis: add support for setting nonce in 'alloc'
| * core/genesis: add support for setting nonce in 'alloc'Martin Holst Swende2017-01-251-0/+2
| | | | | | | | This is to be able to set `pre`-state when performing blockchain tests through Hive, we need to be able to set the nonce.
* | Merge pull request #3605 from fjl/event-feedPéter Szilágyi2017-02-031-1/+1
|\ \ | | | | | | event: add new Subscription type and related utilities
| * | event: deprecate TypeMux and related typesFelix Lange2017-01-251-1/+1
| |/ | | | | | | | | | | | | | | | | | | | | 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'
* | params: core, core/vm, miner: 64bit gas instructions (#3514)Jeffrey Wilcke2017-02-0224-631/+793
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Reworked the EVM gas instructions to use 64bit integers rather than arbitrary size big ints. All gas operations, be it additions, multiplications or divisions, are checked and guarded against 64 bit integer overflows. In additon, most of the protocol paramaters in the params package have been converted to uint64 and are now constants rather than variables. * common/math: added overflow check ops * core: vmenv, env renamed to evm * eth, internal/ethapi, les: unmetered eth_call and cancel methods * core/vm: implemented big.Int pool for evm instructions * core/vm: unexported intPool methods & verification methods * core/vm: added memoryGasCost overflow check and test
* | state: take write lock in GetNonce (#3625)Brian Schroeder2017-02-011-3/+5
| | | | | | | | We must take a write lock here because `GetNonce` calls `StateDB.GetStateObject`, which mutates the DB's live set.
* | core/types: add unittest for tx json serialization (#3609)bas-vk2017-01-271-1/+43
| |
* | core: fix a small typo in blockchain.go (#3611)Vivek Anand2017-01-261-1/+1
|/
* core/types: make Transaction zero value printable (#3595)Felix Lange2017-01-241-14/+18
|
* types: bugfix invalid V derivation on tx json unmarshal (#3594)bas-vk2017-01-212-2/+3
|
* core: removal of dead-codeJeffrey Wilcke2017-01-181-3/+0
| | | | | | Removal of dead code that appeard as if we had a consensus issue. This however is not the case as the proper error catching happens in the vm package instead.
* core/blockchain: Made logging of reorgs more structured (#3573)Martin Holst Swende2017-01-171-6/+13
| | | | | | | | * core: Made logging of reorgs more structured, also always log if reorg is > 63 blocks long * core/blockchain: go fmt * core/blockchain: Minor fixes to the reorg reporting
* cmd/geth, core: add support for recording SHA3 preimages (#3543)Nick Johnson2017-01-1715-35/+118
|
* eth: accept leading zeros for nonce parameter of submitWork (#3558)Felix Lange2017-01-131-2/+2
|
* core: remove support for Olympic networkBas van Kervel2017-01-122-28/+11
|
* core: improve import log alignmentFelix Lange2017-01-112-10/+8
|
* Merge pull request #3535 from fjl/all-ineffassignPéter Szilágyi2017-01-102-6/+5
|\ | | | | all: fix ineffectual assignments
| * all: fix ineffectual assignments and remove uses of crypto.Sha3Felix Lange2017-01-092-6/+5
| | | | | | | | | | go get github.com/gordonklaus/ineffassign ineffassign .
* | core: fix race condition in WriteMipmapBloomBas van Kervel2017-01-091-0/+6
|/
* all: fix spelling errorsPéter Szilágyi2017-01-074-7/+7
|
* logger, pow/dagger, pow/ezp: delete dead codeFelix Lange2017-01-072-7/+2
|
* all: fix issues reported by honnef.co/go/simple/cmd/gosimpleFelix Lange2017-01-076-18/+9
|
* all: gofmt -w -sFelix Lange2017-01-069-143/+143
|
* Merge pull request #3516 from fjl/types-drop-sign-ecdsaPéter Szilágyi2017-01-068-75/+34
|\ | | | | core/types: remove redundant SignECDSA wrappers, rename to SignTx
| * core/types: remove redundant SignECDSA wrappers, rename to SignTxFelix Lange2017-01-058-75/+34
| |
* | Merge pull request #3518 from fjl/ethclient-dependency-cleanupPéter Szilágyi2017-01-0618-91/+84
|\ \ | | | | | | core/types: dependency cleanup
| * | trie: remove dependency on ethdbFelix Lange2017-01-062-9/+8
| | | | | | | | | | | | This removes the core/types -> leveldb dependency.
| * | core/vm: move Log to core/typesFelix Lange2017-01-0616-82/+76
| |/ | | | | | | | | | | | | | | This significantly reduces the dependency closure of ethclient, which no longer depends on core/vm as of this change. All uses of vm.Logs are replaced by []*types.Log. NewLog is gone too, the constructor simply returned a literal.
* | Merge pull request #3515 from bas-vk/exportropstenPéter Szilágyi2017-01-052-1/+5
|\ \ | |/ |/| core,cmd/utils: bugfix for ropsten dump imports
| * core,cmd/utils: bugfix for ropsten dump importsBas van Kervel2017-01-052-1/+5
| |
* | core/vm: improved EVM run loop & instruction calling (#3378)Jeffrey Wilcke2017-01-0528-1946/+1607
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The run loop, which previously contained custom opcode executes have been removed and has been simplified to a few checks. Each operation consists of 4 elements: execution function, gas cost function, stack validation function and memory size function. The execution function implements the operation's runtime behaviour, the gas cost function implements the operation gas costs function and greatly depends on the memory and stack, the stack validation function validates the stack and makes sure that enough items can be popped off and pushed on and the memory size function calculates the memory required for the operation and returns it. This commit also allows the EVM to go unmetered. This is helpful for offline operations such as contract calls.
* | accounts, core, crypto, internal: use normalised V during signature handling ↵Péter Szilágyi2017-01-055-96/+27
|/ | | | | | | | | (#3455) To address increasing complexity in code that handles signatures, this PR discards all notion of "different" signature types at the library level. Both the crypto and accounts package is reduced to only be able to produce plain canonical secp256k1 signatures. This makes the crpyto APIs much cleaner, simpler and harder to abuse.
* core, light: allow zero cost txs from inexistent accounts tooPéter Szilágyi2016-12-162-20/+8
|
* Merge pull request #3433 from karalabe/badblock-order-fixPéter Szilágyi2016-12-142-3/+40
|\ | | | | core: import future blocks one-by-one, enfore chain ancestry
| * core: import future blocks one-by-one, enfore chain ancestryPéter Szilágyi2016-12-132-3/+40
| |
* | core: init pending state in tx pool on creationBas van Kervel2016-12-131-10/+4
|/
* core: bugfix state change race condition in txpool (#3412)bas-vk2016-12-112-36/+124
| | | | | | | | 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.
* core, core/vm: implemented a generic environment (#3348)Jeffrey Wilcke2016-12-0623-797/+783
| | | | | | | | Environment is now a struct (not an interface). This reduces a lot of tech-debt throughout the codebase where a virtual machine environment had to be implemented in order to test or run it. The new environment is suitable to be used en the json tests, core consensus and light client.
* core, core/vm, eth/filters: move Removed field into vm.LogFelix Lange2016-12-054-56/+189
| | | | | | | | | | | | This field used to be assigned by the filter system and returned through the RPC API. Now that we have a Go client that uses the underlying type, the field needs to move. It is now assigned to true when the RemovedLogs event is generated so the filter system doesn't need to care about the field at all. While here, remove the log list from ChainSideEvent. There are no users of this field right now and any potential users could subscribe to RemovedLogsEvent instead.
* core/types: Document Transaction.To (#3366)Steven Roose2016-11-291-0/+2
|
* core/types: use package hexutil for JSON handlingFelix Lange2016-11-286-392/+40
|
* core/vm: use package hexutil for JSON handlingFelix Lange2016-11-282-28/+23
|
* core: fixed unwinding bad hash (#3347)Jeffrey Wilcke2016-11-281-3/+8
| | | Fixed unwinding of bad hashes when already on the canon chain
* core: eip unit tests (#3309)Jeffrey Wilcke2016-11-281-7/+71
|
* Merge pull request #3341 from obscuren/touch-delete-fixFelix Lange2016-11-255-2/+53
|\ | | | | core, core/state: fixed consensus issue added touch revert
| * core, core/state: fixed consensus issue added touch revertJeffrey Wilcke2016-11-255-2/+53
| | | | | | | | | | Implemented proper touch revert journal entries and copied a Parity consensus bug in order to remain in sync with the current longest chain.
* | core: remove dead eventPéter Szilágyi2016-11-241-3/+0
|/
* core: improved bad block error reporting (#3320)Jeffrey Wilcke2016-11-233-18/+31
|
* core: implemented new ropsten testnetJeffrey Wilcke2016-11-232-25/+15
|
* cmd/geth, core, light, mobile: removed state account StartingNonceJeffrey Wilcke2016-11-232-8/+4
| | | | All account's nonce start at 0.
* core: Don't perform EIP150 hash check on uncles (#3303)Nick Johnson2016-11-181-1/+1
|
* core, core/types: refactored tx chain id checking (#3257)Jeffrey Wilcke2016-11-154-12/+48
|\ | | | | | | | | | | | | | | * core, core/types: refactored tx chain id checking Refactored explicit chain id checking in to the Sender deriviation method * cmd/utils, params: define chain ids
| * core, core/types: refactored tx chain id checkingJeffrey Wilcke2016-11-144-12/+48
| | | | | | | | Refactored explicit chain id checking in to the Sender deriviation method
* | mobile: initial wrappers for mobile supportPéter Szilágyi2016-11-141-2/+2
| |
* | core/types: turn off nonce checking for Call messagesZsolt Felfoldi2016-11-141-15/+18
|/
* core/vm/runtime: fixed go vetJeffrey Wilcke2016-11-141-1/+9
|
* core, params: EIP#170Jeffrey Wilcke2016-11-141-3/+5
|
* core/types, params: EIP#155Jeffrey Wilcke2016-11-1317-202/+839
|
* core/vm, params: EIP160: EXP repriceJeffrey Wilcke2016-11-131-1/+2
|
* core, core/state, trie: EIP158, reprice & skip empty account writeJeffrey Wilcke2016-11-1334-281/+319
| | | | | | | | | | | | | | | 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: Jeffrey Wilcke <jeffrey@ethereum.org>
* all: update license informationFelix Lange2016-11-091-0/+16
|
* core/types: remove header accessorsFelix Lange2016-11-092-15/+6
| | | | | | These accessors were introduced by light client changes, but the only method that is actually used is GetNumberU64. This commit replaces all uses of .GetNumberU64 with .Number.Uint64.
* light: light chain, VM env and tx poolZsolt Felfoldi2016-11-093-27/+84
|
* common/math, core/vm: implement fast EXP (#3214)Jeffrey Wilcke2016-11-021-2/+3
| | | | | | | * common/math, core/vm: implement fast EXP. Courtesy @chfast & @karalabe * common/math: fix go vet issues on exp calculation
* core: metrics collection for transaction events (#3157)Martin Holst Swende2016-11-011-0/+30
| | | | | | | | | | | | | | | | * 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
* Merge pull request #3216 from karalabe/fastsync-bigdb-tuningPéter Szilágyi2016-11-012-7/+9
|\ | | | | core/state, eth/downloader, trie: reset fast-failure on progress
| * core/state, eth/downloader, trie: reset fast-failure on progressPéter Szilágyi2016-10-312-7/+9
| |
* | Merge pull request #3064 from pirapira/limit_struct_logsJeffrey Wilcke2016-10-313-3/+14
|\ \ | |/ |/| core/vm: add limit option to LogConfig
| * vm, ethapi: add `limit` option to traceTransactionYoichi Hirai2016-09-303-3/+14
| | | | | | | | | | | | | | | | | | | | | | | | that specifies the maximum number of elements in the `structLogs` output. This option is useful for debugging a transaction that involves a large number of repetition. For example, ``` debug.traceTransaction(tx, {disableStorage: true, limit: 2}) ``` shows at most the first two steps in the `structLogs`.
* | cmd, params: only set default fork configs for test and mainnetPéter Szilágyi2016-10-291-1/+1
| |
* | cmd/utils, core, params: explicitly pick reprice fork for fast syncPéter Szilágyi2016-10-292-2/+12
| |
* | internal/ethapi: add personal_sign and fix eth_sign to hash message (#2940)bas-vk2016-10-293-4/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This commit includes several API changes: - The behavior of eth_sign is changed. It now accepts an arbitrary message, prepends the well-known string \x19Ethereum Signed Message:\n<length of message> hashes the result using keccak256 and calculates the signature of the hash. This breaks backwards compatability! - personal_sign(hash, address [, password]) is added. It has the same semantics as eth_sign but also accepts a password. The private key used to sign the hash is temporarily unlocked in the scope of the request. - personal_recover(message, signature) is added and returns the address for the account that created a signature.
* | core/vm: Ignore EnableJit ChainConfig setting (#3166)Hao Bryan Cheng2016-10-211-1/+3
| |
* | cmd/geth, code, eth/downloader: tune import logs and mem statsPéter Szilágyi2016-10-212-3/+16
| |
* | cmd/geth, trie: report on trie cache unloads, also add debug logPéter Szilágyi2016-10-191-0/+2
| |
* | cmd, core/state: allow configurable trie cache generationsPéter Szilágyi2016-10-191-5/+5
| |
* | Merge pull request #3168 from benjaminbrent/developJeffrey Wilcke2016-10-191-1/+1
|\ \ | | | | | | core/vm: fix GASPRICE string (resolves #2553)
| * | core/vm: fix GASPRICE string (resolves #2553)Benjamin Brent2016-10-191-1/+1
| | |
* | | Merge pull request #3153 from fjl/trie-unload-fixJeffrey Wilcke2016-10-191-4/+4
|\ \ \ | |/ / |/| | trie: improve cache unloading mechanism
| * | core/state: bump trie cache values slightlyFelix Lange2016-10-181-4/+4
| | |
* | | Merge pull request #3156 from holiman/metrics-blocksJeffrey Wilcke2016-10-181-0/+2
|\ \ \ | | | | | | | | core: Add block processing time metric collection
| * | | core: Add block processing time metric collectionMartin Holst Swende2016-10-181-0/+2
| |/ /
* / / common, core, eth/downloader: adjust import log formattingPéter Szilágyi2016-10-182-18/+30
|/ /
* | Merge pull request #3111 from obscuren/gas-price-forkPéter Szilágyi2016-10-157-20/+129
|\ \ | | | | | | core, core/vm: added gas price variance table (EIP #150)
| * | core, core/vm: added gas price variance tableJeffrey Wilcke2016-10-157-20/+129
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This implements 1b & 1c of EIP150 by adding a new GasTable which must be returned from the RuleSet config method. This table is used to determine the gas prices for the current epoch. Please note that when the CreateBySuicide gas price is set it is assumed that we're in the new epoch phase. In addition this PR will serve as temporary basis while refactorisation in being done in the EVM64 PR, which will substentially overhaul the gas price code.
* | | Merge pull request #3138 from karalabe/txpool-pending-limitsPéter Szilágyi2016-10-152-5/+150
|\ \ \ | | | | | | | | core: add global (soft) limits on the pending transactions
| * | | core: add global (soft) limits on the pending transactionsPéter Szilágyi2016-10-142-5/+150
| | | |
* | | | trie, core/state: improve memory usage and performance (#3135)Felix Lange2016-10-153-7/+10
|/ / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * trie: store nodes as pointers This avoids memory copies when unwrapping node interface values. name old time/op new time/op delta Get 388ns ± 8% 215ns ± 2% -44.56% (p=0.000 n=15+15) GetDB 363ns ± 3% 202ns ± 2% -44.21% (p=0.000 n=15+15) UpdateBE 1.57µs ± 2% 1.29µs ± 3% -17.80% (p=0.000 n=13+15) UpdateLE 1.92µs ± 2% 1.61µs ± 2% -16.25% (p=0.000 n=14+14) HashBE 2.16µs ± 6% 2.18µs ± 6% ~ (p=0.436 n=15+15) HashLE 7.43µs ± 3% 7.21µs ± 3% -2.96% (p=0.000 n=15+13) * trie: close temporary databases in GetDB benchmark * trie: don't keep []byte from DB load around Nodes decoded from a DB load kept hashes and values as sub-slices of the DB value. This can be a problem because loading from leveldb often returns []byte with a cap that's larger than necessary, increasing memory usage. * trie: unload old cached nodes * trie, core/state: use cache unloading for account trie * trie: use explicit private flags (fixes Go 1.5 reflection issue). * trie: fixup cachegen overflow at request of nick * core/state: rename journal size constant
* | | core: fixed import reporterJeffrey Wilcke2016-10-111-1/+1
| | |
* | | Merge pull request #3104 from fjl/core-import-logFelix Lange2016-10-111-11/+42
|\ \ \ | | | | | | | | core: print import stats more often
| * | | core: print import stats more oftenFelix Lange2016-10-081-11/+42
| | | | | | | | | | | | | | | | | | | | | | | | If geth is busy importing 2048 heavy blocks it can take a while before it prints anything. This change ensures that a message gets printed every 8s.
* | | | core: lower transaction pool max queue limitFelix Lange2016-10-101-1/+1
|/ / /
* | | Merge pull request #3088 from bas-vk/rpc-block-outputFelix Lange2016-10-072-5/+5
|\ \ \ | |/ / |/| | core/types: renamed receiptRoot to receiptsRoot
| * | core/types: renamed receiptRoot to receiptsRootBas van Kervel2016-10-052-5/+5
| | |
* | | Merge pull request #3094 from fjl/tests-updateFelix Lange2016-10-061-2/+3
|\ \ \ | | | | | | | | tests: update test files from github.com/ethereum/tests @ 45bc1d21d3c1
| * | | tests: update test files from github.com/ethereum/tests @ 45bc1d21d3c1Felix Lange2016-10-061-2/+3
| |/ / | | | | | | | | | | | | | | | Two new tests are skipped because they're buggy. Making some newer random state tests work required implementing the 'compressed return value encoding'.
* | | core/state: optimize GetStateFelix Lange2016-10-061-5/+7
| | | | | | | | | | | | There is no need to use the reflection-based decoder to decode []byte.
* | | core/state: rename Delete/IsDeleted to Suicide/HasSuicidedFelix Lange2016-10-069-32/+35
| | | | | | | | | | | | The delete/remove naming has caused endless confusion in the past.
* | | core/state: implement reverts by journaling all changesFelix Lange2016-10-0615-161/+602
|/ / | | | | | | | | | | | | | | | | | | 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!
* | core/state: track dirty state entries for each objectPéter Szilágyi2016-10-032-18/+24
| |
* | cmd, core, internal, light, tests: avoid hashing the code in the VMPéter Szilágyi2016-10-0112-31/+47
|/
* core, eth, trie: reuse trie journals in all our codePéter Szilágyi2016-09-282-10/+48
|
* core, trie: replace state caches with trie journalFelix Lange2016-09-284-63/+69
|
* core/state: track all accounts in canon stateFelix Lange2016-09-2610-310/+392
| | | | | This change introduces a global, per-state cache that keeps account data in the canon state. Thanks to @karalabe for lots of fixes.
* core/state: short-circuit balance change if zero valueGustav Simonsson2016-09-261-0/+6
|
* core/state, light: remove unused StateObject.initCodeGustav Simonsson2016-09-192-6/+0
|
* Merge pull request #3006 from Arachnid/patchPéter Szilágyi2016-09-193-5/+8
|\ | | | | core/state: Fix memory expansion bug by not copying clean objects
| * core/state: Fix memory expansion bug by not copying clean objectsNick Johnson2016-09-193-5/+8
| |
* | core/types: add core type marshal methods tooPéter Szilágyi2016-09-084-0/+131
| |
* | core: abstract out a sorted transaction hash mapPéter Szilágyi2016-09-024-222/+229
| |
* | core: add upper bound on the queued transctionsPéter Szilágyi2016-09-023-33/+203
| |
* | core/types, miner: switch over to the grouped tx setsPéter Szilágyi2016-09-022-32/+58
| |
* | core, eth, internal, miner: optimize txpool for quick opsPéter Szilágyi2016-09-026-401/+751
| |
* | core, eth, miner: only retain 1 tx/nonce, remove bad onesPéter Szilágyi2016-09-022-164/+251
| |
* | core/types, core/vm: improve docs, add JSON marshaling methodsFelix Lange2016-08-048-99/+589
| | | | | | | | | | | | | | | | In this commit, core/types's types learn how to encode and decode themselves as JSON. The encoding is very similar to what the RPC API uses. The RPC API is missing some output fields (e.g. transaction signature values) which will be added to the API in a later commit. Some fields that the API generates are ignored by the decoder methods here.
* | core/vm, eth: Add support for javascript trace functionsNick Johnson2016-08-232-9/+6
| |
* | core/vm: Refactor tracing to make Tracer the main interfaceNick Johnson2016-08-2212-176/+136
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This CL makes several refactors: - Define a Tracer interface, implementing the `CaptureState` method - Add the VM environment as the first argument of `Tracer.CaptureState` - Rename existing functionality `StructLogger` an make it an implementation of `Tracer` - Delete `StructLogCollector` and make `StructLogger` collect the logs directly - Change all callers to use the new `StructLogger` where necessary and extract logs from that. - Deletes the apparently obsolete and likely nonfunctional 'TraceCall' from the eth API. Callers that only wish accumulated logs can use the `StructLogger` implementation straightforwardly. Callers that wish to efficiently capture VM traces and operate on them without excessive copying can now implement the `Tracer` interface to receive VM state at each step and do with it as they wish. This CL also removes the accumulation of logs from the vm.Environment; this was necessary as part of the refactor, but also simplifies it by removing a responsibility that doesn't directly belong to the Environment.
* | Merge pull request #2909 from fjl/account-manager-cleanupFelix Lange2016-08-181-16/+0
|\ \ | | | | | | all: clean up tech debt left behind by the API split
| * | core, miner: move Backend to minerFelix Lange2016-08-171-15/+0
| | | | | | | | | | | | | | | This ensures that package core doesn't depend on package accounts and resolves an age-old TODO.
| * | eth: remove dapp database remainsFelix Lange2016-08-171-1/+0
| | |
* | | rpc: refactor subscriptions and filtersBas van Kervel2016-08-171-0/+22
| | |
* | | core: ensure the canonical block is written before the canonical hash is setBas van Kervel2016-08-164-17/+63
|/ /
* | core/vm: hide ecrecover error messageFelix Lange2016-08-061-2/+2
| | | | | | | | Fixes #2825
* | cmd, core, eth, miner, params, tests: finalize the DAO forkPéter Szilágyi2016-07-153-45/+75
| |
* | accounts, core, eth: pass chain config for chain maker to test DAOPéter Szilágyi2016-07-159-123/+172
| |
* | core, params, tests: add DAO hard-fork balance movesPéter Szilágyi2016-07-151-1/+22
| |
* | core, eth: enforce network split post DAO hard-forkPéter Szilágyi2016-07-151-0/+7
| |
* | cmd, core, miner: add extradata validation to consensus rulesPéter Szilágyi2016-07-153-2/+129
| |
* | core: gracefully handle missing homestead block configPéter Szilágyi2016-07-151-1/+1
| |
* | cmd, core, eth, params: implement flags to control dao fork blocksPéter Szilágyi2016-07-151-2/+2
| |
* | Merge pull request #2724 from pirapira/fix_reset_feesPéter Szilágyi2016-07-152-2/+2
|\ \ | |/ |/| vm: Replace some SstoreClearGas with SstoreResetGas
| * vm: Replace some SstoreClearGas with SstoreResetGasYoichi Hirai2016-06-222-2/+2
| |
* | Merge pull request #2799 from zsfelfoldi/api-nonce-fix2Péter Szilágyi2016-07-122-2/+6
|\ \ | | | | | | core: added CheckNonce() to Message interface
| * | core: added CheckNonce() to Message interfacezsfelfoldi2016-07-112-2/+6
| | |
* | | core: solve a remote-import/local-mine data racePéter Szilágyi2016-07-081-4/+3
|/ /
* | Merge pull request #2159 from zsfelfoldi/light-backendPéter Szilágyi2016-06-301-0/+2
|\ \ | | | | | | eth: separate common and full node-specific API and backend service
| * | eth: separate common and full node-specific API and backend servicezsfelfoldi2016-06-161-0/+2
| | |
* | | Revert "test, cmd/evm, core, core/vm: illegal code hash implementation"Péter Szilágyi2016-06-298-77/+29
| | | | | | | | | | | | This reverts commit 7a5b571c671e70e0e4807cf971c15e2d1e09d33d.
* | | Revert "core: add voting and result tracking for the dao soft-fork"Péter Szilágyi2016-06-294-429/+13
| | | | | | | | | | | | This reverts commit c4de28938ff8c688c4444c8b3e8e28a52cbc62ff.
* | | Revert "core: update DAO soft-fork number, clean up the code"Péter Szilágyi2016-06-297-40/+51
| | | | | | | | | | | | This reverts commit ba784bdf36f2daf7827ec1ec864f3393ba8d86a0.
* | | Revert "core: update the DAO soft fork proposal to the final block"Péter Szilágyi2016-06-291-1/+1
| | | | | | | | | | | | This reverts commit 1e3a7d4fab36df9382d023519ef10e3c34bafa3b.
* | | core: update the DAO soft fork proposal to the final blockPéter Szilágyi2016-06-241-1/+1
| | |
* | | core: update DAO soft-fork number, clean up the codePéter Szilágyi2016-06-237-51/+40
| | |
* | | core: add voting and result tracking for the dao soft-forkPéter Szilágyi2016-06-234-13/+429
| | |
* | | test, cmd/evm, core, core/vm: illegal code hash implementationJeffrey Wilcke2016-06-228-29/+77
| | | | | | | | | | | | | | | | | | | | | | | | This implements a generic approach to enabling soft forks by allowing anyone to put in hashes of contracts that should not be interacted from. This will help "The DAO" in their endevour to stop any whithdrawals from any DAO contract by convincing the mining community to accept their code hash.
* | | README, core, rpc: fix various typosFabio Berger2016-06-221-3/+3
| |/ |/|
* | Merge pull request #2686 from obscuren/issue-2542Péter Szilágyi2016-06-141-0/+21
|\ \ | |/ |/| core/state, eth: Updated suicides objects when tracing transactions
| * core/state, eth: Updated suicides objects when tracing transactionsJeffrey Wilcke2016-06-131-0/+21
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Consensus rules dictate that objects can only be removed during the finalisation of the transaction (i.e. after all calls have finished). Thus calling a suicided contract twice from the same transaction: A->B(S)->ret(A)->B(S) results in 2 suicides. Calling the suicided object twice from two transactions: A->B(S), A->B, results in only one suicide and a call to an empty object. Our current debug tracing functionality replays all transaction that were executed prior to the targetted transaction in order to provide the user with an accurate trace. As a side effect to calling StateDB.IntermediateRoot it also deletes any suicides objects. Our tracing code never calls this function because it isn't interested in the intermediate root. Becasue of this it caused a bug in the tracing code where transactions that were send to priviously deleted objects resulted in two suicides rather than one suicide and a call to an empty object. Fixes #2542
* | core: improved chainDb using sequential keyszsfelfoldi2016-06-079-210/+320
| |
* | core: chain read/write speed benchmarkszsfelfoldi2016-06-061-0/+119
|/