aboutsummaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* 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 #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
| * core, eth, cmd: temporary work around for enabling the jitJeffrey Wilcke2016-03-243-1/+17
| | | | | | | | | | This commit serves as a temporary workaround for enabling the jit until the block customisation PR is merged in.
| * eth/api: added root to the receiptsJeffrey Wilcke2016-03-241-0/+3
| |
| * eth, rpc: implemented block debugging rpc callsJeffrey Wilcke2016-03-242-93/+214
| | | | | | | | | | | | | | | | | | Implemented the following block debugging RPC calls * Block(RLP) * BlockByFile(fileName) * BlockByNumber(number) * BlockByHash(hash)
| * core: Added EVM configuration optionsJeffrey Wilcke2016-03-2430-229/+407
| | | | | | | | | | The EVM is now initialised with an additional configured object that allows you to turn on debugging options.
| * core, core/vm, tests: changed the initialisation behaviour of the EVMJeffrey Wilcke2016-03-2313-44/+49
| | | | | | | | | | | | | | The EVM was previously initialised and created for every CALL, CALLCODE, DELEGATECALL and CREATE. This PR changes this behaviour so that the same EVM can be used through the session and beyond as long as the Environment sticks around.
* | Merge pull request #2371 from hiddentao/fix_prompt_passwd_inputJeffrey Wilcke2016-03-241-0/+1
|\ \ | | | | | | Strip extraneous carriage return from end of entered password
| * | cmd/utils: removed password line endings when not using liner.Ramesh Nair2016-03-231-0/+1
| | |
* | | Merge pull request #2259 from bas-vk/httpJeffrey Wilcke2016-03-2315-236/+903
|\ \ \ | |/ / |/| | rpc/http: improve request handling
| * | rpc/http: improve request handlingBas van Kervel2016-03-2315-236/+903
| | |
* | | Merge pull request #2348 from obscuren/abi-variable-inputPéter Szilágyi2016-03-174-31/+193
|\ \ \ | | | | | | | | accounts/abi: Fixed bytes input accept []byte and variable input support
| * | | accounts/abi: Fixed bytes input accept []byte and variable input supportJeffrey Wilcke2016-03-154-31/+193
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Fixed up `[]byte` slice support such that `function print(bytes input)` accepts `[]byte` as input and treats it as 1 element rather than a slice of multiple elements. Added support for variable length input parameters like `bytes` and `strings`.
* | | | Merge pull request #2354 from karalabe/miner-atomic-pendingPéter Szilágyi2016-03-163-17/+10
|\ \ \ \ | | | | | | | | | | eth, miner: fetch pending block/state in on go (data race)
| * | | | eth, miner: fetch pending block/state in on go (data race)Péter Szilágyi2016-03-163-17/+10
| | |_|/ | |/| |
* | | | Merge pull request #2355 from karalabe/abi-constant-functions-2Péter Szilágyi2016-03-162-9/+12
|\ \ \ \ | |/ / / |/| | | accounts/abi: handle the "constant" modifier for functions
| * | | accounts/abi: handle the "constant" modifier for functionsPéter Szilágyi2016-03-162-9/+12
|/ / /
* | | Merge pull request #2341 from leijurv/patch-2Péter Szilágyi2016-03-161-3/+3
|\ \ \ | | | | | | | | core: fixed various typos
| * | | core: fixed various typosLeif Jurvetson2016-03-161-3/+3
| | | |
* | | | Merge pull request #2350 from leijurv/patch-3Felix Lange2016-03-164-8/+8
|\ \ \ \ | | | | | | | | | | core, eth: replace reorganiz with reorganis
| * | | | core, eth: replace reorganiz with reorganisLeif Jurvetson2016-03-164-8/+8
|/ / / /
* | | | Merge pull request #2351 from leijurv/patch-4Felix Lange2016-03-1621-39/+39
|\ \ \ \ | | | | | | | | | | core: various typos
| * | | | core: various typosLeif Jurvetson2016-03-1621-39/+39
| | |/ / | |/| |
* | | | Merge pull request #2352 from leijurv/patch-5Felix Lange2016-03-1611-29/+29
|\ \ \ \ | |/ / / |/| | | eth: various typos
| * | | eth: various typosLeif Jurvetson2016-03-1611-29/+29
|/ / /
* | | Merge pull request #2327 from fjl/debug-fixesPéter Szilágyi2016-03-154-1/+54
|\ \ \ | | | | | | | | cmd/utils, internal/debug: fixes for debugging
| * | | cmd/utils, internal/debug: show all stacks for 10x Ctrl-C induced panicFelix Lange2016-03-123-1/+53
| | | | | | | | | | | | | | | | | | | | 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.
* | | | Merge pull request #2342 from obscuren/issue-templatesJeffrey Wilcke2016-03-152-0/+20
|\ \ \ \ | |_|/ / |/| | | templates: added issue template
| * | | templates: added issue templateJeffrey Wilcke2016-03-152-0/+20
| |/ /
* | | Merge pull request #2337 from karalabe/upnp-error-hangPéter Szilágyi2016-03-141-0/+1
|\ \ \ | |/ / |/| | p2p/nat: fix #2291, NAT discovery did't abort on failure
| * | p2p/nat: fix #2291, NAT discovery did't abort on failurePéter Szilágyi2016-03-141-0/+1
|/ /
* | Merge pull request #2311 from obscuren/future-proc-fixJeffrey Wilcke2016-03-121-14/+15
|\ \ | | | | | | core: added future proc mutex lock
| * | core: added future proc mutex lockJeffrey Wilcke2016-03-111-14/+15
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Added a future lock which prevents the anything being added or removed from or to the set when looping over the set of blocks. This fixes a nil pointer in the range loop when trying to retrieve a block from the set which was previously available but removed due to regular chain processing. Fixes #2305
* | | Merge pull request #2322 from karalabe/headerchain-preformance-fixesPéter Szilágyi2016-03-112-20/+52
|\ \ \ | | | | | | | | core: cache fresh headers and tds to avoid db trashing
| * | | core: cache fresh headers and tds to avoid db trashingPéter Szilágyi2016-03-112-20/+52
| |/ /
* | | Merge pull request #2326 from karalabe/goleveldb-datarace-fixPéter Szilágyi2016-03-114-69/+15
|\ \ \ | | | | | | | | Godeps: pull in the leveldb upstream write race fix
| * | | Godeps: pull in the leveldb upstream write race fixPéter Szilágyi2016-03-114-69/+15
|/ / /
* | | Merge pull request #2321 from karalabe/downloader-throughput-dataracePéter Szilágyi2016-03-111-2/+2
|\ \ \ | |/ / |/| | eth/downloader: fix a throughput estimation data race
| * | eth/downloader: fix a throughput estimation data racePéter Szilágyi2016-03-101-2/+2
| | |
* | | Merge pull request #2081 from zsfelfoldi/light-chainJeffrey Wilcke2016-03-104-345/+575
|\ \ \ | | | | | | | | core: create a header chain structure shared by full and light clients
| * | | core: create a header chain structure shared by core.BlockChain and ↵zsfelfoldi2016-03-104-345/+575
|/ / / | | | | | | | | | light.LightChain
* | | Merge pull request #2301 from obscuren/uncle-fixJeffrey Wilcke2016-03-102-6/+101
|\ \ \ | |_|/ |/| | core: announce ChainSideEvent during reorg
| * | core: announce ChainSideEvent during reorgJeffrey Wilcke2016-03-082-6/+101
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Previously all blocks that were already in our chain were never re announced as potential uncle block (e.g. ChainSideEvent). This is problematic during mining where you want to gather as much possible uncles as possible increasing the profit. This is now addressed in this PR where during reorganisations of chains the old chain is regarded as uncles. Fixed #2298
* | | Merge pull request #2320 from karalabe/update-goleveldbJeffrey Wilcke2016-03-1027-2184/+194
|\ \ \ | |_|/ |/| | Godeps: update goleveldb to fix a compaction data race
| * | Godeps: update goleveldb to fix a compaction data racePéter Szilágyi2016-03-1027-2184/+194
|/ /
* | Merge pull request #2228 from karalabe/allocate-cache-to-chaindataPéter Szilágyi2016-03-0913-24/+176
|\ \ | | | | | | cmd, eth, ethdb, node: prioritise chaindata for resources, bump cache
| * | cmd, eth, ethdb, node: prioritise chaindata for resources, bump cachePéter Szilágyi2016-03-0913-24/+176
|/ /
* | Merge pull request #2309 from bas-vk/passwdPéter Szilágyi2016-03-081-9/+15
|\ \ | | | | | | console: allow optional password on the command line
| * | console: allow optional password on the command lineBas van Kervel2016-03-081-9/+15
| | |
* | | Merge pull request #2310 from karalabe/ethash-future-cachePéter Szilágyi2016-03-082-9/+25
|\ \ \ | |/ / |/| | Godeps: pull in ethash future cache generator
| * | Godeps: pull in ethash future cache generatorPéter Szilágyi2016-03-082-9/+25
|/ /
* | Merge pull request #2293 from kobigurk/developFelix Lange2016-03-083-2/+19
|\ \ | | | | | | Adds --keystore
| * | cmd/utils: add --keystoreKobi Gurkan2016-03-083-2/+19
| |/
* | Merge pull request #2292 from remyroy/fix-solc-win-pathFelix Lange2016-03-081-1/+1
|\ \ | |/ |/| Fix path problem with Solidity compile with filepath.Glob on Windows
| * common/compiler: fix path problem with filepath.Glob on WindowsRémy Roy2016-03-081-1/+1
|/
* Merge pull request #2285 from karalabe/forward-empty-bodiesJeffrey Wilcke2016-03-031-1/+5
|\ | | | | eth: forward empty body responses to the downlaoder
| * eth: forward empty body responses to the downlaoderPéter Szilágyi2016-03-031-1/+5
|/
* Merge pull request #2280 from bas-vk/js-cleanupJeffrey Wilcke2016-03-032-168/+4
|\ | | | | console: cleanup old autocompletations relics
| * console: cleanup old autocompletations relicsBas van Kervel2016-03-022-168/+4
| |
* | Merge pull request #2267 from karalabe/pending-state-eventsPéter Szilágyi2016-03-022-2/+12
|\ \ | | | | | | core, miner: add PendingStateEvent to track non-log updates.
| * | core, miner: add PendingStateEvent to track non-log updatesPéter Szilágyi2016-02-292-2/+12
| | |
* | | Merge pull request #2278 from fjl/rpc-inproc-pipePéter Szilágyi2016-03-011-69/+19
|\ \ \ | |_|/ |/| | rpc: simplify inproc client
| * | rpc: simplify inproc clientFelix Lange2016-03-011-69/+19
|/ / | | | | | | Fixes #2277
* | Merge pull request #2221 from karalabe/expost-key-decryptionPéter Szilágyi2016-03-013-57/+126
|\ \ | | | | | | crypto: expose key decryption method to parse a string direclty
| * | crypto: expose key encryption method, add ping-pong testPéter Szilágyi2016-02-242-18/+71
| | |
| * | crypto: code polish + ensure key file contents match with namePéter Szilágyi2016-02-241-5/+12
| | |
| * | crypto: expose key decryption method to parse a string direcltyPéter Szilágyi2016-02-242-36/+45
| | |
* | | Merge pull request #2215 from bas-vk/estimategasPéter Szilágyi2016-03-012-35/+32
|\ \ \ | | | | | | | | core: improved check for contract creation
| * | | core: improved check for contract creationBas van Kervel2016-02-162-35/+32
| | | |
* | | | params: updated homestead blockJeffrey Wilcke2016-02-291-1/+1
| | | |
* | | | cmd/utils, params: homestead blockJeffrey Wilcke2016-02-292-1/+7
| | | |
* | | | Merge pull request #2269 from obscuren/repl-multi-lineJeffrey Wilcke2016-02-291-1/+0
|\ \ \ \ | | | | | | | | | | cmd/geth: removed multiline support
| * | | | cmd/geth: removed multiline supportJeffrey Wilcke2016-02-271-1/+0
| | |_|/ | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | When attempting to paste very long lines of text the REPL goes completely fubar, never completing the paste. Removing the multiline support "fixes" this. Long lines of text are usually pasted when deploying contracts and as it stands right now makes creating new contracts from the REPL impossible.
* | | | Merge pull request #2273 from obscuren/lower-min-accepted-ga-priceJeffrey Wilcke2016-02-291-2/+2
|\ \ \ \ | | | | | | | | | | cmd/utils: lower the min accepted gas price for relay and GPO
| * | | | cmd/utils: lower the min accepted gas price for relay and GPO to 20 shannonJeffrey Wilcke2016-02-291-2/+2
|/ / / /
* | | | Merge pull request #2272 from karalabe/fix-premature-downloader-exitJeffrey Wilcke2016-02-291-1/+3
|\ \ \ \ | | | | | | | | | | eth/downloader: fix premature exit before notifying all part fetchers
| * | | | eth/downloader: fix premature exit before notifying all part fetchersPéter Szilágyi2016-02-291-1/+3
|/ / / /
* | | | Merge pull request #2266 from obscuren/up-gas-floorJeffrey Wilcke2016-02-271-1/+1
|\ \ \ \ | |/ / / |/| | | params: settle the Pi vs Tau dispute
| * | | params: settle the Pi vs Tau disputeJeffrey Wilcke2016-02-261-1/+1
| | | | | | | | | | | | | | | | This commit increases the artificial gas floor to 4712388
* | | | Merge pull request #2265 from fjl/downloader-memJeffrey Wilcke2016-02-261-1/+1
|\ \ \ \ | |/ / / |/| | | eth/downloader: fix header download limiting
| * | | eth/downloader: fix header download limitingFelix Lange2016-02-261-1/+1
|/ / / | | | | | | | | | Fixes #2201
* | | Merge pull request #2260 from karalabe/ethash-cache-fixesPéter Szilágyi2016-02-2427-3400/+190
|\ \ \ | |_|/ |/| | Godeps, eth, tests: update ethash, used shared for testing
| * | Godeps, eth, tests: update ethash, used shared for testingPéter Szilágyi2016-02-2427-3400/+190
| | |
* | | Merge pull request #2251 from karalabe/increase-downlaoder-queuePéter Szilágyi2016-02-242-1/+6
|\ \ \ | | | | | | | | eth/downloader: bump the download queue size to prevent starvation
| * | | eth/downloader: bump the download queue size to prevent starvationPéter Szilágyi2016-02-232-1/+6
| | | |
* | | | Merge pull request #2242 from jimenezrick/upstream-cryptoJeffrey Wilcke2016-02-2468-633/+925
|\ \ \ \ | | | | | | | | | | Closes #2241: Use Keccak-256 from golang.org/x/crypto/sha3 and mention explicitly
| * | | | generators: Don't generate params/protocol_params.go with +x bitRicardo Catalinas Jiménez2016-02-222-1/+1
| | | | |
| * | | | common/natspec: Remove old unnused fileRicardo Catalinas Jiménez2016-02-221-253/+0
| | | | |
| * | | | ethdb: Remove outdated README pointing to an old linkRicardo Catalinas Jiménez2016-02-221-11/+0
| | | | |
| * | | | common: Remove dead codeRicardo Catalinas Jiménez2016-02-222-36/+0
| | | | |
| * | | | common: Remove empty linesRicardo Catalinas Jiménez2016-02-221-2/+0
| | | | |
| * | | | crypto: Remove dead codeRicardo Catalinas Jiménez2016-02-222-11/+0
| | | | |
| * | | | crypto: Add backward compatible aliases for Sha3{,Hash}()Ricardo Catalinas Jiménez2016-02-221-0/+4
| | | | |
| * | | | all: Rename crypto.Sha3{,Hash}() to crypto.Keccak256{,Hash}()Ricardo Catalinas Jiménez2016-02-2248-92/+92
| | | | | | | | | | | | | | | | | | | | As we aren't really using the standarized SHA-3
| * | | | crypto/sha3: Export Keccak-256 hash functionRicardo Catalinas Jiménez2016-02-221-0/+3
| | | | | | | | | | | | | | | | | | | | | | | | | This hash function is slightly different from the standarized NIST SHA-3 as both of them use different domain separation bits.
| * | | | crypto/sha3: Remove import path checking from vendored codeRicardo Catalinas Jiménez2016-02-221-1/+1
| | | | |
| * | | | crypto/sha3: Copy latest code from "golang.org/x/crypto/sha3"Ricardo Catalinas Jiménez2016-02-2213-0/+1269
| | | | | | | | | | | | | | | | | | | | Revision: 1f22c0103821b9390939b6776727195525381532
| * | | | crypto/sha3: Delete old copied codeRicardo Catalinas Jiménez2016-02-222-671/+0
| | | | |
* | | | | Merge pull request #2218 from karalabe/time-drift-warningPéter Szilágyi2016-02-242-4/+149
|\ \ \ \ \ | |_|_|/ / |/| | | | p2p/discover: NTP sanity check clock drift in case of expirations
| * | | | p2p/discover: emphasize warning, add 10 min cooldownPéter Szilágyi2016-02-242-18/+39
| | | | |
| * | | | psp/discovery: NTP sanity check clock drift in case of expirationsPéter Szilágyi2016-02-242-4/+128
| | | | |
* | | | | Merge pull request #2252 from karalabe/disable-metrics-metaopsPéter Szilágyi2016-02-241-0/+4
|\ \ \ \ \ | |/ / / / |/| | | | ethdb: fully disable metrics if not requested (oops?)
| * | | | ethdb: fully disable metrics if not requested (oops?)Péter Szilágyi2016-02-231-0/+4
|/ / / /
* | | | Merge pull request #2147 from prasanna/add-vagrantfilePéter Szilágyi2016-02-232-0/+31
|\ \ \ \ | |_|/ / |/| | | Added Vagrantfile so that developers can spin up a VM to build geth
| * | | Added Vagrantfile so that developers can spin up a VM to build gethPrasanna Pendse2016-02-152-0/+31
| | |/ | |/|
* | | Merge pull request #2234 from obscuren/tx-rpc-fixPéter Szilágyi2016-02-231-9/+9
|\ \ \ | | | | | | | | eth: fixed homestead tx check
| * | | eth: fixed homestead tx checkJeffrey Wilcke2016-02-201-9/+9
| | |/ | |/| | | | | | | | | | | | | | | | When a block is queried for retrieval we should add a check whether the block falls within the frontier rules. If we'd always use `From` retrieving transaction might fail. This PR temporarily changes everything to `FromFrontier` (safe!).
* | | Merge pull request #2220 from karalabe/fix-rollback-lockPéter Szilágyi2016-02-231-2/+28
|\ \ \ | | | | | | | | eth/downloader: fix partial rollback and ancestor lookup
| * | | eth/downloader: fix partial rollback and ancestor lookupPéter Szilágyi2016-02-191-2/+28
| | |/ | |/|
* | | Merge pull request #2095 from karalabe/trie-node-iteratorPéter Szilágyi2016-02-236-11/+574
|\ \ \ | |_|/ |/| | core/state, trie: add node iterator, test state/trie sync consistency
| * | core/state, trie: switch iterator panics to error fieldsPéter Szilágyi2016-02-164-45/+62
| | |
| * | core/state, trie: node iterator reports parent hashes tooPéter Szilágyi2016-02-162-15/+27
| | |
| * | core/state, trie: surface iterator entry hashesPéter Szilágyi2016-02-166-20/+114
| | |
| * | core/state, trie: add node iterator, test state/trie sync consistencyPéter Szilágyi2016-02-164-11/+451
| |/
* | Merge pull request #2116 from obscuren/homesteadJeffrey Wilcke2016-02-19838-10016/+195245
|\ \ | | | | | | core, core/vm: consensus changes necessary for the homestead release
| * | core: Added new TD strategy which mitigate the risk for selfish miningJeffrey Wilcke2016-02-182-6/+17
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Assuming the following scenario where a miner has 15% of all hashing power and the ability to exert a moderate control over the network to the point where if the attacker sees a message A, it can't stop A from propagating, but what it **can** do is send a message B and ensure that most nodes see B before A. The attacker can then selfish mine and augment selfish mining strategy by giving his own blocks an advantage. This change makes the time at which a block is received less relevant and so the level of control an attacker has over the network no longer makes a difference. This change changes the current td algorithm `B_td > C_td` to the new algorithm `B_td > C_td || B_td == C_td && rnd < 0.5`.
| * | core, core/vm, crypto: fixes for homesteadJeffrey Wilcke2016-02-1824-195/+226
| | | | | | | | | | | | | | | | | | * Removed some strange code that didn't apply state reverting properly * Refactored code setting from vm & state transition to the executioner * Updated tests
| * | tests: updated homestead testsJeffrey Wilcke2016-02-18800-11178/+181716
| | |
| * | parmas, crypto, core, core/vm: homestead consensus protocol changesGustav Simonsson2016-02-1855-9278/+23927
| | | | | | | | | | | | | | | | | | | | | | | | * change gas cost for contract creating txs * invalidate signature with s value greater than secp256k1 N / 2 * OOG contract creation if not enough gas to store code * new difficulty adjustment algorithm * new DELEGATECALL op code
* | | Merge pull request #2227 from bas-vk/mathrandomFelix Lange2016-02-1912-46/+815
|\ \ \ | | | | | | | | console: seed random number generator
| * | | console: seed random number generatorBas van Kervel2016-02-1912-46/+815
| |/ /
* | | Merge pull request #2226 from fjl/eip-8Jeffrey Wilcke2016-02-1914-182/+764
|\ \ \ | |/ / |/| | p2p, p2p/discover: EIP-8 changes
| * | p2p: EIP-8 changesFelix Lange2016-02-194-149/+443
| | |
| * | p2p/discover: EIP-8 changesFelix Lange2016-02-192-1/+122
| | |
| * | rlp: add "tail" struct tagFelix Lange2016-02-196-26/+163
| | |
| * | crypto/ecies: make authenticated shared data workFelix Lange2016-02-122-6/+36
| | | | | | | | | | | | The s2 parameter was not actually written to the MAC.
* | | Merge pull request #2206 from fjl/update-depsJeffrey Wilcke2016-02-17664-66894/+164289
|\ \ \ | |_|/ |/| | Godeps: update all dependencies
| * | jsre: include constructor properties in auto-completionFelix Lange2016-02-153-14/+107
| | |
| * | cmd/geth, jsre: improve auto-completionFelix Lange2016-02-152-64/+68
| | |
| * | cmd/geth: enable multi-line modeFelix Lange2016-02-121-0/+1
| | | | | | | | | | | | | | | This was requested by some users earlier but liner didn't support it at the time. It does now.
| * | cmd/geth: gofmt js.go and rename ethereum.js to web3.jsFelix Lange2016-02-121-6/+6
| | | | | | | | | | | | | | | Fixing the filename matters now because it will actually show up in JS backtraces.
| * | jsre: fix pretty printer for upstream otto changeFelix Lange2016-02-121-2/+11
| | |
| * | cmd/geth: update monitor to new termui codePéter Szilágyi2016-02-111-25/+22
| | |
| * | Godeps: update all dependencies to latest codePéter Szilágyi2016-02-11659-66792/+164083
| |/
* | Merge pull request #2210 from obscuren/abi-typed-arrayJeffrey Wilcke2016-02-152-43/+114
|\ \ | | | | | | accounts/abi: support for typed array
| * | accounts/abi: support for typed arrayJeffrey Wilcke2016-02-152-43/+114
|/ / | | | | | | | | Added support for fixed size and arbitrary length byte arrays to be marshallable in fixed size (typed) byte slices.
* | Merge pull request #2205 from obscuren/pending-filtersPéter Szilágyi2016-02-138-52/+143
|\ \ | | | | | | eth/filters: ✨ pending logs ✨
| * | eth/filters: ✨ pending logs ✨Jeffrey Wilcke2016-02-138-52/+143
| |/ | | | | | | | | | | Pending logs are now filterable through the Go API. Filter API changed such that each filter type has it's own bucket and adding filter explicitly requires you specify the bucket to put it in.
* | Merge pull request #2175 from karalabe/refactor-http-rpcPéter Szilágyi2016-02-1319-540/+654
|\ \ | |/ |/| cmd, common, node, rpc: move HTTP RPC into node, drop singleton aspect
| * cmd, node, rpc: readd inproc RPC client, expose via nodePéter Szilágyi2016-02-0911-25/+178
| |
| * cmd, common, node, rpc: rework naming convention to canonical onePéter Szilágyi2016-02-0913-115/+115
| |
| * cmd, node, rpc: move websockets into node, break singletonPéter Szilágyi2016-02-0511-292/+194
| |
| * cmd, common, node, rpc: move HTTP RPC into node, drop singletone aspectPéter Szilágyi2016-02-0510-215/+274
| |
* | Merge pull request #2192 from obscuren/runtime-abi-fixesJeffrey Wilcke2016-02-116-48/+480
|\ \ | | | | | | account/abi, vm/runtime: abi fixes & simplified runtime calling mechanism
| * | core/vm/runtime: simplified runtime calling mechanismJeffrey Wilcke2016-02-113-18/+117
| | | | | | | | | | | | | | | | | | Implemented `runtime.Call` which uses - unlike Execute - the given state for the execution and the address of the contract you wish to execute. Unlike `Execute`, `Call` requires a config.
| * | accounts/abi: fixed return tuple and string, bytes return type parsingJeffrey Wilcke2016-02-113-30/+363
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Removed old unmarshalling of return types: `abi.Call(...).([]byte)`. This is now replaced by a new syntax: ``` var a []byte err := abi.Call(&a, ...) ``` It also addresses a few issues with Bytes and Strings and can also handle both fixed and arbitrary sized byte slices, including strings.
* | | Merge pull request #2195 from obscuren/gpo-rpcPéter Szilágyi2016-02-112-15/+14
|\ \ \ | | | | | | | | eth: Added GPO to suggest default gas prices
| * | | eth: Added GPO to suggest default gas pricesJeffrey Wilcke2016-02-102-15/+14
| |/ / | | | | | | | | | | | | | | | | | | | | | | | | This PR fixes a regression of the RPC where the default gas price that was being used for transaction wasn't properly using the GPO. This PR adds the GPO back to suggest gas prices rather than the hardcoded default of 10000000000000. Closes #2194