aboutsummaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Merge pull request #3605 from fjl/event-feedPéter Szilágyi2017-02-0315-49/+1256
|\ | | | | event: add new Subscription type and related utilities
| * event: address review issues (multiple commits)Felix Lange2017-02-033-16/+93
| | | | | | | | | | | | | | | | | | | | | | | | | | event: address Feed review issues event: clarify role of NewSubscription function event: more Feed review fixes * take sendLock after dropping f.mu * add constant for number of special cases event: fix subscribing/unsubscribing while Send is blocked
| * rpc: send nil on subscription Err channel when Client is closedFelix Lange2017-01-261-1/+4
| | | | | | | | | | This change makes client subscriptions compatible with the new Subscription semantics introduced in the previous commit.
| * event: add new Subscription type and related utilitiesFelix Lange2017-01-269-7/+1144
| | | | | | | | | | | | | | | | | | This commit introduces a new Subscription type, which is synonymous with ethereum.Subscription. It also adds a couple of utilities that make working with Subscriptions easier. The mot complex utility is Feed, a synchronisation device that implements broadcast subscriptions. Feed is slightly faster than TypeMux and will replace uses of TypeMux across the go-ethereum codebase in the future.
| * event: deprecate TypeMux and related typesFelix Lange2017-01-256-41/+31
| | | | | | | | | | | | | | | | | | | | | | The Subscription type is gone, all uses are replaced by *TypeMuxSubscription. This change is prep-work for the introduction of the new Subscription type in a later commit. gorename -from '"github.com/ethereum/go-ethereum/event"::Event' -to TypeMuxEvent gorename -from '"github.com/ethereum/go-ethereum/event"::muxsub' -to TypeMuxSubscription gofmt -w -r 'Subscription -> *TypeMuxSubscription' ./event/*.go find . -name '*.go' -and -not -regex '\./vendor/.*' \| xargs gofmt -w -r 'event.Subscription -> *event.TypeMuxSubscription'
* | params: core, core/vm, miner: 64bit gas instructions (#3514)Jeffrey Wilcke2017-02-0247-783/+1042
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Reworked the EVM gas instructions to use 64bit integers rather than arbitrary size big ints. All gas operations, be it additions, multiplications or divisions, are checked and guarded against 64 bit integer overflows. In additon, most of the protocol paramaters in the params package have been converted to uint64 and are now constants rather than variables. * common/math: added overflow check ops * core: vmenv, env renamed to evm * eth, internal/ethapi, les: unmetered eth_call and cancel methods * core/vm: implemented big.Int pool for evm instructions * core/vm: unexported intPool methods & verification methods * core/vm: added memoryGasCost overflow check and test
* | state: take write lock in GetNonce (#3625)Brian Schroeder2017-02-011-3/+5
| | | | | | | | We must take a write lock here because `GetNonce` calls `StateDB.GetStateObject`, which mutates the DB's live set.
* | params, VERSION: v1.5.9-unstableFelix Lange2017-02-012-5/+5
| |
* | params: v1.5.8-stableFelix Lange2017-02-011-4/+4
| |
* | Merge pull request #3607 from zsfelfoldi/light-fix2Felix Lange2017-02-017-80/+65
|\ \ | | | | | | les: fix private net issues, enable adding peers manually again
| * | les, cmd/util: disable topic discovery with --nodiscoverZsolt Felfoldi2017-01-272-5/+15
| | |
| * | les: remove delayed les server startingZsolt Felfoldi2017-01-264-37/+5
| | |
| * | les: add unknown peers to server pool instead of rejecting themZsolt Felfoldi2017-01-262-38/+45
| | |
* | | cmd/wnode, whisper: add whisper CLI tool and mail server (#3580)gluk2562017-01-318-30/+769
| | |
* | | Merge pull request #3615 from nolash/bzzpathfix_real5Péter Szilágyi2017-01-306-15/+187
|\ \ \ | | | | | | | | cmd/swarm, swarm/api: bzzr improve + networkid prio
| * | | swarm/api/http: add missing copyright headerPéter Szilágyi2017-01-301-0/+16
| | | |
| * | | cmd/swarm, swarm/api: bzzr improve + networkid prionolash2017-01-276-15/+171
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | fixes #3444 fixes #3494 networkid override Added comments to explain why test against 0 appears twice * Command line overrides saved config, saved config overrides system default --- fixes #3476 bzzr get with path Finally a hopefully clean commit for this PR Added check for empty path to avoid SIGSEGV in path parser and resolver Added requested tests for empty path and non-existing manifest. However signature for StartHTTPServer had changed. Now it's hacked as so: StartHttpServer(api.API, &Server{Addr: "127.0.0.1:8504", CorsString: ""}) * Parse url before resolve when path and ENS is supplied, example * swarm/api/http proxy server test for retrieval of subpath through get * Removed nil entry assignment on subtrie leaf in recursive key retrieval * Cleaned up path-or-no-path condition in proxy server get handler * swarm: processed with gofmt refers to lash/go-ethereum@90daa7a * swarm: Added public access method Parse alias to parse * swarm: processed with gofmt References nolash/go-ethereum@2ec3fd7 * Rename parse to Parse, removed alias
* | | | Merge pull request #3624 from kaneshin/patch-01Péter Szilágyi2017-01-302-0/+2
|\ \ \ \ | | | | | | | | | | cmd/geth, cmd/swarm: Fix to close file handler appropriately
| * | | | cmd/geth, cmd/swarm: Fix to close file handler appropriatelyShintaro Kaneko2017-01-302-0/+2
| | | | |
* | | | | Merge pull request #3623 from kaneshin/patch-1Péter Szilágyi2017-01-301-1/+1
|\ \ \ \ \ | |/ / / / |/| | | | build: Fix tiny typo
| * | | | build: Fix tiny typoShintaro Kaneko2017-01-301-1/+1
|/ / / /
* / / / core/types: add unittest for tx json serialization (#3609)bas-vk2017-01-271-1/+43
|/ / /
* / / core: fix a small typo in blockchain.go (#3611)Vivek Anand2017-01-261-1/+1
|/ /
* / console, internal/web3ext: remove bzz and ens extensions (#3602)Felix Lange2017-01-252-97/+4
|/ | | | | web3.js includes bzz methods and throws an error when the extension module is reregistered. The ENS RPC API is deprecated and not exposed by anything.
* eth/downloader: improve deliverNodeData (#3588)Felix Lange2017-01-241-72/+52
| | | | | Commit d3b751e accidentally deleted a crucial 'return' statement, leading to a crash in case of an issue with node data. This change improves the fix in PR #3591 by removing the lock entirely.
* Merge pull request #3599 from karalabe/docker-alpine-cacertsPéter Szilágyi2017-01-244-28/+24
|\ | | | | containers/docker: update base images, add CA certs, build internally on Ubuntu
| * containers/docker: update ubuntu images to build, not pullPéter Szilágyi2017-01-232-24/+20
| |
| * containers/docker: update to alpine 3.5, add CA certificatesPéter Szilágyi2017-01-232-4/+4
| |
* | core/types: make Transaction zero value printable (#3595)Felix Lange2017-01-241-14/+18
|/
* crypto/secp256k1: sign with deterministic K (rfc6979) (#3561)Felix Lange2017-01-232-8/+22
|
* cmd/evm: added debug flag (back) (#3554)Martin Holst Swende2017-01-231-0/+2
| | | | | | * evm: added debug flag (back) * cmd/evm: gofmt
* accounts/abi/bind, internal/ethapi: binary search gas estimation (#3587)Péter Szilágyi2017-01-213-9/+100
| | | | | | | | | | | | | Gas estimation currently mostly works, but can underestimate for more funky refunds. This is because various ops (e.g. CALL) need more gas to run than they actually consume (e.g. 2300 stipend that is refunded if not used). With more intricate contract interplays, it becomes almost impossible to return a proper value to the user. This commit swaps out the simplistic gas estimation to a binary search approach, honing in on the correct gas use. This does mean that gas estimation needs to rerun the transaction log(max-price) times to measure whether it fails or not, but it's a price paid by the transaction issuer, and it should be worth it to support proper estimates.
* types: bugfix invalid V derivation on tx json unmarshal (#3594)bas-vk2017-01-212-2/+3
|
* internal/guide: initial test suite to ensure guide snippets run ok (#3582)Péter Szilágyi2017-01-202-0/+118
|
* travis: Install Android NDK explicitly, removed from gomobile (#3593)Péter Szilágyi2017-01-202-2/+10
| | | | | | The Android NDK was recently removed from gomobile, leading to our Android builds failing. Starting from https://go-review.googlesource.com/#/c/35173/ , gomobile requires a locally installed NDK. This PR ensures that travis installs that too before running the build steps.
* eth/downloader: fix mutex regression causing panics on fail (#3591)Péter Szilágyi2017-01-201-1/+2
|
* Merge pull request #3584 from obscuren/dead-codePéter Szilágyi2017-01-181-3/+0
|\ | | | | core: removal of dead-code
| * core: removal of dead-codeJeffrey Wilcke2017-01-181-3/+0
|/ | | | | | Removal of dead code that appeard as if we had a consensus issue. This however is not the case as the proper error catching happens in the vm package instead.
* Merge pull request #3579 from bas-vk/natspecPéter Szilágyi2017-01-178-23/+3
|\ | | | | cmd,eth,les,internal: remove natspec support
| * cmd,eth,les,internal: remove natspec supportBas van Kervel2017-01-178-23/+3
| |
* | core/blockchain: Made logging of reorgs more structured (#3573)Martin Holst Swende2017-01-171-6/+13
| | | | | | | | | | | | | | | | * core: Made logging of reorgs more structured, also always log if reorg is > 63 blocks long * core/blockchain: go fmt * core/blockchain: Minor fixes to the reorg reporting
* | Merge pull request #3581 from karalabe/accounts-polishPéter Szilágyi2017-01-173-8/+8
|\ \ | | | | | | accounts, mobile: make account manager API a bit more uniform
| * | accounts, mobile: make account manager API a bit more uniformPéter Szilágyi2017-01-173-8/+8
| |/
* / cmd/geth, core: add support for recording SHA3 preimages (#3543)Nick Johnson2017-01-1729-46/+156
|/
* params, VERSION: 1.5.8 unstableFelix Lange2017-01-162-5/+5
|
* params: stable 1.5.7Felix Lange2017-01-161-4/+4
|
* les: fixed transaction sending deadlock (#3568)Felföldi Zsolt2017-01-161-1/+0
|
* Merge pull request #3570 from fjl/hexutil-zero-fixPéter Szilágyi2017-01-163-13/+4
|\ | | | | common/hexutil: fix EncodeBig, Big.MarshalJSON
| * common/hexutil: fix EncodeBig, Big.MarshalJSONFelix Lange2017-01-163-13/+4
| | | | | | | | | | The code was too clever and failed to include zeros on a big.Word boundary.
* | Merge pull request #3560 from karalabe/ci-misspellPéter Szilágyi2017-01-133-4/+35
|\ \ | |/ |/| travis, appveyor, build: add source spell checking
| * appveyor, build: fix review requestsPéter Szilágyi2017-01-132-25/+31
| |
| * build: spellcheck individual packages (Windows path limits)Péter Szilágyi2017-01-131-7/+9
| |
| * accounts/abi: fix comment spelling errorPéter Szilágyi2017-01-131-1/+1
| |
| * travis, appveyor, build: add source spell checkingPéter Szilágyi2017-01-133-3/+26
| |
* | common/hexutil: allow empty strings when decoding JSON (#3559)Felix Lange2017-01-132-5/+5
|/
* eth: accept leading zeros for nonce parameter of submitWork (#3558)Felix Lange2017-01-134-6/+8
|
* crypto/secp256k1: update to github.com/bitcoin-core/secp256k1 @ 9d560f9 (#3544)Felix Lange2017-01-1379-1998/+8229
| | | | | - Use defined constants instead of hard-coding their integer value. - Allocate secp256k1 structs on the C stack instead of converting []byte - Remove dead code
* internal: update web3.js to 0.18.1, embed deps with go-bindata (#3545)Péter Szilágyi2017-01-136-327/+774
|
* Merge pull request #3555 from obscuren/unskip-testPéter Szilágyi2017-01-121-1/+1
|\ | | | | tests: unskip test
| * tests: unskip testJeffrey Wilcke2017-01-121-1/+1
| |
* | Merge pull request #3553 from bas-vk/rm-olympic-supportPéter Szilágyi2017-01-126-62/+15
|\ \ | | | | | | core: remove support for Olympic network
| * | core: remove support for Olympic networkBas van Kervel2017-01-126-62/+15
|/ /
* | Merge pull request #3551 from fjl/core-import-log-alignPéter Szilágyi2017-01-112-10/+8
|\ \ | | | | | | core: improve import log alignment
| * | core: improve import log alignmentFelix Lange2017-01-112-10/+8
| |/
* | ethdb: Implement interface for prefixed operations to the DB (#3536)Nick Johnson2017-01-111-0/+52
| |
* | internal/ethapi: fix duration parameter of personal_unlockAccount (#3542)Felix Lange2017-01-111-5/+8
| |
* | Merge pull request #3546 from fjl/deps-updatePéter Szilágyi2017-01-11130-1030/+14047
|\ \ | | | | | | vendor: update dependencies
| * | vendor: update all dependencies except Azure SDKFelix Lange2017-01-11130-1030/+14047
| |/ | | | | | | | | The Azure SDK doesn't support Go 1.5 anymore. We can't upgrade it until Go 1.8 comes out.
* | Merge pull request #3548 from fjl/geth-fix-bootnodesPéter Szilágyi2017-01-111-4/+4
|\ \ | |/ |/| cmd/utils: fix comma-separated --bootnodes
| * cmd/utils: fix comma-separated --bootnodesFelix Lange2017-01-111-4/+4
|/
* Merge pull request #3535 from fjl/all-ineffassignPéter Szilágyi2017-01-1034-186/+110
|\ | | | | all: fix ineffectual assignments
| * all: fix ineffectual assignments and remove uses of crypto.Sha3Felix Lange2017-01-0931-103/+108
| | | | | | | | | | go get github.com/gordonklaus/ineffassign ineffassign .
| * generators: delete dead codeFelix Lange2017-01-091-81/+0
| | | | | | | | We don't use this anymore.
| * build, node: fix go vet nitsFelix Lange2017-01-092-2/+2
| |
* | Merge pull request #3538 from karalabe/cycle-1.5.7Péter Szilágyi2017-01-092-5/+5
|\ \ | | | | | | params, VERSION: start 1.5.7 release cycle
| * | params, VERSION: start 1.5.7 release cyclePéter Szilágyi2017-01-092-5/+5
|/ /
* | Merge pull request #3537 from karalabe/release-1.5.6Péter Szilágyi2017-01-091-4/+4
|\ \ | | | | | | params: stable version 1.5.6
| * | params: stable version 1.5.6Péter Szilágyi2017-01-091-4/+4
|/ /
* | Merge pull request #3519 from zsfelfoldi/light-topic5Péter Szilágyi2017-01-0911-137/+290
|\ \ | | | | | | les: fixed selectPeer deadlock, improved request distribution
| * | light: fixed data race in TestTxPoolZsolt Felfoldi2017-01-061-16/+19
| | |
| * | les: fixed selectPeer deadlock, improved request distributionZsolt Felfoldi2017-01-0610-121/+271
| | | | | | | | | | | | les/flowcontrol: using proper types for relative and absolute times
* | | Merge pull request #3534 from bas-vk/writemipmapracePéter Szilágyi2017-01-091-0/+6
|\ \ \ | | | | | | | | core: fix race condition in WriteMipmapBloom
| * | | core: fix race condition in WriteMipmapBloomBas van Kervel2017-01-091-0/+6
| | | |
* | | | cmd/swarm: uploader uses HTTP PUT for directories (#3488)Viktor Trón2017-01-091-26/+56
| |_|/ |/| |
* | | Merge pull request #3529 from fjl/console-error-fixPéter Szilágyi2017-01-091-12/+5
|\ \ \ | |/ / |/| | console: fix error message in faux JSON-RPC responses
| * | console: fix error message in faux JSON-RPC responsesFelix Lange2017-01-081-12/+5
| | | | | | | | | | | | | | | The message was used as both key and value in the error object. This only affected unusual errors with no error code.
* | | Merge pull request #3533 from karalabe/modum-io-develop-2Péter Szilágyi2017-01-094-17/+93
|\ \ \ | | | | | | | | accounts/abi: support custom int slice types
| * | | accounts/abi: fixed broken types slice testcasesThomas Bocek2017-01-092-14/+19
| | | | | | | | | | | | | | | | | | | | Check for slice in type as well and adapted test case as arrays also store its types.
| * | | accounts/abi: fixed commentsJeffrey Wilcke2017-01-092-5/+5
| | | |
| * | | accounts/abi: added testcase to unpack []uint32tbocek2017-01-091-0/+24
| | | |
| * | | accounts/abi: support custom int slice typesThomas Bocek2017-01-092-4/+51
|/ / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | On solidity contract I have "uint32 []" type, when abigen creates Go bindings - they are also "[]uint32" type on Go side. Even though it looks like it should work - the actual type of the data coming from the chain is of type " []*big.Int". When executing contract function from Go side - getting unmarshal error: abi: cannot unmarshal []*big.Int in to []uint32 The fix is to create array with the correct type This fixed the issue reported in: https://github.com/ethereum/go-ethereum/issues/2802
* | | node: fix pointer dereference issue in StartRPC (#3532)Victor Farazdagi2017-01-081-1/+1
| | |
* | | cmd/disasm: fix array-out-of-bounds error (#3491)Valentin Wüstholz2017-01-081-4/+8
|/ /
* | Merge pull request #3526 from karalabe/misspellPéter Szilágyi2017-01-0740-65/+65
|\ \ | | | | | | all: fix spelling errors
| * | all: fix spelling errorsPéter Szilágyi2017-01-0740-65/+65
|/ /
* | Merge pull request #3525 from fjl/all-gosimple-cleanupPéter Szilágyi2017-01-07118-1976/+444
|\ \ | | | | | | all: clean up lint issues, remove more dead code
| * | logger, pow/dagger, pow/ezp: delete dead codeFelix Lange2017-01-0720-1440/+3
| | |
| * | all: fix issues reported by honnef.co/go/simple/cmd/gosimpleFelix Lange2017-01-0746-194/+99
| | |
| * | all: gofmt -w -sFelix Lange2017-01-0664-343/+343
| | |
* | | Merge pull request #3524 from karalabe/mobile-signwith-swift-fixupPéter Szilágyi2017-01-072-4/+4
|\ \ \ | |/ / |/| | mobile: rename passphrase signing method to avoid Swift rewrite
| * | mobile: rename passphrase signing method to avoid Swift rewritePéter Szilágyi2017-01-062-4/+4
|/ /
* | common/compiler: remove workaround for solc 0.3.5 stdin bug (#3522)Felix Lange2017-01-062-36/+22
| | | | | | | | | | | | | | | | | | The crash when compiling stdin was fixed in solc 0.3.6 (released 2016-08-10). While here, simplify the test so it runs with any solc version. Fixes #3484. The byte code was different for each run because recent solc embeds the swarm hash of contract metadata into the code. When compiling from stdin the name in the metadata is constant.
* | Merge pull request #3516 from fjl/types-drop-sign-ecdsaPéter Szilágyi2017-01-0616-99/+58
|\ \ | | | | | | core/types: remove redundant SignECDSA wrappers, rename to SignTx
| * | core/types: remove redundant SignECDSA wrappers, rename to SignTxFelix Lange2017-01-0516-99/+58
| | |
* | | Merge pull request #3518 from fjl/ethclient-dependency-cleanupPéter Szilágyi2017-01-0645-268/+245
|\ \ \ | |_|/ |/| | core/types: dependency cleanup
| * | trie: remove dependency on ethdbFelix Lange2017-01-066-37/+37
| | | | | | | | | | | | This removes the core/types -> leveldb dependency.
| * | core/vm: move Log to core/typesFelix Lange2017-01-0636-193/+180
| | | | | | | | | | | | | | | | | | | | | | | | 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.
| * | params: avoid importing p2p/discover for bootnodesFelix Lange2017-01-063-38/+28
| |/ | | | | | | | | params is imported by leaf-ish library packages and should not pull in the p2p stack.
* | Merge pull request #3517 from karalabe/empty-ios-prefixPéter Szilágyi2017-01-051-1/+1
|\ \ | | | | | | build: finally settle on empty iOS ObjC package prefixes
| * | build: finally settle on empty iOS ObjC package prefixesPéter Szilágyi2017-01-051-1/+1
|/ /
* | Merge pull request #3417 from karalabe/mobile-polishesPéter Szilágyi2017-01-055-28/+54
|\ \ | | | | | | Account management API polishes
| * | accounts, internal, mobile: polish accounts API, extend Android testsPéter Szilágyi2017-01-055-28/+54
| | |
* | | swarm/api/http: add support for CORS headers (#3388)Maran2017-01-053-15/+49
|/ /
* | Merge pull request #3515 from bas-vk/exportropstenPéter Szilágyi2017-01-053-1/+13
|\ \ | |/ |/| core,cmd/utils: bugfix for ropsten dump imports
| * core,cmd/utils: bugfix for ropsten dump importsBas van Kervel2017-01-053-1/+13
| |
* | core/vm: improved EVM run loop & instruction calling (#3378)Jeffrey Wilcke2017-01-0544-1996/+1653
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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/abi: add support for function types (#3405)RJ2017-01-054-4/+24
| |
* | cmd/utils: disallow `--fakepow` for live operation (#3512)Péter Szilágyi2017-01-051-1/+0
| |
* | accounts, core, crypto, internal: use normalised V during signature handling ↵Péter Szilágyi2017-01-0510-201/+91
|/ | | | | | | | | (#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.
* Merge pull request #3511 from karalabe/live-fakepowPéter Szilágyi2017-01-043-10/+11
|\ | | | | cmd/utils, eth, les: bubble --fakepow flag into eth/les too
| * cmd/utils, eth, les: bubble --fakepow flag into eth/les tooPéter Szilágyi2017-01-043-10/+11
| |
* | Merge pull request #3505 from bas-vk/txinblockPéter Szilágyi2017-01-041-1/+1
|\ \ | |/ |/| ethclient: hex encode request args for TransactionInBlock
| * ethclient: hex encode request args for TransactionInBlockBas van Kervel2017-01-031-1/+1
| |
* | Merge pull request #3486 from bas-vk/txbyhashPéter Szilágyi2017-01-031-1/+1
|\ \ | | | | | | ethclient: pass ptr when parsing eth_getTransactionByHash result
| * | ethclient: pass ptr when parsing eth_getTransactionByHash resultBas van Kervel2016-12-221-1/+1
| | |
* | | mobile: add SetVerbosity (#3492)Guillaume NICOLAS2017-01-031-0/+26
| |/ |/|
* | Merge pull request #3490 from karalabe/fix-miner-apiPéter Szilágyi2016-12-231-2/+2
|\ \ | | | | | | eth: fix miner start API to accept int, not hexint
| * | eth: fix miner start API to accept int, not hexintPéter Szilágyi2016-12-231-2/+2
|/ /
* | Merge pull request #3475 from fjl/rpc-hex-improvementsPéter Szilágyi2016-12-2213-637/+287
|\ \ | |/ |/| rpc: remove HexBytes, HexNumber
| * internal/ethapi: fix hex handling for eth_call input and eth_sendRawTransactionFelix Lange2016-12-202-6/+6
| |
| * rpc: remove HexNumber, replace all uses with hexutil typesFelix Lange2016-12-2011-534/+234
| | | | | | | | | | 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-204-66/+15
| |
| * rpc: improve error messages for invalid argumentsFelix Lange2016-12-201-31/+32
| | | | | | | | The message now includes the index of the invalid arg.
| * 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.
* | accounts/abi: add support for "anonymous" and "indexed" for events (#3464)bas-vk2016-12-224-20/+61
| |
* | cmd/disasm: fix off-by-one error and improve error handling (#3482)Valentin Wüstholz2016-12-221-2/+7
| |
* | swarm/http: check error returned by reader.Size (#3470)Aron Fischer2016-12-221-1/+13
| |
* | swarm/storage: call size before seek-from-end (#3469)Aron Fischer2016-12-221-2/+5
| |
* | swarm/api: check for zero length manifest error (#3468)Aron Fischer2016-12-221-0/+5
| |
* | Merge pull request #3479 from karalabe/android-ropsten-daoPéter Szilágyi2016-12-211-1/+1
|\ \ | |/ |/| mobile: fix ropsten chain configs
| * mobile: fix ropsten chain configsPéter Szilágyi2016-12-211-1/+1
|/
* eth, miner: verify PoW in the remote agent to notify submitter (#3438)Péter Szilágyi2016-12-202-13/+22
|
* eth/filters: add FindOnce for iterator-like operation (#3435)Nick Johnson2016-12-201-20/+50
| | | | | | | | | | | This commit introduces a FindOnce method for filters. FindOnce finds the next block that matches the filter and returns all matching logs from that block. If there are no further matching logs, it returns a nil slice. This method allows callers to iterate over large sets of logs progressively. The changes introduce a small inefficiency relating to mipmaps: the first time a filter is called, it acts as if all mipmaps are matched, and thus iterates several blocks near the requested start point. This is in the interest of simplicity and avoiding duplicate mipmap lookups each time FindOnce is called.
* whisper: refactoring (#3411)gluk2562016-12-2012-66/+253
| | | | | | | | | * whisper: refactored message processing * whisper: final polishing * whisper: logging updated * whisper: moved the check, changed the default PoW * whisper: refactoring of message queuing * whisper: refactored parameters
* Merge pull request #3403 from VoR0220/fixedPointsAbiPéter Szilágyi2016-12-192-7/+85
|\ | | | | accounts/abi: prepare ABI to handle fixed point types
| * accounts/abi: clean up PR and add type parsing testsPéter Szilágyi2016-12-192-5/+82
| |
| * accounts/abi: prepare ABI to handle fixed point typesVoR02202016-12-191-5/+6
| | | | | | | | Signed-off-by: VoR0220 <rj@erisindustries.com>
* | Merge pull request #3454 from karalabe/allow-zeroprice-txPéter Szilágyi2016-12-193-32/+9
|\ \ | | | | | | core: allow zero priced transactions from inexistent accounts too
| * | core, light: allow zero cost txs from inexistent accounts tooPéter Szilágyi2016-12-163-32/+9
| | |
* | | Merge pull request #3453 from fjl/api-sign-recover-hexPéter Szilágyi2016-12-191-29/+14
|\ \ \ | |/ / |/| | internal/ethapi: fix hex handling for eth_sign, personal_{sign,recover}
| * | internal/ethapi: fix hex handling for eth_sign, personal_{sign,recover}Felix Lange2016-12-161-29/+14
|/ /
* | Merge pull request #3445 from karalabe/govet-ip-signalPéter Szilágyi2016-12-151-2/+1
|\ \ | | | | | | p2p/nat: fix a bytes based net.IP comparison
| * | p2p/nat: fix a bytes based net.IP comparisonPéter Szilágyi2016-12-151-2/+1
| | |
* | | Merge pull request #3442 from karalabe/discv5-fix-ip-comparisonPéter Szilágyi2016-12-154-5/+4
|\| | | | | | | | p2p/discover, p2p/discv5: use flexible comparison for IPs
| * | p2p/discover, p2p/discv5: use flexible comparison for IPsPéter Szilágyi2016-12-154-5/+4
|/ /
* | Merge pull request #3433 from karalabe/badblock-order-fixPéter Szilágyi2016-12-142-3/+40
|\ \ | | | | | | core: import future blocks one-by-one, enfore chain ancestry
| * | core: import future blocks one-by-one, enfore chain ancestryPéter Szilágyi2016-12-132-3/+40
| | |
* | | Merge pull request #3441 from karalabe/begin-1.5.6-cyclePéter Szilágyi2016-12-142-5/+5
|\ \ \ | | | | | | | | VERSION, params: start Geth 1.5.6 development cycle
| * | | VERSION, params: start Geth 1.5.6 development cyclePéter Szilágyi2016-12-142-5/+5
|/ / /
* | | Merge pull request #3440 from karalabe/release-1.5.5Péter Szilágyi2016-12-141-4/+4
|\ \ \ | | | | | | | | params: stable version 1.5.5
| * | | params: stable version 1.5.5Péter Szilágyi2016-12-141-4/+4
|/ / /
* | | Merge pull request #3430 from karalabe/miner-pending-racePéter Szilágyi2016-12-143-74/+217
|\ \ \ | | | | | | | | miner: clean up unconfirmed mined block tracking
| * | | miner: rename pending to unconformed, add bounds and ops testsPéter Szilágyi2016-12-133-30/+117
| | | |
| * | | miner: clean up unconfirmed mined block trackingPéter Szilágyi2016-12-132-74/+130
| |/ /
* | | Merge pull request #3421 from ethersphere/s/swarm-cmdPéter Szilágyi2016-12-146-76/+178
|\ \ \ | | | | | | | | cmd/swarm: one command with subcommands
| * | | cmd/swarm: testnet bootnodes IP address changezelig2016-12-141-5/+5
| | | |
| * | | cmd/swarm: improve uploader output and add defaultpath optionzelig2016-12-132-22/+68
| | | |
| * | | cmd/swarm: ethapi not requiredzelig2016-12-131-6/+4
| | | |
| * | | cmd/swarm: trim trailing slash from bzzapi urlzelig2016-12-131-1/+1
| | | |
| * | | cmd/swarm: add default bootnodes for testnet 3zelig2016-12-131-6/+13
| | | |
| * | | swarm/network, cmd/swarm: swarm default network id is 3 (to match Ropsten)zelig2016-12-132-2/+2
| | | |
| * | | build: add swarm command to binary packages, update READMEzelig2016-12-132-16/+4
| | | |
| * | | cmd/swarm: subsume cmd/bzz* as subcommands under swarmzelig2016-12-133-27/+90
| | | | | | | | | | | | | | | | cmd/swarm: subsume cmd/bzz* under cmd/swarm as subcommands
* | | | Merge pull request #3439 from karalabe/drop-deprecated-wilyPéter Szilágyi2016-12-141-1/+2
|\ \ \ \ | | | | | | | | | | build: Ubuntu wily was officially deprecated, drop support
| * | | | build: Ubuntu wily was officially deprecated, drop supportPéter Szilágyi2016-12-141-1/+2
|/ / / /
* | | | Merge pull request #3429 from bas-vk/txpool-crashPéter Szilágyi2016-12-141-10/+4
|\ \ \ \ | | | | | | | | | | core: init pending state in tx pool on creation
| * | | | core: init pending state in tx pool on creationBas van Kervel2016-12-131-10/+4
| |/ / /
* | | | Merge pull request #3427 from Arachnid/gzipdumpPéter Szilágyi2016-12-142-5/+45
|\ \ \ \ | | | | | | | | | | cmd/utils, eth: Add gzip support for chain dump and restore
| * | | | cmd/utils, eth: Add gzip support for chain dump and restoreNick Johnson2016-12-142-5/+45
| | | | |
* | | | | Merge pull request #3437 from karalabe/update-ci-go1.7.4Péter Szilágyi2016-12-142-6/+6
|\ \ \ \ \ | | | | | | | | | | | | travis, appveyor: build with Go 1.7.4
| * | | | | travis, appveyor: build with Go 1.7.4Péter Szilágyi2016-12-142-6/+6
|/ / / / /
* | | | | Merge pull request #3434 from karalabe/drop-legacy-androidPéter Szilágyi2016-12-143-126/+0
|\ \ \ \ \ | |_|_|/ / |/| | | | cmd/geth: drop legacy android code
| * | | | cmd/geth: drop legacy android codePéter Szilágyi2016-12-143-126/+0
|/ / / /
* | | | Merge pull request #3431 from karalabe/miner-race-fixesPéter Szilágyi2016-12-133-21/+26
|\ \ \ \ | |_|/ / |/| | | Miner race fixes
| * | | miner: fix data race on setting etherbase/extradataPéter Szilágyi2016-12-132-10/+12
| | | |
| * | | miner: fix a race between remote agent start/loopPéter Szilágyi2016-12-131-11/+14
|/ / /
* | | Merge pull request #3413 from zsfelfoldi/light-topic4Felix Lange2016-12-1321-546/+1913
|\ \ \ | |/ / |/| | les, p2p/discv5: implement server pool, improve peer selection, light fetcher and topic searching
| * | les, light: add block availability check for ODR requestsZsolt Felfoldi2016-12-107-14/+71
| | |
| * | eth, les: defer starting LES service until ETH initial sync is finishedZsolt Felfoldi2016-12-105-5/+42
| | |
| * | les: using random request IDsZsolt Felfoldi2016-12-103-11/+10
| | |
| * | les: improved header fetcher and server statisticsZsolt Felfoldi2016-12-1010-481/+812
| | |
| * | les: fixed light fetcher request ID matchingZsolt Felfoldi2016-12-082-5/+11
| | |
| * | p2p/discv5: search and lookup improvementZsolt Felfoldi2016-12-082-64/+99
| | |
| * | les: implement light server poolZsolt Felfoldi2016-12-085-45/+947
| | |
* | | Merge pull request #3425 from karalabe/netstats-time-fixupPéter Szilágyi2016-12-121-38/+197
|\ \ \ | | | | | | | | netstats: time and block history
| * | | ethstats: implement block history retrievalsPéter Szilágyi2016-12-121-38/+190
| | | |
| * | | ethstats: fix timestamps and add custom proto supportPéter Szilágyi2016-12-121-1/+8
|/ / /
* | | build: safe update of PATH on Windows (#3419)bas-vk2016-12-115-3/+164
| | | | | | | | | | | | | | | | | | | | | NSIS has a default MAX_STR_LEN of 1024. If $ENV{PATH} is longer the returned string is truncated to an empty string. Its then not possible to distinguis between the variable not set or too long. As a result the variable is set with the location where geth and/or dev tools are installed. This may override any previous set values.
* | | core: bugfix state change race condition in txpool (#3412)bas-vk2016-12-1112-56/+171
|/ / | | | | | | | | | | | | | | 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.
* | mobile: iOS naming and API fixes for generators and Swift (#3408)Péter Szilágyi2016-12-0815-147/+151
| | | | | | | | | | * build: modify the iOS namespace to iGeth (gomobile limitation) * mobile: assign names to return types for ObjC wrapper * mobile: use more expanded names for iOS/Swift API
* | core, core/vm: implemented a generic environment (#3348)Jeffrey Wilcke2016-12-0639-1253/+952
| | | | | | | | | | | | | | | | 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.
* | Merge pull request #3402 from fjl/ethclient-api-fixesFelix Lange2016-12-0612-190/+327
|\ \ | |/ |/| eth/filters, ethclient, ethereum: API improvements
| * ethereum: document use of Removed field for SubscribeFilterLogsFelix Lange2016-12-051-0/+3
| |
| * core, core/vm, eth/filters: move Removed field into vm.LogFelix Lange2016-12-058-165/+252
| | | | | | | | | | | | | | | | | | | | | | | | This field used to be assigned by the filter system and returned through the RPC API. Now that we have a Go client that uses the underlying type, the field needs to move. It is now assigned to true when the RemovedLogs event is generated so the filter system doesn't need to care about the field at all. While here, remove the log list from ChainSideEvent. There are no users of this field right now and any potential users could subscribe to RemovedLogsEvent instead.
| * ethclient, ethereum: add NotFound, split transactions out of ChainReaderFelix Lange2016-12-054-23/+67
| | | | | | | | | | | | | | | | | | ethclient now returns ethereum.NotFound if the server returns null and no error while accessing blockchain data. The light client cannot provide arbitrary transactions. The change to split transaction access into its own interface emphasizes that transactions should not be relied on and recommends use of logs.
| * ethclient: use package hexutil for number encodingFelix Lange2016-12-051-2/+2
| |
| * ethclient: don't crash if server returns null uncle headerFelix Lange2016-12-051-0/+3
|/ | | | | It should never return null for a known uncle, but even if it does we can't just crash.
* whisper/shhapi, whisper/whisperv5: refactoring (#3364)gluk2562016-12-0214-650/+828
| | | | | | | | | | * Filter refactoring * API tests added + bugfix * fixed the error logs * FilterID fixed * test cases fixed * key generation updated * POW updated * got rid of redundant stuff
* swarm/api: Update ENS root address for Ropsten & prod (#3391)Nick Johnson2016-12-022-5/+4
|
* Merge pull request #3390 from bas-vk/statsd-stopPéter Szilágyi2016-12-011-1/+9
|\ | | | | ethstats: check if received event is valid
| * ethstats: check if received event is validBas van Kervel2016-12-011-1/+9
| |
* | README: removed develop mentionsMaran2016-12-011-3/+1
|/
* cmd/geth: tidied up the source (#3385)Péter Szilágyi2016-11-303-133/+174
| | | cmd/geth: tidied up the source
* Merge pull request #3373 from karalabe/ethstats-block-fieldsPéter Szilágyi2016-11-301-16/+16
|\ | | | | ethstats: don't drop concurrent head reports (mini forks)
| * ethstats: don't drop concurrent head reports (mini forks)Péter Szilágyi2016-11-291-16/+16
| |
* | Merge pull request #3368 from bas-vk/sha3Péter Szilágyi2016-11-301-3/+3
|\ \ | | | | | | node: improve error handling for web3_sha3 RPC method
| * | node: improve error handling for web3_sha3 RPC methodBas van Kervel2016-11-291-3/+3
| | |
* | | eth, miner: removed unnecessary state.Copy()Martin Holst Swende2016-11-303-2/+26
| | | | | | | | | | | | | | | | | | | | | | | | * miner: removed unnecessary state.Copy() * eth: made use of new miner method without state copying * miner: More documentation about new method
* | | cmd/utils: update helpscreen's testnet description (#3377)Luca Zeug2016-11-291-1/+1
| | |
* | | Merge pull request #3376 from karalabe/drop-dao-flagsPéter Szilágyi2016-11-293-88/+17
|\ \ \ | |_|/ |/| | cmd: drop DAO related choice flags since ETC diverged
| * | cmd: drop DAO related choice flags since ETC divergedPéter Szilágyi2016-11-293-88/+17
|/ /
* | Merge pull request #3370 from karalabe/ethstats-block-fieldsPéter Szilágyi2016-11-291-6/+12
|\ \ | | | | | | ethstats: report block miner, gas limit and gas consumption
| * | ethstats: report block miner, gas limit and gas consumptionPéter Szilágyi2016-11-291-6/+12
|/ /
* / core/types: Document Transaction.To (#3366)Steven Roose2016-11-291-0/+2
|/
* VERSION, params: bump unstable version 1.5.5 (#3361)Jeffrey Wilcke2016-11-282-5/+5
|
* params: stable version 1.5.4 (#3360)Jeffrey Wilcke2016-11-281-4/+4
|
* eth/filter: add support for pending logs (#3219)bas-vk2016-11-287-92/+319
|
* common/hexutil: fix Test{Decode,Unmarshal}Uint64 on 32bit arch (#3363)Felix Lange2016-11-282-2/+2
|
* cmd/bzzd: swarm daemon fixes (#3359)Viktor Trón2016-11-287-46/+56
| | | | | | | | | | | | * 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
* Merge pull request #3355 from fjl/hexutil-2Péter Szilágyi2016-11-2817-566/+1125
|\ | | | | Improve hex encoding/decoding
| * ethclient: "addresses" -> "address" in filter query encodingFelix Lange2016-11-281-1/+1
| |
| * eth/filters: simplify query object decodingFelix Lange2016-11-281-47/+44
| |
| * accounts: don't use common.Address for address fieldFelix Lange2016-11-281-4/+5
| | | | | | | | | | common.Address JSON encoding now enforces the 0x prefix, but key files don't have the prefix.
| * common: use package hexutil for fixed size type encodingFelix Lange2016-11-282-60/+30
| |
| * ethclient: use package hexutil for JSON handlingFelix Lange2016-11-281-34/+35
| |
| * core/types: use package hexutil for JSON handlingFelix Lange2016-11-286-392/+40
| |
| * core/vm: use package hexutil for JSON handlingFelix Lange2016-11-282-28/+23
| |
| * common/hexutil: new package for 0x hex encodingFelix Lange2016-11-284-0/+947
| | | | | | | | | | The new package is purpose-built to handle the encoding consumed and produced by the RPC API.
* | Merge pull request #3362 from karalabe/cocoapods-fix-3000Péter Szilágyi2016-11-282-8/+6
|\ \ | | | | | | build: use single CocoaPods package, pre-release dev builds
| * | build: use single CocoaPods package, pre-release dev buildsPéter Szilágyi2016-11-282-8/+6
|/ /
* | light: implemented VMState.Empty() (#3357)Felföldi Zsolt2016-11-282-2/+14
| |
* | build/ci: add swarm related executables (bzzd, bzzup, bzzhash) to binary ↵Viktor Trón2016-11-281-0/+15
|/ | | | packages (#3354)
* core: fixed unwinding bad hash (#3347)Jeffrey Wilcke2016-11-281-3/+8
| | | Fixed unwinding of bad hashes when already on the canon chain
* Merge pull request #3356 from fjl/accounts-no-watch-on-windowsPéter Szilágyi2016-11-282-2/+2
|\ | | | | accounts: disable file system watcher on windows
| * accounts: disable file system watcher on windowsFelix Lange2016-11-282-2/+2
| | | | | | | | | | The watcher is unreliable and causes test failures on Windows. Disable it until we have a better solution.
* | Merge pull request #3352 from fjl/build-git-tagPéter Szilágyi2016-11-281-1/+6
|\ \ | | | | | | internal/build: use 'git tag --points-at' to get the current tag
| * | 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.
* / core: eip unit tests (#3309)Jeffrey Wilcke2016-11-281-7/+71
|/
* cmd, ethstats, les, mobile, params: native netstats (#3336)Péter Szilágyi2016-11-258-46/+533
|
* Merge pull request #3325 from fjl/p2p-netrestrictFelix Lange2016-11-2525-230/+643
|\ | | | | Prevent relay of invalid IPs, add --netrestrict