aboutsummaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* cmd/geth: fix the keystore path in the accounts help textPéter Szilágyi2016-06-081-1/+1
|
* Merge pull request #2671 from karalabe/randomize-console-testsPéter Szilágyi2016-06-081-4/+12
|\ | | | | cmd/geth: truly randomize console test RPC endpoints
| * cmd/geth: truly randomize console test RPC endpointsPéter Szilágyi2016-06-081-4/+12
| |
* | Merge pull request #2669 from karalabe/fix-windows-console-colorPéter Szilágyi2016-06-081-1/+2
|\ \ | |/ |/| console: fix windows console colors
| * console: fix windows color transformation issuePéter Szilágyi2016-06-081-1/+2
|/
* Merge pull request #2649 from karalabe/omit-startup-tx-processingPéter Szilágyi2016-06-063-4/+13
|\ | | | | eth: don't accept transactions until we sync up with the network
| * eth: don't accept transactions until we sync up with the networkPéter Szilágyi2016-06-063-4/+13
|/
* Merge pull request #2630 from karalabe/adaptive-qos-tuningPéter Szilágyi2016-06-063-48/+235
|\ | | | | eth/downloader: adaptive quality of service tuning
| * eth/downloader: adaptive quality of service tuningPéter Szilágyi2016-06-063-48/+235
|/
* Merge pull request #2647 from karalabe/fastsync-critical-resiliencePéter Szilágyi2016-06-062-26/+109
|\ | | | | eth/downloader: make fast sync resilient to critical section fails
| * eth/downloader: make fast sync resilient to critical section failsPéter Szilágyi2016-06-022-26/+109
| |
* | Merge pull request #2655 from fjl/txpool-lockPéter Szilágyi2016-06-031-1/+10
|\ \ | | | | | | core: add missing lock in TxPool.GetTransaction
| * | core: add missing lock in TxPool.{GetTransaction,RemoveTx}Felix Lange2016-06-031-1/+10
|/ / | | | | | | Fixes #2650
* | Merge pull request #2656 from fjl/console-testFelix Lange2016-06-033-35/+45
|\ \ | |/ |/| cmd/geth: make console tests more robust
| * cmd/geth: make console tests more robustFelix Lange2016-06-031-18/+28
| | | | | | | | | | | | * use --port 0 to avoid p2p port conflicts * use --maxpeers 0 so it doesn't connect to bootstrap nodes * use geth.expectExit() to wait for termination
| * console: remove unnecessary JS evaluation in WelcomeFelix Lange2016-06-031-10/+8
| |
| * internal/jsre: ensure Stop can be called more than onceFelix Lange2016-06-031-7/+9
|/ | | | This makes "geth js file.js" terminate again.
* Merge pull request #2637 from karalabe/downloader-always-cancelPéter Szilágyi2016-05-312-1/+13
|\ | | | | eth/downloader: ensure cancel channel is closed post sync
| * eth/downloader: ensure cancel channel is closed post syncPéter Szilágyi2016-05-302-1/+13
| |
* | Merge pull request #2627 from karalabe/concurrent-head-syncPéter Szilágyi2016-05-313-30/+41
|\ \ | | | | | | eth/downloader, trie: pull head state concurrently with chain
| * | eth/downloader, trie: pull head state concurrently with chainPéter Szilágyi2016-05-273-30/+41
| | |
* | | Merge pull request #2535 from karalabe/modularize-consolePéter Szilágyi2016-05-3126-1519/+1592
|\ \ \ | | | | | | | | cmd, console: split off the console into a reusable package
| * | | cmd/geth, console: fix reviewer issuesPéter Szilágyi2016-05-316-49/+68
| | | |
| * | | console, internal/jsre: colorize JavaScript exceptions tooPéter Szilágyi2016-05-304-12/+37
| | | |
| * | | cmd, console: split off the console into a reusable packagePéter Szilágyi2016-05-3026-1519/+1548
| | |/ | |/|
* | | Merge pull request #2585 from karalabe/trie-dirty-trackingJeffrey Wilcke2016-05-319-133/+244
|\ \ \ | |/ / |/| | core, core/state, trie: enterprise hand-tuned multi-level caching
| * | core, core/state, trie: enterprise hand-tuned multi-level cachingPéter Szilágyi2016-05-269-133/+244
| |/
* | Merge pull request #2626 from karalabe/fix-testnet-zero-noncePéter Szilágyi2016-05-271-1/+1
|\ \ | |/ |/| core/state: return the starting nonce for non-existent accs (testnet)
| * core/state: return the starting nonce for non-existent accs (testnet)Péter Szilágyi2016-05-271-1/+1
|/
* Merge pull request #2614 from fjl/bad-block-reportJeffrey Wilcke2016-05-267-87/+104
|\ | | | | eth: enable bad block reports
| * eth: enable bad block reportsFelix Lange2016-05-257-87/+104
| | | | | | | | | | | | | | | | | | | | | | | | We used to have reporting of bad blocks, but it was disabled before the Frontier release. We need it back because users are usually unable to provide the full RLP data of a bad block when it occurs. A shortcoming of this particular implementation is that the origin peer is not tracked for blocks received during eth/63 sync. No origin peer info is still better than no report at all though.
* | Merge pull request #2617 from obulpathi/developJeffrey Wilcke2016-05-251-1/+1
|\ \ | | | | | | misc: fix spelling mistake
| * | misc: fix spelling mistakeObulapathi N Challa2016-05-251-1/+1
| |/
* | Merge pull request #2612 from remyroy/fix-eth-getCompilersJeffrey Wilcke2016-05-251-1/+1
|\ \ | | | | | | eth/api: fixed GetCompilers when there is no error creating Solc
| * | eth/api: fixed GetCompilers when there is no error creating SolcRémy Roy2016-05-251-1/+1
| |/
* | Merge pull request #2613 from remyroy/rel-path-solcJeffrey Wilcke2016-05-251-1/+0
|\ \ | |/ |/| common/compiler: support relative path to solc
| * common/compiler: support relative path to solcRémy Roy2016-05-251-1/+0
|/
* Merge pull request #2603 from Digital-Contraptions-Imaginarium/developFelix Lange2016-05-231-0/+4
|\ | | | | README: make it clear how to build all executables
| * Just to make it clear how to build all executablesGianfranco Cecconi2016-05-231-0/+4
| |
* | Merge pull request #2564 from bas-vk/submit-txJeffrey Wilcke2016-05-236-71/+165
|\ \ | |/ |/| eth: add new RPC method (personal.) SignAndSendTransaction
| * eth: add new RPC method (personal.) SignAndSendTransactionBas van Kervel2016-05-206-71/+165
| |
* | Merge pull request #2597 from fabioberger/developJeffrey Wilcke2016-05-231-2/+2
|\ \ | | | | | | core: Simplify bloom9 tests
| * | core: Simplify bloom9 tests with available convenience method `TestBytes`Fabio Berger2016-05-231-2/+2
| | |
* | | Merge pull request #2575 from bas-vk/filterJeffrey Wilcke2016-05-232-38/+234
|\ \ \ | |/ / |/| | eth/filter: bugfix which can cause a nil pointer crash when parsing f…
| * | eth/filter: bugfix which can cause a nil pointer crash when parsing filter ↵Bas van Kervel2016-05-172-38/+234
| | | | | | | | | | | | arguments
* | | Merge pull request #2589 from karalabe/estimate-remove-codecheckJeffrey Wilcke2016-05-207-28/+112
|\ \ \ | | | | | | | | accounts/abi/bind, eth: rely on getCode for sanity checks, not estimate and call
| * | | accounts/abi/bind, eth: rely on getCode for sanity checks, not estimate and callPéter Szilágyi2016-05-207-28/+112
| | |/ | |/|
* | | Merge pull request #2315 from karalabe/concurrent-headers-2Jeffrey Wilcke2016-05-204-211/+643
|\ \ \ | |/ / |/| | eth/downloader: concurrent header downloads
| * | eth/downloader: fix reviewer commentsPéter Szilágyi2016-05-202-9/+32
| | |
| * | eth/downloader: stream partial skeleton filling to processorPéter Szilágyi2016-05-173-19/+55
| | |
| * | eth/downloader: implement concurrent header downloadsPéter Szilágyi2016-05-174-211/+584
| | |
* | | Merge pull request #2582 from obscuren/fix-sign-txJeffrey Wilcke2016-05-191-1/+1
|\ \ \ | | | | | | | | eth: fixed regression in eth_signTransaction fixes #2578
| * | | eth: fixed regression in eth_signTransaction fixes #2578Jeffrey Wilcke2016-05-181-1/+1
| | |/ | |/| | | | | | | | | | Sign transaction returned the unsigned transaction rather than the signed one.
* | | Merge pull request #2580 from fjl/p2p-configFelix Lange2016-05-184-28/+36
|\ \ \ | |/ / |/| | node, p2p: move network config out of Server
| * | node, p2p: move network config out of ServerFelix Lange2016-05-184-28/+36
|/ / | | | | | | This silences a go vet message about copying p2p.Server in package node.
* | Merge pull request #2574 from karalabe/notx-during-fastsyncJeffrey Wilcke2016-05-173-14/+23
|\ \ | | | | | | eth: skip transaction handling during fast sync
| * | eth: skip transaction handling during fast syncPéter Szilágyi2016-05-173-14/+23
|/ /
* | Merge pull request #2567 from fjl/console-history-excludeJeffrey Wilcke2016-05-171-6/+3
|\ \ | |/ |/| cmd/geth: fix console history exclusion
| * cmd/geth: fix console history exclusionFelix Lange2016-05-141-6/+3
|/ | | | | | Calls to 'personal' API should be excluded from console history because they can be called with an account passphrase as argument. The check for such calls was inverted and didn't work.
* core: fixed pointer assignmentJeffrey Wilcke2016-05-131-2/+2
| | | | | | This fixes an issue where it's theoretical possible to cause a consensus failure when hitting the lower end of the difficulty, though pratically impossible it's worth a fix.
* eth/downloader: bound fork ancestry and allow heavy short forksPéter Szilágyi2016-05-132-43/+201
|
* Merge pull request #2563 from obscuren/rpcaddr-fixJeffrey Wilcke2016-05-132-0/+11
|\ | | | | eth: fixed double close of channel. Fixes #2555
| * event: fixed subscribtions to stopped event muxJeffrey Wilcke2016-05-132-0/+11
|/ | | | | | | | | | | | | This fixes an issue where the following would lead to a panic due to a channel being closed twice: * Start mux * Stop mux * Sub to mux * Unsub This is fixed by setting the subscriptions status to closed resulting in the Unsubscribe to ignore the request when called.
* Merge pull request #2559 from karalabe/abigen-unmarshalPéter Szilágyi2016-05-123-5/+39
|\ | | | | accounts/abi/bind: fix multi-value anonymous unmarshalling
| * accounts/abi: fix abi test for go vet...Péter Szilágyi2016-05-121-2/+2
| |
| * accounts/abi/bind: fix multi-value anonymous unmarshallingPéter Szilágyi2016-05-122-3/+37
| |
* | Merge pull request #2560 from 6londe/patch-3Péter Szilágyi2016-05-121-3/+3
|\ \ | |/ |/| README: fix typos
| * README: fix typosChanghoon Lee2016-05-121-3/+3
|/ | | README: fix typos
* Merge pull request #2551 from obscuren/abi-interface-slice-fixPéter Szilágyi2016-05-123-31/+94
|\ | | | | accounts/abi: fixed unpacking in to already sliced interfaces
| * accounts/abi: fixed unpacking in to already slice interfacesJeffrey Wilcke2016-05-113-31/+94
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Previously it was assumed that wheneven type `[]interface{}` was given that the interface was empty. The abigen rightfully assumed that interface slices which already have pre-allocated variable sets to be assigned. This PR fixes that by checking that the given `[]interface{}` is larger than zero and assigns each value using the generic `set` function (this function has also been moved to abi/reflect.go) and checks whether the assignment was possible. The generic assignment function `set` now also deals with pointers (useful for interface slice mentioned above) by dereferencing the pointer until it finds a setable type.
* | Merge pull request #2549 from karalabe/geth-tester-text-templatesPéter Szilágyi2016-05-111-1/+1
|\ \ | | | | | | cmd/geth: use text/templates in the tester, not html
| * | cmd/geth: use text/templates in the tester, not htmlPéter Szilágyi2016-05-111-1/+1
| | |
* | | Merge pull request #2548 from karalabe/surface-rpc-endpointPéter Szilágyi2016-05-114-120/+136
|\ \ \ | |/ / |/| | cmd/geth, internal/web3ext, rpc: surface rpc module, fix shh, fix miner
| * | cmd/geth, internal/web3ext, rpc: surface rpc module, fix shh, fix minerPéter Szilágyi2016-05-114-120/+136
|/ /
* | Merge pull request #2515 from karalabe/multigo-travisJeffrey Wilcke2016-05-111-3/+5
|\ \ | | | | | | travis: run CI builds against multiple Go versions
| * | travis: run CI builds against multiple Go versionsPéter Szilágyi2016-05-051-3/+5
| | |
* | | Merge pull request #2539 from bas-vk/origin-caseJeffrey Wilcke2016-05-111-4/+4
|\ \ \ | | | | | | | | rpc: HTTP origin case insensitive
| * | | rpc: HTTP origin case insensitiveBas van Kervel2016-05-111-4/+4
| | | |
* | | | Merge pull request #2537 from obscuren/hotfix-pending-statuJeffrey Wilcke2016-05-101-4/+0
|\ \ \ \ | |_|_|/ |/| | | miner: fixed pending state by not shutting down update loop
| * | | miner: fixed pending state by not shutting down update loopJeffrey Wilcke2016-05-101-4/+0
|/ / /
* | | Merge pull request #2529 from fjl/fdlimit-bsdPéter Szilágyi2016-05-092-1/+55
|\ \ \ | | | | | | | | cmd/utils: fix build on *BSD
| * | | cmd/utils: fix build on *BSDFelix Lange2016-05-092-1/+55
| | | |
* | | | Merge pull request #2524 from fjl/windows-ci-scriptsPéter Szilágyi2016-05-092-0/+41
|\ \ \ \ | | | | | | | | | | build: add CI scripts for windows
| * | | | build: add CI scripts for windowsFelix Lange2016-05-082-0/+41
| |/ / /
* | | | Merge pull request #2523 from fjl/shutdownPéter Szilágyi2016-05-097-70/+101
|\ \ \ \ | | | | | | | | | | core, eth, miner: improve shutdown synchronisation
| * | | | core, eth, miner: improve shutdown synchronisationFelix Lange2016-05-097-70/+101
| |/ / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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.
* | | | Merge pull request #2528 from karalabe/fix-web3-eth_syncingPéter Szilágyi2016-05-091-1/+6
|\ \ \ \ | | | | | | | | | | jsre: hotfix web3 for the console eth.syncing formatting
| * | | | jsre: hotfix web3 for the console eth.syncing formattingPéter Szilágyi2016-05-091-1/+6
|/ / / /
* | | | Merge pull request #2527 from obscuren/trace-transaction-fixJeffrey Wilcke2016-05-091-2/+2
|\ \ \ \ | | | | | | | | | | eth: fixed tracing functions using the current header instead of parent
| * | | | eth: fixed tracing functions using the current header instead of parentJeffrey Wilcke2016-05-091-2/+2
|/ / / / | | | | | | | | | | | | Fixes #2525
* | | | Merge pull request #2520 from karalabe/makefile-cross-updatePéter Szilágyi2016-05-091-2/+4
|\ \ \ \ | |_|/ / |/| | | Makefile: go build instead of install (solves cross compile issues)
| * | | Makefile: go build instead of install (solves cross compile issues)Péter Szilágyi2016-05-061-2/+4
| | | |
* | | | Merge pull request #2514 from bas-vk/startRPC_WSPéter Szilágyi2016-05-081-2/+10
|\ \ \ \ | |_|/ / |/| | | node: start RPC/WS interface on localhost by default
| * | | node: start RPC/WS interface on localhost by defaultBas van Kervel2016-05-061-2/+10
| | |/ | |/|
* | | Merge pull request #2518 from fjl/debug-go-tracePéter Szilágyi2016-05-066-18/+16
|\ \ \ | |_|/ |/| | internal/debug: also rename debug_startTrace to debug_startGoTrace
| * | cmd/utils: flush trace and CPU profile data when force-quttingFelix Lange2016-05-061-4/+2
| | | | | | | | | | | | Also reduce log messages a little bit.
| * | internal/debug: also rename debug_startTrace to debug_startGoTraceFelix Lange2016-05-065-14/+14
|/ / | | | | | | This was missing from the previous change.
* | Merge pull request #2517 from fjl/debug-go-traceJeffrey Wilcke2016-05-062-4/+4
|\ \ | |/ |/| internal/debug: rename debug_trace to debug_goTrace
| * internal/debug: rename debug_trace to debug_goTraceFelix Lange2016-05-062-4/+4
|/ | | | Reduces confusion with EVM execution tracing methods.
* Merge pull request #2511 from obscuren/ver-fixJeffrey Wilcke2016-05-031-1/+1
|\ | | | | cmd/geth: fixed to use proper version string for output
| * cmd/geth: fixed to use proper version string for outputJeffrey Wilcke2016-05-031-1/+1
|/
* Merge pull request #2510 from fjl/p2p-fixupsJeffrey Wilcke2016-05-033-29/+82
|\ | | | | p2p/discover: prevent bonding self
| * p2p/discover: prevent bonding selfFelix Lange2016-05-031-0/+4
| |
| * p2p: improve readability of dial task scheduling codeFelix Lange2016-05-032-29/+78
| |
* | Merge pull request #2505 from karalabe/make-readme-suck-lessJeffrey Wilcke2016-05-031-25/+36
|\ \ | | | | | | Make the README suck less :P
| * | README: Polish up exec section, rewrite contrib and add license.Péter Szilágyi2016-05-031-25/+36
|/ /
* | Merge pull request #2497 from karalabe/version-contract-3Jeffrey Wilcke2016-05-0313-53/+1407
|\ \ | |/ |/| Geth release oracle
| * cmd/geth, release: polish and deploy live release contractPéter Szilágyi2016-05-022-2/+2
| |
| * release, all: integrate the release service into gethPéter Szilágyi2016-05-0214-583/+822
| |
| * common/releases: rewrite release version contract + use native dappsPéter Szilágyi2016-05-026-367/+1107
| |
| * common/versions, cmd/utils: add geth version contractGustav Simonsson2016-05-024-0/+375
|/
* Merge pull request #2493 from almindor/developFelix Lange2016-04-303-7/+38
|\ | | | | eth: add personal_importRawKey
| * eth: add personal_importRawKey for runtime private key importAles Katona2016-04-283-7/+38
| |
* | Merge pull request #2504 from Arachnid/public-vmconfigPéter Szilágyi2016-04-291-0/+3
|\ \ | | | | | | Provide a public accessor for ChainConfig
| * | core: Provide a public accessor for ChainConfigNicholas Johnson2016-04-291-0/+3
| | | | | | | | | | | | This is necessary for external users of the go-ethereum code who want to, for instance, build a custom node that plays back transactions, as core.ApplyTransaction requires a ChainConfig as a parameter.
* | | Merge pull request #2485 from karalabe/fakepowPéter Szilágyi2016-04-293-5/+16
|\ \ \ | |/ / |/| | cmd: add a `--fakepow` flag to help benchmarking database changes
| * | cmd: add a `--fakepow` flag to help benchmarking database changesPéter Szilágyi2016-04-213-5/+16
| | |
* | | Merge pull request #2435 from obscuren/abi-array-fixesPéter Szilágyi2016-04-288-362/+733
|\ \ \ | | | | | | | | accounts/abi: refactored ABI package
| * | | accounts/abi: fixed string and fixed size bytes packingJeffrey Wilcke2016-04-286-85/+137
| | | |
| * | | accounts/abi: added unpacking "anything" in to interface{}Jeffrey Wilcke2016-04-282-0/+11
| | | |
| * | | accounts/abi: fixed strict go-like unpackingJeffrey Wilcke2016-04-282-27/+158
| | | |
| * | | accouns/abi: refactored ABI packageJeffrey Wilcke2016-04-208-314/+491
| |/ / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Refactored the abi package parsing and type handling. Relying mostly on package reflect as opposed to most of our own type reflection. Our own type reflection is still used however for cases such as Bytes and FixedBytes (abi: bytes•). This also inclused several fixes for slice handling of arbitrary and fixed size for all supported types. This also further removes implicit type casting such as assigning, for example `[2]T{} = []T{1}` will fail, however `[2]T{} == []T{1, 2}` (notice assigning *slice* to fixed size *array*). Assigning arrays to slices will always succeed if they are of the same element type. Incidentally also fixes #2379
* | | Merge pull request #2499 from bas-vk/reorg-logsJeffrey Wilcke2016-04-281-1/+1
|\ \ \ | | | | | | | | eth/filters: ignore logs that don't match filter criteria on chain reorg
| * | | eth/filters: ignore logs that don't match filter criteria on chain reorgBas van Kervel2016-04-281-1/+1
| | | |
* | | | Merge pull request #2491 from obscuren/genesis-config-fixJeffrey Wilcke2016-04-281-1/+1
|\ \ \ \ | |/ / / |/| | | core, eth: added json tag field for proper unmarshalling
| * | | core, eth: added json tag field for proper unmarshallingJeffrey Wilcke2016-04-251-1/+1
| |/ / | | | | | | | | | | | | | | | | | | | | | | | | According to our own instructions the genesis config attribute should be "config". The genesis definition in the go code, however, has a field called `ChainConfig`. This field now has a `json:"config"` struct tag so that the json is properly unmarshalled. This fixes #2482
* | | Merge pull request #2496 from karalabe/abibind-missing-contract-errorPéter Szilágyi2016-04-275-4/+75
|\ \ \ | | | | | | | | accounts/abi/bind, eth: add contract non-existent error
| * | | accounts/abi/bind, eth: add contract non-existent errorPéter Szilágyi2016-04-275-4/+75
|/ / /
* | | Merge pull request #2492 from fjl/accounts-arm64Péter Szilágyi2016-04-262-2/+2
|\ \ \ | | | | | | | | accounts: disable file system watch on linux/arm64
| * | | accounts: disable file system watch on linux/arm64Felix Lange2016-04-252-2/+2
| | |/ | |/|
* | | Merge pull request #2484 from pcasaretto/address-test-coveragePéter Szilágyi2016-04-262-3/+37
|\ \ \ | | | | | | | | Improve Address test coverage
| * | | common: Add tests for Address#UnmarshalJSONPaulo L F Casaretto2016-04-262-3/+37
| | |/ | |/|
* | | Merge pull request #2478 from fjl/geth-js-tweakFelix Lange2016-04-263-13/+34
|\ \ \ | |_|/ |/| | cmd/geth, jsre: improve the js command
| * | cmd/geth, jsre: improve the js commandFelix Lange2016-04-213-13/+34
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | geth js stopped the JS runtime after running the first input file and blocked for pending callbacks. This commit makes it process all files and enables quitting with Ctrl-C regardless of callbacks. Error reporting is also improved. If a script fails to load, the error is printed and includes the backtrace. package jsre now ensures that otto is aware of the filename, the backtrace will contain them. Before: $ geth js bad.js; echo "exit $?" ... log messages ... exit 0 After: $ geth js bad.js; echo "exit $?" ... log messages ... Fatal: JavaScript Error: Invalid number of input parameters at web3.js:3109:20 at web3.js:4917:15 at web3.js:4960:5 at web3.js:4984:23 at checkWork (bad.js:11:9) at bad.js:19:1 exit 1
* | | Merge pull request #2481 from fjl/bootnode-fixupFelix Lange2016-04-251-28/+18
|\ \ \ | |_|/ |/| | cmd/bootnode: fix -genkey, add logging options
| * | cmd/bootnode: fix -genkey, add logging optionsFelix Lange2016-04-221-28/+18
| |/
* / VERSION, cmd/geth: bumped versionJeffrey Wilcke2016-04-202-3/+3
|/
* Merge pull request #2463 from fjl/rpc-context-keyPéter Szilágyi2016-04-196-12/+18
|\ | | | | rpc: remove NotifierContextKey
| * rpc: remove NotifierContextKeyFelix Lange2016-04-166-12/+18
| | | | | | | | | | | | | | Context keys must have a unique type in order to prevent any unintented clashes. The code used int(1) as key. Fix it by implementing the pattern recommended by package context.
* | Merge pull request #2462 from fjl/rpc-remove-jsFelix Lange2016-04-162-13/+12
|\ \ | | | | | | rpc: move web3.js extensions to internal/web3ext
| * | rpc: move web3.js extensions to internal/web3extFelix Lange2016-04-152-13/+12
| |/
* | Merge pull request #2461 from karalabe/fix-simulator-estimatesPéter Szilágyi2016-04-151-1/+1
|\ \ | |/ |/| accounts/abi/bind/backends: estimate needed gas, not used
| * accounts/abi/bind/backends: estimate needed gas, not usedPéter Szilágyi2016-04-151-1/+1
|/
* Merge pull request #2458 from fjl/go-vetFelix Lange2016-04-1551-118/+130
|\ | | | | all: fix go vet warnings
| * Makefile: enable go vet on Travis CIFelix Lange2016-04-151-0/+1
| |
| * all: fix go vet warningsFelix Lange2016-04-1541-93/+83
| |
| * core/state: fix TestDumpFelix Lange2016-04-153-9/+27
| | | | | | | | Lazy "I'll just put return here instead of fixing the test" found by go vet.
| * logger/glog: fix go vet issuesFelix Lange2016-04-152-9/+9
| | | | | | | | | | logging.printf triggered a format string warning. Silence it by renaming the function.
| * core, core/types, eth: add and use Block.BodyFelix Lange2016-04-155-7/+10
| | | | | | | | | | This fixes a few uses of unkeyed Body literals which go vet was complaining about.
* | Merge pull request #2460 from fjl/whisper-expiration-test-delayPéter Szilágyi2016-04-152-9/+5
|\ \ | |/ |/| whisper: deflake Test*MessageExpiration
| * whisper: deflake Test*MessageExpirationFelix Lange2016-04-152-9/+5
|/ | | | | | These tests have become a common annoyance on CI. Fix them by allowing messages with expiration == now into the cache and delaying the check for expired message handling slightly.
* Merge pull request #2457 from fjl/license-update-1.4Felix Lange2016-04-1561-88/+373
|\ | | | | all: update license information
| * all: update license informationFelix Lange2016-04-1560-82/+357
| |
| * build: tweak update-license.goFelix Lange2016-04-151-6/+16
|/
* Merge pull request #2456 from bas-vk/rpc-arg-whitespacePéter Szilágyi2016-04-141-2/+12
|\ | | | | cmd/utils: strip excessive whitespace from api command line arguments
| * cmd/utils: strip excessive whitespace from api command line argumentsBas van Kervel2016-04-141-2/+12
| |
* | Merge pull request #2454 from karalabe/trace-fixPéter Szilágyi2016-04-142-53/+65
|\ \ | |/ |/| eth: fix single transaction tracing (run prev mutations)
| * eth, rpc: make trace configs optionalPéter Szilágyi2016-04-142-13/+19
| |
| * eth: fix single transaction tracing (run prev mutations)Péter Szilágyi2016-04-141-41/+47
|/
* Merge pull request #2235 from fjl/chaindb-api-and-console-fixesFelix Lange2016-04-137-14/+78
|\ | | | | eth: add chaindbProperty to debug API (+ console fixes)
| * internal/debug: add memStats and gcStats to APIFelix Lange2016-04-132-0/+25
| |
| * eth: add chaindbProperty to debug APIFelix Lange2016-04-132-0/+24
| |
| * jsre: hide fields with prefix _ when pretty-printingFelix Lange2016-04-131-1/+1
| | | | | | | | This makes web3 internals like _requestManager invisible.
| * jsre: fix <tab><tab> completion magicFelix Lange2016-04-132-4/+17
| |
| * jsre: expose DoFelix Lange2016-04-132-9/+11
|/
* Merge pull request #2450 from karalabe/fix-ios-kqueuePéter Szilágyi2016-04-132-2/+2
|\ | | | | accounts: disable filesystem notifications on iOS
| * accounts: disable filesystem notifications on iosPéter Szilágyi2016-04-132-2/+2
|/
* Merge pull request #2448 from fjl/jsre-bignumFelix Lange2016-04-131-5/+13
|\ | | | | jsre: print BigNumber objects with custom constructor as number
| * jsre: print BigNumber objects with custom constructor as numberFelix Lange2016-04-121-5/+13
|/
* Merge pull request #2446 from karalabe/console-unlock-fixFelix Lange2016-04-121-3/+2
|\ | | | | cmd/utils: fix accounts merge error on console unlock
| * cmd/utils: fix accounts merge error on console unlockPéter Szilágyi2016-04-121-3/+2
|/
* Merge pull request #2284 from fjl/accounts-addr-cachePéter Szilágyi2016-04-1296-1213/+7346
|\ | | | | accounts: cache key addresses
| * accounts: ensure TimedUnlock does not override indefinite unlock timeoutFelix Lange2016-04-122-10/+16
| |
| * accounts: improve API and add documentationFelix Lange2016-04-126-58/+97
| | | | | | | | | | - Sign takes common.Address, not Account - Import/Export methods work with encrypted JSON keys
| * cmd/geth: add recovery procedure for AmbiguousAddrErrorFelix Lange2016-04-126-2/+110
| |
| * cmd/utils: fix --password on WindowsFelix Lange2016-04-121-9/+14
| | | | | | | | | | Text files created on Windows typically have \r\n line endings. Trim them when reading password files.
| * cmd/geth: print actual error when --unlock failsFelix Lange2016-04-122-4/+4
| |
| * eth: report unlock errors to RPC clientsFelix Lange2016-04-121-4/+3
| |
| * accounts: add ErrDecryptFelix Lange2016-04-126-9/+8
| |
| * accounts: cache key addressesFelix Lange2016-04-1218-368/+1057
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | In order to avoid disk thrashing for Accounts and HasAccount, address->key file mappings are now cached in memory. This makes it no longer necessary to keep the key address in the file name. The address of each key is derived from file content instead. There are minor user-visible changes: - "geth account list" now reports key file paths alongside the address. - If multiple keys are present for an address, unlocking by address is not possible. Users are directed to remove the duplicate files instead. Unlocking by index is still possible. - Key files are overwritten written in place when updating the password.
| * Godeps: add github.com/rjeczalik/notifyFelix Lange2016-04-1237-0/+4702
| |
| * cmd/geth: add tests for account commandsFelix Lange2016-04-1217-1/+550
| |
| * Godeps: add github.com/cspeare/cpFelix Lange2016-04-124-0/+90
| |
| * accounts: streamline APIFelix Lange2016-04-1211-144/+79
| | | | | | | | | | | | - Manager.Accounts no longer returns an error. - Manager methods take Account instead of common.Address. - All uses of Account with unkeyed fields are converted.
| * cmd/geth: move account commands to accountcmd.goFelix Lange2016-04-122-258/+286
| |
| * accounts: fix go vet warningsFelix Lange2016-04-123-5/+5
| |
| * accounts, crypto: move keystore to package accountsFelix Lange2016-04-1219-241/+256
| | | | | | | | | | | | | | | | | | | | The account management API was originally implemented as a thin layer around crypto.KeyStore, on the grounds that several kinds of key stores would be implemented later on. It turns out that this won't happen so KeyStore is a superflous abstraction. In this commit crypto.KeyStore and everything related to it moves to package accounts and is unexported.
| * cmd/geth, cmd/utils: improve input handlingFelix Lange2016-04-127-121/+128
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | These changes make prompting behave consistently on all platforms: * The input buffer is now global. Buffering was previously set up for each prompt, which can cause weird behaviour, e.g. when running "geth account update <input.txt" where input.txt contains three lines. In this case, the first password prompt would fill up the buffer with all lines and then use only the first one. * Print the "unsupported terminal" warning only once. Now that stdin prompting has global state, we can use it to track the warning there. * Work around small liner issues, particularly on Windows. Prompting didn't work under most of the third-party terminal emulators on Windows because liner assumes line editing is always available.
| * tests: remove eth, node, accounts dependenciesFelix Lange2016-04-123-56/+18
| | | | | | | | Unlocking the accounts in the test doesn't help with anything.
* | Merge pull request #2444 from karalabe/gethrpctest-chainconfig-panicPéter Szilágyi2016-04-122-0/+7
|\ \ | |/ |/| cmd/gethrpctest: add missing chain configuration config field
| * eth: gracefully fail if chain config is missingPéter Szilágyi2016-04-121-0/+4
| |
| * cmd/gethrpctest: add missing chain configuration config fieldPéter Szilágyi2016-04-121-0/+3
|/
* Merge pull request #2359 from bas-vk/rpc-optional-argsJeffrey Wilcke2016-04-1223-639/+3431
|\ | | | | rpc: several fixes and support for optional arguments
| * rpc: various fixes/enhancementsBas van Kervel2016-04-1223-639/+3431
| | | | | | | | | | | | | | | | rpc: be less restrictive on the request id rpc: improved documentation console: upgrade web3.js to version 0.16.0 rpc: cache http connections rpc: rename wsDomains parameter to wsOrigins
* | Merge pull request #2431 from bas-vk/js-preloadJeffrey Wilcke2016-04-124-0/+38
|\ \ | | | | | | cmd/geth: add JS preload parameter
| * | cmd/geth: add JS preload parameterBas van Kervel2016-04-114-0/+38
| |/
* | Merge pull request #2440 from karalabe/update-ethashJeffrey Wilcke2016-04-127-36/+36
|\ \ | | | | | | Update ethash
| * | eth: fix GPU miner chain config regressionPéter Szilágyi2016-04-111-2/+1
| | |
| * | Godeps: pull in the ethash opencl fixPéter Szilágyi2016-04-116-34/+35
|/ /
* | Merge pull request #2430 from bas-vk/chaincmdPéter Szilágyi2016-04-111-7/+11
|\ \ | | | | | | cmd/utils: bugfix where database is opened multiple times
| * | cmd/utils: bugfix where database is opened multiple timesBas van Kervel2016-04-071-7/+11
| |/
* | Merge pull request #2427 from bas-vk/pending-tx-console-formatPéter Szilágyi2016-04-111-1/+9
|\ \ | | | | | | console: use transaction output formatter for eth.pendingTransactions…
| * | console: use transaction output formatter for eth.pendingTransactions outputBas van Kervel2016-04-061-1/+9
| |/
* | Merge pull request #2423 from karalabe/abigen-support-arraysPéter Szilágyi2016-04-112-16/+67
|\ \ | |/ |/| accounts/abi/bind: support generating bindings for various arrays
| * accounts/abi/bind: support generating bindings for various arraysPéter Szilágyi2016-04-052-16/+67
|/
* Merge pull request #2417 from fjl/rpc-go-winioJeffrey Wilcke2016-04-0513-622/+1849
|\ | | | | rpc: use go-winio instead of vendoring a named pipe implementation
| * rpc: use go-winio instead of vendoring a named pipe implementationFelix Lange2016-04-0413-622/+1849
| |
* | Merge pull request #2407 from bas-vk/rpc-notificationsJeffrey Wilcke2016-04-0516-310/+844
|\ \ | | | | | | RPC pub sub
| * | rpc: add pub/sub supportBas van Kervel2016-04-0216-310/+844
| | |
* | | Merge pull request #2416 from karalabe/kill-canaryJeffrey Wilcke2016-04-052-63/+8
|\ \ \ | | | | | | | | core, miner: remove Frontier canary
| * | | core, miner: remove Frontier canaryPéter Szilágyi2016-04-042-63/+8
| | |/ | |/|
* | | Merge pull request #2396 from obscuren/abi-slicesJeffrey Wilcke2016-04-055-176/+302
|\ \ \ | |/ / |/| | abi: support for input and output slices & removed support for implicit type conversion
| * | abi: removed implicit type casting & refactored type parsingJeffrey Wilcke2016-04-053-53/+80
| | |
| * | abi: accept output slices of all supported typesJeffrey Wilcke2016-04-053-5/+143
| | |
| * | abi: accept input slices of all supported typesJeffrey Wilcke2016-04-055-145/+106
| | |
* | | Merge pull request #2412 from fjl/p2p-eip8-enablePéter Szilágyi2016-04-041-9/+1
|\ \ \ | | | | | | | | p2p: enable EIP-8 handshake sending
| * | | p2p: enable EIP-8 handshake sendingFelix Lange2016-04-041-9/+1
| |/ / | | | | | | | | | | | | With the Ethereum Homestead fork is now behind us, we can assume that everyone runs an EIP-8 capable client.
* | | Merge pull request #2378 from obscuren/enable-jit-a-bJeffrey Wilcke2016-04-042-2/+22
|\ \ \ | | | | | | | | cmd/utils, miner: A/B testing JIT VM. Disabled for miners
| * | | cmd/utils, miner: A/B testing JIT VM. Disabled for minersJeffrey Wilcke2016-04-012-2/+22
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This PR introduces a 10% probability that you'll run the client with the JIT enabled testing the new client and helps us potentially catch errors when reported. This feature is **disabled** for miners (disabling the JIT completely). The JIT can however be force for miners if they enable both --jitvm and --forcejit.
* | | | Merge pull request #2415 from karalabe/fix-missing-gastargetJeffrey Wilcke2016-04-042-1/+2
|\ \ \ \ | |_|/ / |/| | | cmd/geth: add missing gas target flag (fixing 0 convergence issue)
| * | | cmd/geth: add missing gas target flag (fixing 0 convergence issue)Péter Szilágyi2016-04-042-1/+2
|/ / /
* | | Merge pull request #2409 from fjl/geth-fixup-initJeffrey Wilcke2016-04-023-18/+19
|\ \ \ | |_|/ |/| | cmd/geth: fix startup with empty database
| * | cmd/geth, eth: move --genesis deprecation warning to cmd/gethFelix Lange2016-04-022-4/+6
| | | | | | | | | | | | This prevents display of the warning for --dev and --olympic.
| * | cmd/utils: fix geth startup with empty databaseFelix Lange2016-04-021-14/+13
|/ /
* | Merge pull request #2405 from karalabe/abigen-default-methodsJeffrey Wilcke2016-04-013-5/+102
|\ \ | | | | | | accounts/abi/bind: surface raw wrappers to access low level ops
| * | accounts/abi/bind: surface raw wrappers to access low level opsPéter Szilágyi2016-04-013-5/+102
| | |
* | | Merge pull request #2404 from obscuren/common-hash-json-length-validationJeffrey Wilcke2016-04-012-0/+35
|\ \ \ | | | | | | | | common: added Hash unmarshal json length validation
| * | | common: added Hash unmarshal json length validationJeffrey Wilcke2016-04-012-0/+35
| |/ /
* | | Merge pull request #2402 from obscuren/eth-sign-fixJeffrey Wilcke2016-04-011-4/+4
|\ \ \ | |_|/ |/| | eth: enforce signing hashes using eth_sign instead of arbitrary data
| * | eth: enforce signing hashes using eth_sign instead of arbitrary dataJeffrey Wilcke2016-04-011-4/+4
| |/
* | Merge pull request #2281 from obscuren/configurable-genesisJeffrey Wilcke2016-04-0155-447/+751
|\ \ | |/ |/| core: homestead chain configuration & artificial gas floor target mining flag
| * core: transition db now also returns the required gas amountJeffrey Wilcke2016-04-012-10/+27
| | | | | | | | | | | | | | | | | | Exposes some core methods to transition and compute new state information and adds an additional return value to the transition db method to fetch required gas for that particular message (excluding gas refunds from any SSTORE[X] = 0 and SUICIDE. Fixes #2395
| * accounts/a/b/backends, core: chain maker homestead block set to 0Jeffrey Wilcke2016-04-016-28/+14
| | | | | | | | | | | | | | The chain maker and the simulated backend now run with a homestead phase beginning at block 0 (i.e. there's no frontier). This commit also fixes up #2388
| * core: added basic chain configurationJeffrey Wilcke2016-04-0155-431/+732
|/ | | | | | | | | 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.
* Merge pull request #2383 from karalabe/goabi-exclusions-duplicatesPéter Szilágyi2016-04-014-39/+46
|\ | | | | accounts/abi/bind, cmd/abigen: dedup structs, exclude patterns
| * accounts/abi/bind: support account slices, drop hash typePéter Szilágyi2016-03-311-2/+2
| |
| * accounts/abi/bind: merge all tests into a single suitePéter Szilágyi2016-03-311-22/+22
| |
| * accounts/abi/bind: use anonymous ephemeral call result structsPéter Szilágyi2016-03-311-15/+10
| |
| * accounts/abi/bind, cmd/abigen: dedup structs, exclude patternsPéter Szilágyi2016-03-262-6/+18
| |
* | Merge pull request #2399 from karalabe/fix-trace-json-outputJeffrey Wilcke2016-03-311-4/+13
|\ \ | | | | | | eth: fix accidental nil panic on nil errors
| * | eth: fix accidental nil panic on nil errorsPéter Szilágyi2016-03-311-4/+13
| | |
* | | Merge pull request #2398 from karalabe/fix-trace-json-outputPéter Szilágyi2016-03-311-11/+11
|\| | | |/ |/| eth: manually convert errors to strings on the trace API (json cannot)
| * eth: manually convert errors to strings on the trace API (json cannot)Péter Szilágyi2016-03-311-11/+11
|/
* Merge pull request #2381 from karalabe/fix-abigen-tuplesJeffrey Wilcke2016-03-262-4/+36
|\ | | | | accounts/abi/bind: fix double pointer in generated code
| * accounts/abi/bind: fix double pointer in generated codePéter Szilágyi2016-03-252-4/+36
|/
* Merge pull request #2357 from karalabe/abi-binding-generatorPéter Szilágyi2016-03-2425-61/+12850
|\ | | | | accounts/abi/bind: Go ABI binding generator
| * accounts/abi/bind, cmd/abigen: port to templates, bind to solidityPéter Szilágyi2016-03-2410-448/+594
| |
| * accounts/abi/bind: constructor, auth utils and various backendsPéter Szilágyi2016-03-2410-267/+736
| |
| * accounts/abi/bind, cmd/abigen: Go API generator around an EVM ABIPéter Szilágyi2016-03-2420-42/+12216
|/
* Merge pull request #2141 from obscuren/evm-initJeffrey Wilcke2016-03-2436-343/+666
|\ | | | | core, core/vm, tests: changed the initialisation behaviour of the EVM