aboutsummaryrefslogtreecommitdiffstats
path: root/internal
Commit message (Collapse)AuthorAgeFilesLines
* cmd/geth, core: add support for recording SHA3 preimages (#3543)Nick Johnson2017-01-171-0/+6
|
* internal: update web3.js to 0.18.1, embed deps with go-bindata (#3545)Péter Szilágyi2017-01-136-327/+774
|
* internal/ethapi: fix duration parameter of personal_unlockAccount (#3542)Felix Lange2017-01-111-5/+8
|
* all: fix spelling errorsPéter Szilágyi2017-01-072-14/+14
|
* Merge pull request #3518 from fjl/ethclient-dependency-cleanupPéter Szilágyi2017-01-061-1/+1
|\ | | | | core/types: dependency cleanup
| * core/vm: move Log to core/typesFelix Lange2017-01-061-1/+1
| | | | | | | | | | | | | | | | 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.
* | accounts, internal, mobile: polish accounts API, extend Android testsPéter Szilágyi2017-01-051-6/+5
|/
* core/vm: improved EVM run loop & instruction calling (#3378)Jeffrey Wilcke2017-01-053-5/+5
| | | | | | | | | | | | | | | 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-051-8/+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.
* internal/ethapi: fix hex handling for eth_call input and eth_sendRawTransactionFelix Lange2016-12-201-4/+4
|
* rpc: remove HexNumber, replace all uses with hexutil typesFelix Lange2016-12-201-301/+159
| | | | | This change couldn't be automated because HexNumber was used for numbers of all sizes.
* rpc: remove HexBytes, replace all uses with hexutil.BytesFelix Lange2016-12-201-9/+9
|
* internal/jsre: fix built-in inspect functionFelix Lange2016-12-202-4/+4
| | | | | inspect was broken by ffaf58f0a98 (May 2016!). Looks like nobody uses this function.
* internal/ethapi: fix hex handling for eth_sign, personal_{sign,recover}Felix Lange2016-12-161-29/+14
|
* core: bugfix state change race condition in txpool (#3412)bas-vk2016-12-112-5/+13
| | | | | | | | 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-063-63/+10
| | | | | | | | 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.
* cmd/bzzd: swarm daemon fixes (#3359)Viktor Trón2016-11-281-14/+2
| | | | | | | | | | | | * cmd/bzzd: add missing p2p/discovery flags * cmd/bzzd: fix two bugs crashing bzzd if bootnodes flag given * cmd/bzzd: make no swap default, renamed flag bzznoswap->bzzswap * internal/web3ext: correct methods for bzz IPC module * cmd/bzzd: ethapi param not mandatory. Warning if no blockchain * cmd/bzzd: correct default IPC modules in help string * cmd/utils: fix help description for networkId - add Ropsten * cmd/bzz, swarm/api, swarm/network: add swarm networkId flag * cmd/bzzd: change nosync flag to sync and BootTFlag
* internal/build: use 'git tag --points-at' to get the current tagFelix Lange2016-11-281-1/+6
| | | | This should restore support for building with git 1.x.
* cmd/utils, internal/web3ext: removed httpGetJeffrey Wilcke2016-11-251-5/+0
|
* internal/web3ext: remove registrar-related extensionsFelix Lange2016-11-251-30/+0
| | | | (cherry picked from commit d54ad55c6079ae6eab93d7f34ce5c4ec829f8e5b)
* internal/build: add support for git tag in local EnvironmentFelix Lange2016-11-232-3/+9
| | | | | | I didn't add this initially because the command I tried was too slow. The 'git for-each-ref ...' invocation takes 40ms on my machine. That ought to be acceptable.
* .travis, build: Build step to push .aar to Maven CentralPéter Szilágyi2016-11-141-1/+1
|
* core/types: turn off nonce checking for Call messagesZsolt Felfoldi2016-11-141-1/+1
|
* core/types, params: EIP#155Jeffrey Wilcke2016-11-132-34/+56
|
* core, core/state, trie: EIP158, reprice & skip empty account writeJeffrey Wilcke2016-11-131-6/+3
| | | | | | | | | | | | | | | 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-095-3/+5
|
* les: light client protocol and APIZsolt Felfoldi2016-11-092-8/+9
|
* build: fix remote path for archive uploads (#3243)Felix Lange2016-11-091-0/+6
| | | | archiveUpload did not handle absolute paths correctly. Fix it by using the basename and ensure that uploads can be tested using -n.
* build: NSIS based Windows installer (#3240)Péter Szilágyi2016-11-091-0/+23
| | | | This commit adds support for creating Windows installers to ci.go
* internal/build: call correct signer methodPéter Szilágyi2016-11-081-1/+1
|
* build, internal/build: misc improvements (#3229)Felix Lange2016-11-031-10/+18
| | | | | | | | | | | | | * travis.yml: don't create darwin/386 builds * build: remove godep remains * internal/build: improve archives - enable compression for zip files - don't write half-complete archives * build: add -unstable to archive names
* travis, build: implement uploading archives to azurePéter Szilágyi2016-11-032-0/+116
|
* internal/debug, internal/ethapi, rpc, swarm/storage: Ran "go fmt"Kenji Siu2016-11-012-23/+23
|
* Merge pull request #3064 from pirapira/limit_struct_logsJeffrey Wilcke2016-10-311-1/+2
|\ | | | | core/vm: add limit option to LogConfig
| * vm, ethapi: add `limit` option to traceTransactionYoichi Hirai2016-09-301-1/+2
| | | | | | | | | | | | | | | | | | | | | | | | 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`.
* | internal/ethapi: add personal_sign and fix eth_sign to hash message (#2940)bas-vk2016-10-292-8/+84
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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.
* | Godeps, vendor: convert dependency management to trash (#3198)Péter Szilágyi2016-10-291-5/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This commit converts the dependency management from Godeps to the vendor folder, also switching the tool from godep to trash. Since the upstream tool lacks a few features proposed via a few PRs, until those PRs are merged in (if), use github.com/karalabe/trash. You can update dependencies via trash --update. All dependencies have been updated to their latest version. Parts of the build system are reworked to drop old notions of Godeps and invocation of the go vet command so that it doesn't run against the vendor folder, as that will just blow up during vetting. The conversion drops OpenCL (and hence GPU mining support) from ethash and our codebase. The short reasoning is that there's noone to maintain and having opencl libs in our deps messes up builds as go install ./... tries to build them, failing with unsatisfied link errors for the C OpenCL deps. golang.org/x/net/context is not vendored in. We expect it to be fetched by the user (i.e. using go get). To keep ci.go builds reproducible the package is "vendored" in build/_vendor.
* | internal/ethapi: add debug.chaindbCompactFelix Lange2016-10-202-0/+23
| |
* | Merge pull request #3100 from kobigurk/developFelix Lange2016-10-172-1/+55
|\ \ | | | | | | internal/ethapi, internal/web3ext: adds raw tx retrieval methods
| * | internal/ethapi, internal/web3ext: adds raw tx retrieval methodsKobi Gurkan2016-10-102-1/+55
| | |
* | | Merge pull request #3111 from obscuren/gas-price-forkPéter Szilágyi2016-10-151-1/+3
|\ \ \ | | | | | | | | core, core/vm: added gas price variance table (EIP #150)
| * | | core, core/vm: added gas price variance tableJeffrey Wilcke2016-10-151-1/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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.
* | | | metrics, internal/debug: Add --pprofaddr flag, expose metrics via gexpNick Johnson2016-10-141-2/+7
| |/ / |/| |
* | | Merge pull request #3088 from bas-vk/rpc-block-outputFelix Lange2016-10-071-1/+1
|\ \ \ | |/ / |/| | core/types: renamed receiptRoot to receiptsRoot
| * | core/types: renamed receiptRoot to receiptsRootBas van Kervel2016-10-051-1/+1
| | |
* | | Merge pull request #3092 from fjl/state-journalJeffrey Wilcke2016-10-061-8/+8
|\ \ \ | | | | | | | | core/state: implement reverts by journaling all changes
| * | | core/state: implement reverts by journaling all changesFelix Lange2016-10-061-8/+8
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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!
* | | | internal/ethapi: bugfix gas price and limit swapped in eth_resendBas van Kervel2016-10-051-4/+3
| |/ / |/| |
* | | internal/build: fix git tag env variable for AppVeyorFelix Lange2016-10-031-1/+1
|/ /
* | internal/build: use less edgy command to get the branch nameFelix Lange2016-10-031-1/+3
| |
* | Merge pull request #3066 from fjl/build-envPéter Szilágyi2016-10-022-8/+120
|\ \ | | | | | | build: improve debian packaging
| * | build: improve debian packagingFelix Lange2016-10-022-8/+120
| |/ | | | | | | | | | | | | | | | | | | This commit tweaks the debian packaging tool: * All build environment metadata can now be overriden on the command line. This allows testing the CI build behaviour locally. * -unstable packages now actually contain the binaries (oops) * packages use Go 1.7 to build * archiving is skipped for PR builds
* / cmd, core, internal, light, tests: avoid hashing the code in the VMPéter Szilágyi2016-10-011-1/+1
|/
* core, eth, trie: reuse trie journals in all our codePéter Szilágyi2016-09-281-0/+2
|
* core/state: track all accounts in canon stateFelix Lange2016-09-261-2/+2
| | | | | This change introduces a global, per-state cache that keeps account data in the canon state. Thanks to @karalabe for lots of fixes.
* ethereum, ethclient: add SyncProgress API endpointPéter Szilágyi2016-09-061-7/+7
|
* core, eth, internal, miner: optimize txpool for quick opsPéter Szilágyi2016-09-021-1/+1
|
* core, eth, miner: only retain 1 tx/nonce, remove bad onesPéter Szilágyi2016-09-022-37/+25
|
* swarm: plan bee for content storage and distribution on web3ΞTHΞЯSPHΞЯΞ2016-08-311-9/+151
| | | | | | | | | | | | | | | | | | | | | | | This change imports the Swarm protocol codebase. Compared to the 'swarm' branch, a few mostly cosmetic changes had to be made: * The various redundant log message prefixes are gone. * All files now have LGPLv3 license headers. * Minor code changes were needed to please go vet and make the tests pass on Windows. * Further changes were required to adapt to the go-ethereum develop branch and its new Go APIs. Some code has not (yet) been brought over: * swarm/cmd/bzzhash: will reappear as cmd/bzzhash later * swarm/cmd/bzzup.sh: will be reimplemented in cmd/bzzup * swarm/cmd/makegenesis: will reappear somehow * swarm/examples/album: will move to a separate repository * swarm/examples/filemanager: ditto * swarm/examples/files: will not be merged * swarm/test/*: will not be merged * swarm/services/swear: will reappear as contracts/swear when needed
* common,internal: typo/misspelling fixes (#2953)gregg dourgarian2016-08-271-5/+5
|
* internal/ethapi: add missing output fieldsFelix Lange2016-08-041-24/+33
| | | | | | | | - returned headers didn't include mixHash - returned transactions didn't include signature fields - empty transaction input was returned as "", but should be "0x" - returned receipts didn't include the bloom filter - "root" in receipts was missing 0x prefix
* internal/ethapi: Fix bug in opCodeWrapper usageNick Johnson2016-08-242-6/+23
|
* internal/ethapi: Improve tracer error reporting and serializationNick Johnson2016-08-242-11/+26
|
* core/vm, eth: Add support for javascript trace functionsNick Johnson2016-08-233-1/+488
|
* core/vm: Refactor tracing to make Tracer the main interfaceNick Johnson2016-08-221-54/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | 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-183-73/+90
|\ | | | | all: clean up tech debt left behind by the API split
| * common/compiler: simplify solc wrapperFelix Lange2016-08-173-73/+90
| | | | | | | | | | | | | | | | | | | | | | | | | | Support for legacy version 0.9.x is gone. The compiler version is no longer cached. Compilation results (and the version) are read directly from stdout using the --combined-json flag. As a workaround for ethereum/solidity#651, source code is written to a temporary file before compilation. Integration of solc in package ethapi and cmd/abigen is now much simpler because the compiler wrapper is no longer passed around as a pointer. Fixes #2806, accidentally
* | rpc: refactor subscriptions and filtersBas van Kervel2016-08-171-122/+4
|/
* Merge pull request #2740 from Firescar96/removepeerFelix Lange2016-07-291-0/+5
|\ | | | | node, p2p, internal: Add ability to remove peers via admin interface
| * node, p2p, internal: Add ability to remove peers via admin interfaceFirescar962016-07-151-0/+5
| |
* | rpc: add new client, use it everywhereFelix Lange2016-07-231-1/+1
| | | | | | | | | | | | The new client implementation supports concurrent requests, subscriptions and replaces the various ad hoc RPC clients throughout go-ethereum.
* | eth/api: rename signAndSendTransaction to sendTransactionBas van Kervel2016-07-222-4/+10
| |
* | core: added CheckNonce() to Message interfacezsfelfoldi2016-07-111-2/+2
| |
* | Merge pull request #2159 from zsfelfoldi/light-backendPéter Szilágyi2016-06-302-0/+1661
|\ \ | |/ |/| eth: separate common and full node-specific API and backend service
| * eth: separate common and full node-specific API and backend servicezsfelfoldi2016-06-162-0/+1661
| |
* | web3ext: Remove old natspec Admin_JS stubsJustin Clark-Casey2016-06-241-15/+0
| | | | | | | | This stops them from showing up on the javascript console.
* | build: add ci.go, use it everywhereFelix Lange2016-06-222-0/+299
|/ | | | | | The new build script, ci.go, replaces some of the older shell scripts. ci.go can compile go-ethereum, run the tests, create release archives and debian source packages.
* cmd/geth: codegansta/cli package renamed to urfave/cliBas van Kervel2016-06-091-1/+1
|
* internal/jsre: ensure Stop can be called more than onceFelix Lange2016-06-031-7/+9
| | | | This makes "geth js file.js" terminate again.
* console, internal/jsre: colorize JavaScript exceptions tooPéter Szilágyi2016-05-302-2/+20
|
* cmd, console: split off the console into a reusable packagePéter Szilágyi2016-05-307-0/+16874
|
* eth: add new RPC method (personal.) SignAndSendTransactionBas van Kervel2016-05-201-0/+6
|
* cmd/geth, internal/web3ext, rpc: surface rpc module, fix shh, fix minerPéter Szilágyi2016-05-111-116/+131
|
* internal/debug: also rename debug_startTrace to debug_startGoTraceFelix Lange2016-05-065-14/+14
| | | | This was missing from the previous change.
* internal/debug: rename debug_trace to debug_goTraceFelix Lange2016-05-062-4/+4
| | | | Reduces confusion with EVM execution tracing methods.
* eth: add personal_importRawKey for runtime private key importAles Katona2016-04-281-6/+21
|
* rpc: move web3.js extensions to internal/web3extFelix Lange2016-04-151-0/+463
|
* internal/debug: add memStats and gcStats to APIFelix Lange2016-04-131-0/+15
|
* cmd/utils, internal/debug: show all stacks for 10x Ctrl-C induced panicFelix Lange2016-03-122-0/+51
| | | | | Go 1.6 only prints stacks for the current goroutine by default, but for this panic we want to see all of them.
* internal/debug: don't disable heap profile collection by defaultFelix Lange2016-03-121-0/+1
| | | | | Setting runtime.MemProfileRate to 0 through the flag default value makes it impossible to get an 'in-use' profile.
* internal/debug: APIs for profiling and tracingFelix Lange2016-01-284-0/+404
The debug package provides an RPC wrapper for glog settings and the debugging facilities of the Go runtime. They can be triggered through both command line flags and the IPC listener.