aboutsummaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* swarm/api/http: Fix using deprecated bzzr scheme (#16152)Lewis Marshall2018-02-231-1/+1
| | | | | Without this, deprecated bzzr requests just return an empty response. Signed-off-by: Lewis Marshall <lewis@lmars.net>
* Merge pull request #16172 from gluk256/244-light-clientgluk2562018-02-232-4/+19
|\ | | | | whisper: light client mode introduced
| * whisper: light client mode introducedVlad2018-02-232-4/+19
| |
* | core: flush out trie cache more meaningfully on stop (#16143)Péter Szilágyi2018-02-233-128/+123
| | | | | | | | | | | | * core: flush out trie cache more meaningfully on stop * core: upgrade legacy tests to chain maker
* | Merge pull request #16146 from status-im/pombeirp/whisperv6-peer-race-cond-fixGuillaume Ballet2018-02-231-0/+6
|\ \ | | | | | | Fix race condition in whisperv6/peer.go
| * | whisper: Fix race condition in whisperv6/peer.goPedro Pombeiro2018-02-211-0/+6
| | |
* | | core, vm, common: define constantinople fork + shift (#16045)Martin Holst Swende2018-02-238-41/+302
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * core, vm, common: define constantinople fork, start implementation of shift instructions * vm: more testcases * vm: add tests for intpool erroneous intpool handling * core, vm, common: fix constantinople review concerns * vm: add string<->op definitions for new opcodes
* | | metrics: pull library and introduce ResettingTimer and InfluxDB reporter ↵Anton Evangelatov2018-02-2388-346/+7837
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | (#15910) * go-metrics: fork library and introduce ResettingTimer and InfluxDB reporter. * vendor: change nonsense/go-metrics to ethersphere/go-metrics * go-metrics: add tests. move ResettingTimer logic from reporter to type. * all, metrics: pull in metrics package in go-ethereum * metrics/test: make sure metrics are enabled for tests * metrics: apply gosimple rules * metrics/exp, internal/debug: init expvar endpoint when starting pprof server * internal/debug: tiny comment formatting fix
* | | Merge pull request #16164 from karalabe/les-receipt-fix-optimalPéter Szilágyi2018-02-238-17/+123
|\ \ \ | |_|/ |/| | eth, les, light: filter on logs only, derive receipts on demand
| * | eth, les, light: filter on logs only, derive receipts on demandPéter Szilágyi2018-02-238-17/+123
| | |
* | | Merge pull request #15748 from janos/multiple-ens-endpointsBalint Gabor2018-02-238-89/+586
|\ \ \ | | | | | | | | swarm: repeated --ens-api CLI flag (#14386)
| * \ \ swarm, cmd/swarm: Merge branch 'master' into multiple-ens-endpointsJanos Guljas2018-02-23148-3854/+3421
| |\ \ \
| * \ \ \ swarm, cmd/swarm: Merge branch 'master' into multiple-ens-endpointsJanos Guljas2018-02-22487-8032/+177991
| |\ \ \ \
| * | | | | cmd/swarm: return error early in buildConfig functionJanos Guljas2017-12-201-0/+3
| | | | | |
| * | | | | cmd/swarm: add validation for EnsAPIs configuration parameterJanos Guljas2017-12-192-0/+130
| | | | | |
| * | | | | swarm/api: implement NoResolverError with information about TLDJanos Guljas2017-12-192-7/+29
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | MultiResolver needs to provide information about TLD that has no resolver configured for.
| * | | | | cmd/swarm, swarm: disable ENS API by defaultJanos Guljas2017-12-183-36/+12
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Specifying ENS API CLI flag, env variable or configuration field is required for ENS resolving. Backward compatibility is preserved with --ens-api="" CLI flag value.
| * | | | | cmd/swarm: Merge branch 'master' into multiple-ens-endpointsJanos Guljas2017-12-1430-79/+547
| |\ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | Fix a conflict in cmd/swarm envVarsOverride function.
| * \ \ \ \ \ swarm, cmd/swarm: Merge branch 'master' into multiple-ens-endpointsJanos Guljas2017-12-13140-2064/+4996
| |\ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Merge with changes that implement config file PR #15548. Field *EnsApi string* in swarm/api.Config is replaced with *EnsAPIs []string*. A new field *EnsDisabled bool* is added to swarm/api.Config for easy way to disable ENS resolving with config file. Signature of function swarm.NewSwarm is changed and simplified.
| * | | | | | | swarm/api: use path.Ext instead strings.LastIndex in MultiResolver.ResolveJanos Guljas2017-12-051-2/+3
| | | | | | | |
| * | | | | | | swarm: deprecate --ens-addr CLI flag with a warning messageJanos Guljas2017-12-051-6/+10
| | | | | | | |
| * | | | | | | swarm/api: remove unneeded blank assignementJanos Guljas2017-12-051-1/+1
| | | | | | | |
| * | | | | | | swarm/api: initialize map with make to comply with the conventionJanos Guljas2017-12-051-1/+1
| | | | | | | |
| * | | | | | | swarm/api: remove unneeded assignment in MultiResolverOptionWithResolverJanos Guljas2017-12-051-3/+0
| | | | | | | |
| * | | | | | | swarm: check if "--ens-api ''" is specified in order to disable ENSJanos Guljas2017-12-051-0/+4
| | | | | | | |
| * | | | | | | swarm: add comment for parseFlagEnsAPI and fix a mistake in comment in codeJanos Guljas2017-12-051-1/+3
| | | | | | | |
| * | | | | | | swarm: multiple --ens-api flagsJanos Guljas2017-12-042-20/+32
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Allow multiple --ens-api flags to be specified with value format [tld:][contract-addr@]url. Backward compatibility with only one --ens-api flag and --ens-addr flag is preserved and conflict cases are handled: - multiple --ens-api with --ens-addr returns an error - single --ens-api with contract address and --ens-addr with different contract address returns an error Previously implemented --ens-endpoint is removed. Its functionality is replaced with multiple --ens-api flags.
| * | | | | | | swarm: add CLI --ens-endpoint flag (#14386)Janos Guljas2017-12-015-63/+459
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Implement a CLI flag that can be repeated to allow multiple ENS resolvers for different TLDs.
* | | | | | | | p2p: remove unused code (#16158)Ivan Daniluk2018-02-232-29/+1
| |_|_|_|_|/ / |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * p2p: remove unused code * p2p: remove unused imports
* | | | | | | rpc: set rpcRequest.service as methodNotFoundError.service value (#16163)Janoš Guljaš2018-02-231-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | RPC Server readRequest method sets the serverRequest error service value as the rpcRequest.method and this change sets it to the right service value.
* | | | | | | Merge pull request #16166 from karalabe/drop-deadPéter Szilágyi2018-02-221-23/+0
|\ \ \ \ \ \ \ | |_|_|_|_|/ / |/| | | | | | core: yeah, funny file, drop it
| * | | | | | core: yeah, funny file, drop itPéter Szilágyi2018-02-221-23/+0
| | | | | | |
* | | | | | | Merge pull request #15919 from ethersphere/p2p-protocols-prBalint Gabor2018-02-225-0/+1316
|\ \ \ \ \ \ \ | |/ / / / / / |/| | | | | | p2p/protocols, p2p/testing: protocol abstraction and testing
| * | | | | | p2p/protocols: gofmt -w -sFelix Lange2018-02-221-22/+22
| | | | | | |
| * | | | | | p2p/testing: check for all expectations in TestExchangesJanos Guljas2018-02-182-57/+200
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Handle all expectations in ProtocolSession.TestExchanges in any order that are received.
| * | | | | | p2p/protocols, p2p/testing: protocol abstraction and testingzelig2018-01-185-0/+1173
| | | | | | |
* | | | | | | Merge pull request #16165 from karalabe/faucet-twitter-apiPéter Szilágyi2018-02-221-2/+7
|\ \ \ \ \ \ \ | | | | | | | | | | | | | | | | cmd/faucet: resolve twitter user from final redirect
| * | | | | | | cmd/faucet: resolve twitter user from final redirectPéter Szilágyi2018-02-221-2/+7
|/ / / / / / /
* | | | | | | p2p: don't send DiscReason when using net.Pipe (#16004)Anton Evangelatov2018-02-222-5/+43
| | | | | | |
* | | | | | | whisper: Support for v2 has long been discontinued, remove it. (#16153)Guillaume Ballet2018-02-2215-2892/+0
| | | | | | |
* | | | | | | Merge pull request #16157 from nileshtrivedi/masterPéter Szilágyi2018-02-221-3/+4
|\ \ \ \ \ \ \ | | | | | | | | | | | | | | | | cmd/puppeth: Don't allow hyphen in network name. Fixes #16155
| * | | | | | | cmd/puppeth: Don't allow hyphen in network name. Fixes #16155Nilesh Trivedi2018-02-221-3/+4
|/ / / / / / /
* | | | | | | Merge pull request #15776 from ProChain/masterMartin Holst Swende2018-02-221-5/+13
|\ \ \ \ \ \ \ | | | | | | | | | | | | | | | | accounts/abi: Fix the bug of mobile framework crashing
| * | | | | | | accounts/abi: fix the `output` at the beginning instead of making a workaroundcroath2018-01-233-51/+13
| | | | | | | |
| * | | | | | | accounts/abi: add a test case for unpacking mobile interfacescroath2017-12-311-0/+36
| | | | | | | |
| * | | | | | | accounts/abi: fix for one output interface crashingcroath2017-12-291-0/+10
| | | | | | | |
* | | | | | | | Merge pull request #15770 from holiman/abi_nostructMartin Holst Swende2018-02-215-63/+166
|\ \ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | accounts/abi: add another unpack interface
| * | | | | | | | abi: fix missing method on go 1.7/1.8Martin Holst Swende2018-02-211-13/+23
| | | | | | | | |
| * | | | | | | | accounts/abi: harden unpacking against malicious inputMartin Holst Swende2018-02-212-4/+83
| | | | | | | | |
| * | | | | | | | accounts/abi: address review concernsMartin Holst Swende2018-02-214-352/+5
| | | | | | | | |
| * | | | | | | | accounts/abi: Deduplicate code in unpackerMartin Holst Swende2018-02-214-53/+33
| | | | | | | | |
| * | | | | | | | accounts/abi: add another unpack interfaceMartin Holst Swende2018-02-215-14/+395
| | |_|_|_|_|_|/ | |/| | | | | |
* | | | | | | | ethapi: prevent creating contract if no data is provided (#16108)Martin Holst Swende2018-02-211-0/+12
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * ethapi: prevent creating contract if no data is provided * internal/ethapi: downcase error for no data on contract creation
* | | | | | | | p2p: when peer is removed remove it also from dial history (#16060)Dmitry Shulyak2018-02-212-0/+57
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This change removes a peer information from dialing history when peer is removed from static list. It allows to force a server to re-dial concrete peer if it is needed. In our case we are running geth node on mobile devices, and it is common for a network connection to flap on mobile. Almost every time it flaps or network connection is changed from cellular to wifi peers are disconnected with read timeout. And usually it takes 30 seconds (default expiration timeout) to recover connection with static peers after connectivity is restored. This change allows us to reconnect with peers almost immediately and it seems harmless enough.
* | | | | | | | Merge pull request #16142 from karalabe/graceful-sigtermPéter Szilágyi2018-02-213-4/+7
|\ \ \ \ \ \ \ \ | |/ / / / / / / |/| | | | | | | cmd, console: support all termination signals
| * | | | | | | cmd, console: support all termination signalsPéter Szilágyi2018-02-213-4/+7
|/ / / / / / /
* | | | | | | README: add goreportcard.com badge to Readme (#16133)steve greensill2018-02-201-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * README: add goreportcard.com badge to Readme * README: fix double github.com
* | | | | | | VERSION, params: begin v1.8.2 release cyclePéter Szilágyi2018-02-192-5/+5
| | | | | | |
* | | | | | | params: release Geth v1.8.1v1.8.1Péter Szilágyi2018-02-191-4/+4
| | | | | | |
* | | | | | | les: fix light fetcher database race (#16103)Felföldi Zsolt2018-02-191-9/+21
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * les: fix light fetcher database race * les: lightFetcher comments
* | | | | | | Merge pull request #16115 from nonsense/update_rjeczalik_notifyPéter Szilágyi2018-02-194-29/+6
|\ \ \ \ \ \ \ | | | | | | | | | | | | | | | | vendor: update rjeczalik/notify so that it compiles on go1.10
| * | | | | | | vendor: update rjeczalik/notify so that it compiles on go1.10Anton Evangelatov2018-02-174-29/+6
| | | | | | | |
* | | | | | | | Merge pull request #16109 from karalabe/p2p-bond-checkPéter Szilágyi2018-02-185-25/+26
|\ \ \ \ \ \ \ \ | |/ / / / / / / |/| | | | | | | p2p/discover: validate bond against lastpong, not db presence
| * | | | | | | p2p/discover: s/lastPong/bondTime/, update TestUDP_findnodeFelix Lange2018-02-175-25/+26
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | I forgot to change the check in udp.go when I changed Table.bond to be based on lastPong instead of node presence in db. Rename lastPong to bondTime and add hasBond so it's clearer what this DB key is used for now.
| * | | | | | | p2p/discover: validate bond against lastpong, not db presencePéter Szilágyi2018-02-161-1/+1
|/ / / / / / /
* | | | | | | swarm: add favicon for Swarm templates served by browser (#15958)cooganb2018-02-153-14/+15
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * swarm: added script to HTML header to create favicon addresses #153 * swarm: moved data blob direclty into link tag, removed script * swarm: added favicon info to other html templates * swarm: fixing test errors * swarm: fixing favicon test * swarm: fixing travis tests * swarm: added script to HTML header to create favicon addresses #153 * swarm: moved data blob direclty into link tag, removed script * swarm: added favicon info to other html templates * swarm: fixing test errors * swarm: fixing favicon test * swarm: fixing travis tests
* | | | | | | whisper: only use the node id as a p2p id, not for sending messages (#16102)Guillaume Ballet2018-02-151-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This is in preparation for the switch to libp2p: the ID generated will be from a private key created with the help of libp2p's crypto library, while Whisper will still use Go's default crypto libraries for encrypting its messages. This change removes a conflict. It shouldn't have any impact as the person receiving emails is the user, not the node.
* | | | | | | whisper: test timeout extended (#16088)gluk2562018-02-151-25/+74
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * whisper: timeout extended * whisper: test updated * whisper: test updated
* | | | | | | Merge pull request #16095 from karalabe/les-lockPéter Szilágyi2018-02-151-0/+3
|\ \ \ \ \ \ \ | | | | | | | | | | | | | | | | les: add missing lock around peer access
| * | | | | | | les: add missing lock around peer accessPéter Szilágyi2018-02-151-0/+3
| | | | | | | |
* | | | | | | | node: fix typo hvosts -> vhosts (#16096)GuiltyMorishita2018-02-151-1/+1
| | | | | | | |
* | | | | | | | Merge pull request #16098 from holiman/fix_importPéter Szilágyi2018-02-151-0/+3
|\ \ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | main: add gc flags to import-command
| * | | | | | | | main: add gc flags to import-commandMartin Holst Swende2018-02-151-0/+3
| | | | | | | | |
* | | | | | | | | core: handle ignored error (#16065)ferhat elmas2018-02-151-0/+3
| |/ / / / / / / |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - according to implementation of `IntrinsicGas` we can continue execution since problem will be detected later. However, early return is future-proof for changes.
* | | | | | | | core/vm: remove unused hashing (#16075)ferhat elmas2018-02-141-7/+0
| | | | | | | |
* | | | | | | | params, VERSION: v1.8.1 unstableFelix Lange2018-02-142-5/+5
| | | | | | | |
* | | | | | | | params: v1.8.0 stablev1.8.0Felix Lange2018-02-141-4/+4
| | | | | | | |
* | | | | | | | containers/docker: bump legacy images to 1.8 branch (#16084)Péter Szilágyi2018-02-142-2/+2
| | | | | | | |
* | | | | | | | all: update license information (#16089)Felix Lange2018-02-1437-73/+235
|/ / / / / / /
* | | | | | | Merge pull request #16085 from karalabe/p2p-fix-outofboundsPéter Szilágyi2018-02-141-1/+1
|\ \ \ \ \ \ \ | | | | | | | | | | | | | | | | p2p/discover: fix out-of-bounds issue
| * | | | | | | p2p/discover: fix out-of-bounds issuePéter Szilágyi2018-02-141-1/+1
|/ / / / / / /
* | | | | | | travis.yml: work around Go 1.9.4 issue (#16082)Felix Lange2018-02-141-0/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * travis.yml: work around Go 1.9.4 issue * travis: workaround the workaround
* | | | | | | core: soften up state memory force-commit log messages (#16080)Felix Lange2018-02-131-6/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Talk about "state" instead of "trie timing", "trie memory" and remove the overzealous warning when the limit is just reached. Since the time limit is always reached on slow machines, move the message to info level so users don't freak out about internal details.
* | | | | | | Merge pull request #16073 from karalabe/puppeth-unify-discoveryPéter Szilágyi2018-02-139-101/+78
|\ \ \ \ \ \ \ | | | | | | | | | | | | | | | | cmd/puppeth: unify discv4 and discv5 ports
| * | | | | | | cmd/puppeth: unify discv4 and discv5 portsPéter Szilágyi2018-02-129-101/+78
| | | | | | | |
* | | | | | | | light: new CHTs (#16074)Felföldi Zsolt2018-02-131-8/+8
|/ / / / / / /
* | | | | | | Merge pull request #16071 from holiman/lintfixPéter Szilágyi2018-02-122-2/+1
|\ \ \ \ \ \ \ | | | | | | | | | | | | | | | | node, rpc: fix linter issues
| * | | | | | | node, rpc: fix linter issuesMartin Holst Swende2018-02-122-2/+1
|/ / / / / / /
* | | | | | | rpc: dns rebind protection (#15962)Martin Holst Swende2018-02-128-22/+98
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * cmd,node,rpc: add allowedHosts to prevent dns rebinding attacks * p2p,node: Fix bug with dumpconfig introduced in r54aeb8e4c0bb9f0e7a6c67258af67df3b266af3d * rpc: add wildcard support for rpcallowedhosts + go fmt * cmd/geth, cmd/utils, node, rpc: ignore direct ip(v4/6) addresses in rpc virtual hostnames check * http, rpc, utils: make vhosts into map, address review concerns * node: change log messages to use geth standard (not sprintf) * rpc: fix spelling
* | | | | | | p2p, p2p/discover: misc connectivity improvements (#16069)Felix Lange2018-02-1210-277/+801
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * p2p: add DialRatio for configuration of inbound vs. dialed connections * p2p: add connection flags to PeerInfo * p2p/netutil: add SameNet, DistinctNetSet * p2p/discover: improve revalidation and seeding This changes node revalidation to be periodic instead of on-demand. This should prevent issues where dead nodes get stuck in closer buckets because no other node will ever come along to replace them. Every 5 seconds (on average), the last node in a random bucket is checked and moved to the front of the bucket if it is still responding. If revalidation fails, the last node is replaced by an entry of the 'replacement list' containing recently-seen nodes. Most close buckets are removed because it's very unlikely we'll ever encounter a node that would fall into any of those buckets. Table seeding is also improved: we now require a few minutes of table membership before considering a node as a potential seed node. This should make it less likely to store short-lived nodes as potential seeds. * p2p/discover: fix nits in UDP transport We would skip sending neighbors replies if there were fewer than maxNeighbors results and CheckRelayIP returned an error for the last one. While here, also resolve a TODO about pong reply tokens.
* | | | | | | Merge pull request #16068 from karalabe/import-known-rolledback-blocksPéter Szilágyi2018-02-121-2/+6
|\ \ \ \ \ \ \ | | | | | | | | | | | | | | | | core: force import known but rolled back blocks
| * | | | | | | core: force import known but rolled back blocksPéter Szilágyi2018-02-121-2/+6
|/ / / / / / /
* | | | | | | internal/build: fix usage of strings.TrimLeft (#16066)ferhat elmas2018-02-121-1/+1
| | | | | | |
* | | | | | | Merge pull request #16063 from karalabe/deprecate-ubuntu-zestyPéter Szilágyi2018-02-121-1/+2
|\ \ \ \ \ \ \ | | | | | | | | | | | | | | | | build: deprecate zesty, add bionic PPA
| * | | | | | | build: deprecate zesty, add bionic PPAPéter Szilágyi2018-02-121-1/+2
|/ / / / / / /
* | | | | | | Merge pull request #16062 from karalabe/nodisable-fastsyncPéter Szilágyi2018-02-121-10/+5
|\ \ \ \ \ \ \ | | | | | | | | | | | | | | | | eth: only disable fast sync after success
| * | | | | | | eth: only disable fast sync after successPéter Szilágyi2018-02-111-10/+5
|/ / / / / / /
* | | | | | | Merge pull request #16061 from karalabe/downloader-nostate-ancestor-lookupPéter Szilágyi2018-02-112-13/+9
|\ \ \ \ \ \ \ | | | | | | | | | | | | | | | | eth/downloader: don't require state for ancestor lookups
| * | | | | | | eth/downloader: don't require state for ancestor lookupsPéter Szilágyi2018-02-112-13/+9
| | | | | | | |
* | | | | | | | les, light: fix CHT trie retrievals (#16039)Péter Szilágyi2018-02-1110-119/+210
|/ / / / / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * les, light: fix CHT trie retrievals * les, light: minor polishes, test remote CHT retrievals * les, light: deterministic nodeset rlp, bloombits test skeleton * les: add an event emission to the les bloombits test * les: drop dead tester code
* | | | | | | whisper: get wnode to work with v6 (#16051)Guillaume Ballet2018-02-1011-54/+79
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The bulk of the issue was to adapt to the new requirement that a v6 filter has to either contain a symmertric key or an asymmetric one. This commits revert one of the fixes that I made to remove a linter warning: unexporting NewSentMessage. This is not really a problem as I have a cleanup in the pipe that will solve this issue.
* | | | | | | les: fix server panic when discovery disabled (#16055)Felföldi Zsolt2018-02-101-9/+11
| | | | | | |
* | | | | | | README: remove --fast and --cache flags and clarify default sync mode (#16043)Chase Wright2018-02-101-12/+17
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Remove --fast flag and clarify default `--fast` is no longer a flag it's `--syncmode "fast"` and that is the default * Remove --cache flag --cache=512 is no longer required as of 1.8 as the default has been increased * README: Minor cache amount fix, mention Rinkeby
* | | | | | | whisper: bloom filter refactoring (#16046)gluk2562018-02-092-16/+21
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * whisper: bloom filter refactoring * whisper: fixed full node
* | | | | | | whisper: Seal function fixed (#16048)gluk2562018-02-091-6/+14
| | | | | | |
* | | | | | | p2p/discv5: fix multiple discovery issues (#16036)Felföldi Zsolt2018-02-093-27/+37
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * p2p/discv5: add query delay, fix node address update logic, retry refresh if empty * p2p/discv5: remove unnecessary ping before topic query * p2p/discv5: do not filter local address from topicNodes * p2p/discv5: remove canQuery() * p2p/discv5: gofmt
* | | | | | | params: update ropsten bootnodes (#16029)cdetrio2018-02-081-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * params: update ropsten bootnodes * params: fix linter
* | | | | | | Merge pull request #16037 from karalabe/light-startup-polishesPéter Szilágyi2018-02-084-9/+4
|\ \ \ \ \ \ \ | |_|_|_|_|_|/ |/| | | | | | eth, light: minor light client startup cleanups
| * | | | | | eth, light: minor light client startup cleanupsPéter Szilágyi2018-02-084-9/+4
| | | | | | |
* | | | | | | Merge pull request #16022 from gballet/whisper-v6-investigate-macos-timeoutgluk2562018-02-071-1/+1
|\ \ \ \ \ \ \ | |/ / / / / / |/| | | | | | whisper: improve a log message to analyze a travis issue
| * | | | | | whisper: improve a log message to analyze a travis issueGuillaume Ballet2018-02-061-1/+1
| | | | | | |
* | | | | | | core, trie: intermediate mempool between trie and database (#15857)Péter Szilágyi2018-02-0669-1159/+1953
| | | | | | | | | | | | | | | | | | | | | This commit reduces database I/O by not writing every state trie to disk.
* | | | | | | Merge pull request #16020 from evertonfraga/patch-1Péter Szilágyi2018-02-051-1/+1
|\ \ \ \ \ \ \ | | | | | | | | | | | | | | | | github: Replaces Wiki link [ci skip]
| * | | | | | | github: Replaces Wiki linkEv2018-02-051-1/+1
|/ / / / / / /
* | | | | | | les: limit LES peer count and improve peer configuration logic (#16010)Felföldi Zsolt2018-02-057-11/+43
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * les: limit number of LES connections * eth, cmd/utils: light vs max peer configuration logic
* | | | | | | eth/downloader: fix #15858 by checking if downloader dropPeer function is ↵Martin Holst Swende2018-02-051-3/+20
|/ / / / / / | | | | | | | | | | | | | | | | | | set (#15992)
* | | | | | Merge pull request #16009 from holiman/db_handlesPéter Szilágyi2018-02-041-3/+5
|\ \ \ \ \ \ | | | | | | | | | | | | | | cmd/utils: fix #16006 by not lowering OS ulimit
| * | | | | | utils: fix #16006 by not lowering OS ulimitMartin Holst Swende2018-02-021-3/+5
| | | | | | |
* | | | | | | Merge pull request #16011 from karalabe/fix-bootnode-gofmtPéter Szilágyi2018-02-021-2/+2
|\ \ \ \ \ \ \ | |/ / / / / / |/| | | | | | params: fix bootnodes gofmt
| * | | | | | params: fix bootnodes gofmtPéter Szilágyi2018-02-021-2/+2
|/ / / / / /
* | | | | | params: Add Ropsten bootnodes (#16008)Afri Schoedon2018-02-011-0/+2
| | | | | |
* | | | | | Merge pull request #15996 from karalabe/drop-redundant-methodsPéter Szilágyi2018-01-3110-65/+54
|\ \ \ \ \ \ | | | | | | | | | | | | | | core, eth, les, light: get rid of redundant methods
| * | | | | | core, eth, les, light: get rid of redundant methodsPéter Szilágyi2018-01-3110-65/+54
| | | | | | |
* | | | | | | Merge pull request #15997 from karalabe/batch-reset-sizePéter Szilágyi2018-01-311-0/+1
|\ \ \ \ \ \ \ | | | | | | | | | | | | | | | | ethdb: reset the batch size too on reset
| * | | | | | | ethdb: reset the batch size too on resetPéter Szilágyi2018-01-311-0/+1
|/ / / / / / /
* / / / / / / core, ethdb: reuse database batches (#15989)Martin Holst Swende2018-01-314-1/+16
|/ / / / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * leveldb: Update leveldb to 211f780 (poolfix) * core, ethdb: reuse database batches
* | | | | | p2p/discv5: fix removeTicketRef cached ticket removal (#15995)Felföldi Zsolt2018-01-311-4/+4
| | | | | |
* | | | | | whisper: change the whisper message format so as to add the payload size ↵gluk2562018-01-308-183/+193
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | (#15870) * whisper: message format changed * whisper: tests fixed * whisper: style fixes * whisper: fixed names, fixed failing tests * whisper: fix merge issue in #15870 Occured while using the github online merge tool. Lesson learned. * whisper: fix a gofmt error for #15870
* | | | | | vendor: update leveldb to 211f780 (poolfix) (#15988)Martin Holst Swende2018-01-295-22/+27
| | | | | |
* | | | | | internal: fix a typo that caused a lint error on travis (#15987)Guillaume Ballet2018-01-291-1/+1
| | | | | |
* | | | | | ethapi: add personal.signTransaction (#15971)Martin Holst Swende2018-01-272-20/+60
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * ethapi: add personal.signTransaction * ethapi: refactor to minimize duplicate code * ethapi: make nonce,gas,gasPrice obligatory in signTransaction
* | | | | | les: fix TxStatusMsg RLP coding (#15974)Felföldi Zsolt2018-01-273-5/+5
| | | | | |
* | | | | | whisper: remove linter warnings (#15972)Guillaume Ballet2018-01-2619-328/+363
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * whisper: fixes warnings from the code linter * whisper: more non-API-breaking changes The remaining lint errors are because of auto-generated files and one is because an exported function has a non- exported return type. Changing this would break the API, and will be part of another commit for easier reversal. * whisper: un-export NewSentMessage to please the linter This is an API change, which is why it's in its own commit. This change was initiated after the linter complained that the returned type wasn't exported. I chose to un-export the function instead of exporting the type, because that type is an implementation detail that I would like to change in the near future to make the code more readable and with an increased coverage. * whisper: update gencodec output after upgrading it to new lint standards
* | | | | | whisper: fix empty topic (#15811)b00ris2018-01-266-16/+92
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * whisper: fix empty topic * whisper: add check to matchSingleTopic * whisper: add tests * whisper: fix gosimple * whisper: added lastTopicByte const
* | | | | | accounts: fix comment typo (#15977)Miguel Mota2018-01-261-1/+1
| | | | | |
* | | | | | accounts/abi/bind/backends: fix comment typo (#15914)waymobetta2018-01-250-0/+0
| | | | | |
* | | | | | cmd, params: update discovery v5 bootnodes (#15954)Felföldi Zsolt2018-01-252-9/+2
| | | | | |
* | | | | | rpc: Support specifying HTTP client in RPC dialing (#15836)Steven Roose2018-01-241-3/+9
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * rpc: Support specifying HTTP client in RPC dialing Adds a minimal interface that captures http.Client and adds a new method rpc.DialHTTPClient that takes a client using that interface. The existing rpc.DialHTTP method is then alternatively implemented by using the new rpc.DialHTTPClient method provided with a standard *http.Client. * rpc: fix minor doc typos
* | | | | | Merge pull request #15832 from karalabe/abigen-eventsPéter Szilágyi2018-01-2425-1463/+2524
|\ \ \ \ \ \ | | | | | | | | | | | | | | accounts/abi/bind: support event filtering in abigen
| * | | | | | accounts/abi/bind: support event filtering in abigenPéter Szilágyi2018-01-2425-1463/+2524
| | |/ / / / | |/| | | |
* | | | | | dashboard: CPU, memory, diskIO and traffic on the footer (#15950)Kurkó Mihály2018-01-24111-3156/+13160
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * dashboard: footer, deep state update * dashboard: resolve asset path * dashboard: prevent state update on every reconnection * dashboard: fix linter issue * dashboard, cmd: minor UI fix, include commit hash * dashboard: gitCommit renamed to commit * dashboard: move the geth version to the right, make commit optional * dashboard: memory, traffic and CPU on footer * dashboard: fix merge * dashboard: CPU, diskIO on footer * dashboard: rename variables, use group declaration * dashboard: docs
* | | | | | Chain indexer fix + new CHT (#15934)Felföldi Zsolt2018-01-232-9/+9
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * core, light: fix chain indexer bug * light: add new CHT
* | | | | | p2p/discv5: fix topic register panic at shutdown (#15946)Felföldi Zsolt2018-01-231-1/+1
| | | | | |
* | | | | | Merge pull request #15948 from holiman/addr_v5_bootnodePéter Szilágyi2018-01-231-0/+1
|\ \ \ \ \ \ | | | | | | | | | | | | | | p2p/discv5: logs info about discv5 node info at bind time
| * | | | | | p2p/discv5: logs info about discv5 node info at bind timeMartin Holst Swende2018-01-231-0/+1
| | | | | | |
* | | | | | | consensus/ethash: improve cache/dataset handling (#15864)Felix Lange2018-01-238-213/+208
|/ / / / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * consensus/ethash: add maxEpoch constant * consensus/ethash: improve cache/dataset handling There are two fixes in this commit: Unmap the memory through a finalizer like the libethash wrapper did. The release logic was incorrect and freed the memory while it was being used, leading to crashes like in #14495 or #14943. Track caches and datasets using simplelru instead of reinventing LRU logic. This should make it easier to see whether it's correct. * consensus/ethash: restore 'future item' logic in lru * consensus/ethash: use mmap even in test mode This makes it possible to shorten the time taken for TestCacheFileEvict. * consensus/ethash: shuffle func calc*Size comments around * consensus/ethash: ensure future cache/dataset is in the lru cache * consensus/ethash: add issue link to the new test * consensus/ethash: fix vet * consensus/ethash: fix test * consensus: tiny issue + nitpick fixes
* | | | | | Merge pull request #15941 from karalabe/fix-header-reorg-orderPéter Szilágyi2018-01-222-7/+54
|\ \ \ \ \ \ | | | | | | | | | | | | | | core: sorted reorg insertion order for proper head header updating
| * | | | | | core: sorted reorg insertion order for proper head header updatingPéter Szilágyi2018-01-222-7/+54
| |/ / / / /
* / / / / / p2p, p2p/discover, p2p/discv5: implement UDP port sharing (#15200)Felföldi Zsolt2018-01-2217-91/+150
|/ / / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This commit affects p2p/discv5 "topic discovery" by running it on the same UDP port where the old discovery works. This is realized by giving an "unhandled" packet channel to the old v4 discovery packet handler where all invalid packets are sent. These packets are then processed by v5. v5 packets are always invalid when interpreted by v4 and vice versa. This is ensured by adding one to the first byte of the packet hash in v5 packets. DiscoveryV5Bootnodes is also changed to point to new bootnodes that are implementing the changed packet format with modified hash. Existing and new v5 bootnodes are both running on different ports ATM.
* | | | | Merge pull request #15902 from shapeshed/patch-2Péter Szilágyi2018-01-171-1/+1
|\ \ \ \ \ | | | | | | | | | | | | core/vm: Fix comment typo
| * | | | | core/vm: Fix comment typoGeorge Ornbo2018-01-161-1/+1
|/ / / / /
* | | | | cmd/ethkey: fix formatting, review nits (#15807)Felix Lange2018-01-167-95/+231
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This commit: - Adds a --msgfile option to read the message to sign from a file instead of command line argument. - Adds a unit test for signing subcommands. - Removes some weird whitespace in the code.
* | | | | Revert "trie: make fullnode children hash calculation concurrently (#15131)" ↵Péter Szilágyi2018-01-153-88/+32
| | | | | | | | | | | | | | | | | | | | | | | | | (#15889) This reverts commit 0f7fbb85d6e939510a3e3bb6493a9a332ddfd8e8.
* | | | | miner: avoid unnecessary work (#15883)Jim McDonald2018-01-152-0/+10
| | | | |
* | | | | dashboard: deep state update, version in footer (#15837)Kurkó Mihály2018-01-1516-5308/+1416
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * dashboard: footer, deep state update * dashboard: resolve asset path * dashboard: remove bundle.js * dashboard: prevent state update on every reconnection * dashboard: fix linter issue * dashboard, cmd: minor UI fix, include commit hash * remove geth binary * dashboard: gitCommit renamed to commit * dashboard: move the geth version to the right, make commit optional * dashboard: commit limited to 7 characters * dashboard: limit commit length on client side * dashboard: run go generate
* | | | | Merge pull request #15869 from Magicking/ethstats-reporting-fixPéter Szilágyi2018-01-151-0/+1
|\ \ \ \ \ | | | | | | | | | | | | ethstats: Fix ethstats reporting while syncing
| * | | | | ethstats: Fix ethstats reporting while syncingMagicking2018-01-131-0/+1
| | | | | |
* | | | | | Merge pull request #15863 from karalabe/light-miner-errorPéter Szilágyi2018-01-121-1/+4
|\ \ \ \ \ \ | | | | | | | | | | | | | | cmd/geth: user friendly light miner error
| * | | | | | cmd/geth: user friendly light miner errorPéter Szilágyi2018-01-121-1/+4
| | | | | | |
* | | | | | | whisper/whisperv6: implement pow/bloom exchange protocol (#15802)gluk2562018-01-127-75/+451
|/ / / / / / | | | | | | | | | | | | This is the main feature of v6.
* | | | | | common/fdlimit: Move fdlimit files to separate package (#15850)Ricardo Domingos2018-01-125-30/+31
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * common/fdlimit: Move fdlimit files to separate package When go-ethereum is used as a library the calling program need to set the FD limit. This commit extract fdlimit files to a separate package so it can be used outside of go-ethereum. * common/fdlimit: Remove FdLimit from functions signature * common/fdlimit: Rename fdlimit functions
* | | | | | travis.yml: remove alias for 'cd' to avoid hang on macOS (#15849)Jean-André Santoni2018-01-111-0/+1
| | | | | | | | | | | | | | | | | | This works around travis-ci/travis-ci#8703.
* | | | | | eth/gasprice: set default percentile to 60%, count blocks instead of ↵Nick Johnson2018-01-102-19/+34
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | transactions (#15828) The first should address a long term issue where we recommend a gas price that is greater than that required for 50% of transactions in recent blocks, which can lead to gas price inflation as people take this figure and add a margin to it, resulting in a positive feedback loop.
* | | | | | consensus/ethash: fix byzantium difficulty comment typo (#15842)gary rong2018-01-101-1/+1
| | | | | |
* | | | | | les: fix les/1 CHT compatibility issue (#15692)Felföldi Zsolt2018-01-092-3/+3
| | | | | |
* | | | | | all: regenerate codecs with gencodec commit 90983d99de (#15830)Felix Lange2018-01-0818-96/+96
| | | | | | | | | | | | | | | | | | Fixes #15777 because null is now allowed for hexutil.Bytes.
* | | | | | all: update generated code (#15808)Felix Lange2018-01-0842-1378/+2086
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * core/types, core/vm, eth, tests: regenerate gencodec files * Makefile: update devtools target Install protoc-gen-go and print reminders about npm, solc and protoc. Also switch to github.com/kevinburke/go-bindata because it's more maintained. * contracts/ens: update contracts and regenerate with solidity v0.4.19 The newer upstream version of the FIFSRegistrar contract doesn't set the resolver anymore. The resolver is now deployed separately. * contracts/release: regenerate with solidity v0.4.19 * contracts/chequebook: fix fallback and regenerate with solidity v0.4.19 The contract didn't have a fallback function, payments would be rejected when compiled with newer solidity. References to 'mortal' and 'owned' use the local file system so we can compile without network access. * p2p/discv5: regenerate with recent stringer * cmd/faucet: regenerate * dashboard: regenerate * eth/tracers: regenerate * internal/jsre/deps: regenerate * dashboard: avoid sed -i because it's not portable * accounts/usbwallet/internal/trezor: fix go generate warnings
* | | | | | dashboard: use balanced trees to include binary data (#15813)Russ Cox2018-01-051-97/+97
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * go-ethereum/dashboard: update assets.go Use current rsc/go-bindata instead of jteeuwen/go-bindata, to get balanced tree in very long string concatenations. This works around problems in current Go distributions. For golang/go#23222. * dashboard: run last two go:generate steps for linter
* | | | | | tests: update to upstream commit 2bb0c3da3b (#15806)Felix Lange2018-01-043-16/+17
| | | | | | | | | | | | | | | | | | | | | | | | Also raise traceLimit once again and print the VM error and output on failure.
* | | | | | eth: fix tracer panic when running without configs + reexec (#15799)Péter Szilágyi2018-01-041-3/+3
| | | | | |
* | | | | | cmd/utils: handle git commit a bit safer for user specified strings (#15790)Evangelos Pappas2018-01-041-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * cmd/utils/flags.go: Applying a String len guard for the gitCommit param of the NewApp() * cmd/utils: remove redundant clause in if condition
* | | | | | Merge pull request #15466 from karalabe/uint64-gas-limitPéter Szilágyi2018-01-0382-642/+606
|\ \ \ \ \ \ | | | | | | | | | | | | | | all: switch gas limits from big.Int to uint64
| * | | | | | all: switch gas limits from big.Int to uint64Péter Szilágyi2018-01-0382-642/+606
| | | | | | |
* | | | | | | vendor: update github.com/rjeczalik/notify (#15801)Felix Lange2018-01-032-5/+8
|/ / / / / /
* | | | | | various: remove redundant parentheses (#15793)Furkan KAMACI2018-01-0312-22/+22
| | | | | |
* | | | | | eth: revert tracer preimage recording (#15800)Felix Lange2018-01-031-4/+1
| | | | | | | | | | | | | | | | | | | | | | | | This reverts commits 85a1eda59e (#15792) and c495bca4ad (#15787) because they introduce database writes during tracing.
* | | | | | eth: uncaptialize tracer preimage error message (#15792)Felix Lange2018-01-031-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * eth: uncaptialize tracer preimage error message * eth: improve very important error message
* | | | | | console: remove comment about 'invalid' input (#15735)Richard Hart2018-01-021-2/+1
| | | | | | | | | | | | | | | | | | All inputs are saved into history, including 'invalid' inputs.
* | | | | | core, p2p/discv5: use time.NewTicker instead of time.Tick (#15747)ferhat elmas2018-01-022-5/+6
| | | | | |
* | | | | | eth: enable preimage recording when tracing (#15787)cdetrio2018-01-021-1/+4
| | | | | |
* | | | | | cmd/geth: remove trailing newline in license command (#15782)Péter Szilágyi2018-01-021-2/+1
| | | | | |
* | | | | | vendor: update github.com/rjeczalik/notify for go1.10 (#15785)Péter Szilágyi2018-01-0220-158/+229
| | | | | |
* | | | | | build: set CC through a command-line flag (#15784)Péter Szilágyi2018-01-022-9/+13
| | | | | | | | | | | | | | | | | | This avoids setting CC for the go run invocation, which fails on go1.10.
* | | | | | eth/downloader: avoid hidden reference to finished statesync request (#15545)Péter Szilágyi2018-01-021-1/+4
| | | | | |
* | | | | | build: fix version comparison for go1.10 and beyond (#15781)Péter Szilágyi2018-01-021-6/+15
| | | | | |
* | | | | | containers/docker: change docker images to go1.9 (#15789)Deepak Sharma2018-01-024-6/+10
| | | | | |
* | | | | | whisper/whisper2: fix Go 1.10 vet issues on type mismatches (#15783)Péter Szilágyi2018-01-021-2/+2
| | | | | |
* | | | | | crypto: ensure private keys are < N (#15745)Alex Wu2018-01-021-0/+10
| | | | | | | | | | | | | | | | | | Fixes #15744
* | | | | | consensus/ethash: fix overdue link (#15786)sunxiaojun20142017-12-311-1/+1
| | | | | |
* | | | | | accounts/abi: handle named ouputs prefixed with underscores (#15766)Péter Szilágyi2017-12-304-4/+153
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * accounts/abi: handle named ouputs prefixed with underscores * accounts/abi: handle collinding outputs for struct unpacks * accounts: handle purely underscore output names
* | | | | | p2p/enr: initial implementation (#15585)Anton Evangelatov2017-12-303-0/+768
| |/ / / / |/| | | | | | | | | | | | | | Initial implementation of ENR according to ethereum/EIPs#778
* | | | | eth, les, light: expose chain config in les node info too (#15732)Péter Szilágyi2017-12-284-11/+25
| | | | |
* | | | | p2p/discv5: fix reg lookup, polish code, use logger (#15737)Péter Szilágyi2017-12-284-142/+139
| | | | |
* | | | | rpc: allow OPTIONS requests without Content-Type (#15759)Sorin Neacsu2017-12-281-1/+1
| | | | | | | | | | | | | | | Fixes #15740
* | | | | Merge pull request #15731 from holiman/revamp_abiMartin Holst Swende2017-12-2311-379/+666
|\ \ \ \ \ | | | | | | | | | | | | accounts/abi refactor
| * | | | | accounts/abi: merging of https://github.com/ethereum/go-ethereum/pull/15452 ↵Martin Holst Swende2017-12-235-47/+128
| | | | | | | | | | | | | | | | | | | | | | | | + lookup by id
| * | | | | acounts/abi: refactor abi, generalize abi pack/unpack to ArgumentsMartin Holst Swende2017-12-237-251/+260
| | | | | |
| * | | | | accounts/abi: add unpack into array testRobert Zaremba2017-12-213-2/+17
| | | | | |
| * | | | | accounts/abi: add Method Unpack testsRobert Zaremba2017-12-211-36/+59
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | + Reworked Method Unpack tests into more readable components + Added Method Unpack into slice test
| * | | | | accounts/abi: satisfy most of the linter warningsRobert Zaremba2017-12-217-95/+87
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | + adding missing comments + small cleanups which won't significantly change function body. + unify Method receiver name
| * | | | | accounts/abi: fix event unpack into sliceRobert Zaremba2017-12-215-23/+36
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | + The event slice unpacker doesn't correctly extract element from the slice. The indexed arguments are not ignored as they should be (the data offset should not include the indexed arguments). + The `Elem()` call in the slice unpack doesn't work. The Slice related tests fails because of that. + the check in the loop are suboptimal and have been extracted out of the loop. + extracted common code from event and method tupleUnpack
| * | | | | accounts/abi: fix event tupleUnpackRobert Zaremba2017-12-211-7/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Event.tupleUnpack doesn't handle correctly Indexed arguments, hence it can't unpack an event with indexed arguments.
| * | | | | accounts/abi: adding event unpacker testsRobert Zaremba2017-12-211-0/+154
| | | | | |
* | | | | | accounts, consensus, core, eth: make chain maker consensus agnostic (#15497)gary rong2017-12-2223-99/+145
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * accounts, consensus, core, eth: make chain maker consensus agnostic * consensus, core: move CalcDifficulty to Engine interface * consensus: add docs for calcDifficulty function * consensus, core: minor comment fixups
* | | | | | dashboard: integrate Flow, sketch message API (#15713)Kurkó Mihály2017-12-2123-620/+49960
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * dashboard: minor design change * dashboard: Flow integration, message API * dashboard: minor polishes, exclude misspell linter
* | | | | | Merge pull request #15730 from karalabe/puppeth-expose-faucet-httpPéter Szilágyi2017-12-211-0/+2
|\ \ \ \ \ \ | | | | | | | | | | | | | | cmd/puppeth: fix faucet 502 error due to non-exposed HTTP port
| * | | | | | cmd/puppeth: fix faucet 502 error due to non-exposed HTTP portPéter Szilágyi2017-12-211-0/+2
|/ / / / / /
* / / / / / whisper/whisperv6: PoW requirement (#15701)gluk2562017-12-215-54/+185
|/ / / / / | | | | | | | | | | | | | | | New Whisper-level message introduced (PoW requirement), corresponding logic added, plus some tests.
* | | | | Merge pull request #15285 from yondonfu/abi-offset-fixed-arraysMartin Holst Swende2017-12-212-1/+194
|\ \ \ \ \ | | | | | | | | | | | | accounts/abi: include fixed array size in offset for dynamic type
| * | | | | accounts/abi: update array type check in method.go. Add more packing testsYondon Fu2017-12-192-6/+138
| | | | | |
| * | | | | Merge branch 'master' into abi-offset-fixed-arraysYondon Fu2017-12-19544-31113/+72797
| |\ \ \ \ \
| * | | | | | accounts/abi: include fixed array size in offset for dynamic typeYondon Fu2017-10-122-1/+62
| | | | | | |
* | | | | | | Merge pull request #15729 from karalabe/faucet-fix-twitterPéter Szilágyi2017-12-211-6/+1
|\ \ \ \ \ \ \ | | | | | | | | | | | | | | | | cmd/faucet: fix removal of Twitter zlib compression
| * | | | | | | cmd/faucet: fix removal of Twitter zlib compressionPéter Szilágyi2017-12-211-6/+1
| | | | | | | |
* | | | | | | | cmd/utils: add check on fd hard limit, skip test if below target (#15684)lash2017-12-214-1/+37
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * cmd/utils: Add check on hard limit, skip test if below target * cmd/utils: Cross platform compatible fd limit test * cmd/utils: Remove syscall.Rlimit in test * cmd/utils: comment fd utility method
* | | | | | | | swarm/api: url scheme bzz-hash to get hashes of swarm content (#15238) (#15715)Janoš Guljaš2017-12-214-16/+80
|/ / / / / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * swarm/api: url scheme bzz-hash to get hashes of swarm content (#15238) Update URI to support bzz-hash scheme and handle such HTTP requests by responding with hash of the content as a text/plain response. * swarm/api: return hash of the content for bzz-hash:// requests * swarm/api: revert "return hash of the content for bzz-hash:// requests" Return hashes of the content that would be returned by bzz-raw request. * swarm/api/http: handle error in TestBzzGetPath * swarm/api: remove extra blank line in comment
* | | | | | | cmd, core, eth/tracers: support fancier js tracing (#15516)Péter Szilágyi2017-12-2164-685/+109115
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * cmd, core, eth/tracers: support fancier js tracing * eth, internal/web3ext: rework trace API, concurrency, chain tracing * eth/tracers: add three more JavaScript tracers * eth/tracers, vendor: swap ottovm to duktape for tracing * core, eth, internal: finalize call tracer and needed extras * eth, tests: prestate tracer, call test suite, rewinding * vendor: fix windows builds for tracer js engine * vendor: temporary duktape fix * eth/tracers: fix up 4byte and evmdis tracer * vendor: pull in latest duktape with my upstream fixes * eth: fix some review comments * eth: rename rewind to reexec to make it more obvious * core/vm: terminate tracing using defers
* | | | | | | Merge pull request #15727 from karalabe/rinkeby-akasha-bootnodePéter Szilágyi2017-12-211-1/+3
|\ \ \ \ \ \ \ | | | | | | | | | | | | | | | | params: add Rinkeby bootnode from Akasha
| * | | | | | | params: add Rinkeby bootnode from AkashaPéter Szilágyi2017-12-211-1/+3
|/ / / / / / /
* | | | | | | cmd/ethkey: new command line tool for keys (#15438)Steven Roose2017-12-216-0/+533
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | ethkey is a new tool that serves as a command line interface to the basic key management functionalities of geth. It currently supports: - generating keyfiles - inspecting keyfiles (print public and private key) - signing messages - verifying signed messages
* | | | | | | accounts/abi: remove check for len%32==0 when unpacking events (#15670)Bob Glickstein2017-12-213-13/+47
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This change inlines the logic of bytesAreProper at its sole callsite, ABI.Unpack, and applies the multiple-of-32 test only in the case of unpacking methods. Event data is not required to be a multiple of 32 bytes long.
* | | | | | | whisper/whisperv6: message bundling (#15666)gluk2562017-12-212-20/+33
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Changed the communication protocol for ordinary message, according to EIP 627. Messages will be send in bundles, i.e. array of messages will be sent instead of single message.
* | | | | | | appveyor: bump Go to 1.9.2 (#15726)Péter Szilágyi2017-12-211-2/+2
| | | | | | |
* | | | | | | core: silence txpool reorg warning (annoying on import) (#15725)Péter Szilágyi2017-12-211-1/+1
| | | | | | |
* | | | | | | core: fix typos (#15720)Kurkó Mihály2017-12-212-14/+14
| | | | | | |
* | | | | | | accounts/abi: update array length after parsing array (#15618)Dmitry Shulyak2017-12-204-26/+78
| | | | | | | | | | | | | | | | | | | | | Fixes #15617
* | | | | | | crypto: ensure that VerifySignature rejects malleable signatures (#15708)Felix Lange2017-12-202-0/+14
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * crypto: ensure that VerifySignature rejects malleable signatures It already rejected them when using libsecp256k1, make sure the nocgo version does the same thing. * crypto: simplify check * crypto: fix build
* | | | | | | core: fix panic when stat-ing a tx from a queue-only account (#15714)Péter Szilágyi2017-12-202-1/+58
| | | | | | |
* | | | | | | console: create datadir at startup (#15700)Armin Braun2017-12-191-1/+4
| |_|/ / / / |/| | | | | | | | | | | | | | | | | | | | | | | Fixes #15672 by creating the datadir when creating the console. This prevents failing to save the history if no datadir exists.
* | | | | | swarm: bzz-list, bzz-raw and bzz-immutable schemes (#15667)Janoš Guljaš2017-12-1910-48/+202
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * swarm/api: url scheme bzz-list for getting list of files from manifest Replace query parameter list=true for listing all files contained in a swarm manifest with a new URL scheme bzz-list. * swarm: replaace bzzr and bzzi schemes with bzz-raw and bzz-immutable New URI Shemes are added and old ones are deprecated, but not removed. Old Schemes bzzr and bzzi are functional for backward compatibility. * swarm/api: completely remove bzzr and bzzi schemes Remove old schemes in favour of bzz-raw and bzz-immutable. * swarm/api: revert "completely remove bzzr and bzzi schemes" Keep bzzr and bzzi schemes for backward compatibility. At least until 0.3 swarm release.
* | | | | | Merge pull request #15693 from zsfelfoldi/wait_nopeersPéter Szilágyi2017-12-192-2/+2
|\ \ \ \ \ \ | |_|/ / / / |/| | | | | contracts/release: do not print error log if les backend has no peers
| * | | | | contracts/release: do not print error log if les backend has no peersZsolt Felfoldi2017-12-182-2/+2
| | | | | |
* | | | | | Merge pull request #15674 from chfast/vm-no-snapshot-paramPéter Szilágyi2017-12-183-11/+11
|\ \ \ \ \ \ | | | | | | | | | | | | | | core/vm: Remove snapshot param from Interpreter.Run()
| * | | | | | core/vm: Remove snapshot param from Interpreter.Run()Paweł Bylica2017-12-153-11/+11
| | | | | | |
* | | | | | | internal/ethapi: support "input" in transaction args (#15640)Felix Lange2017-12-181-3/+16
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The tx data field is called "input" in returned objects and "data" in argument objects. Make it so "input" can be used, but bail if both are set.
* | | | | | | Merge pull request #15698 from original-brownbear/15668Péter Szilágyi2017-12-181-0/+3
|\ \ \ \ \ \ \ | | | | | | | | | | | | | | | | accounts/keystore: Improved error message
| * | | | | | | accounts/keystore: Improved error messageArmin2017-12-181-0/+3
|/ / / / / / / | | | | | | | | | | | | | | | | | | | | | * Fix for #15668
* | | | | | | Merge pull request #15696 from ferhatelmas/p2p-goroutine-leakPéter Szilágyi2017-12-181-3/+3
|\ \ \ \ \ \ \ | | | | | | | | | | | | | | | | p2p/discover: fix leaked goroutine in data expiration
| * | | | | | | p2p/discover: fix leaked goroutine in data expirationferhat elmas2017-12-181-3/+3
| | |/ / / / / | |/| | | | |
* | | | | | | Merge pull request #15686 from sorin/sorin-geth-attach-rinkebyPéter Szilágyi2017-12-181-2/+6
|\ \ \ \ \ \ \ | |/ / / / / / |/| | | | | | cmd/geth: add support for geth --rinkeby attach
| * | | | | | cmd/geth: add support for geth --rinkeby attachSorin Neacsu2017-12-161-2/+6
|/ / / / / /
* | | | | | crypto, crypto/secp256k1: add CompressPubkey (#15626)Felix Lange2017-12-156-52/+118
| | | | | | | | | | | | | | | | | | | | | | | | This adds the inverse to DecompressPubkey and improves a few minor details in crypto/secp256k1.
* | | | | | Merge pull request #15679 from shapeshed/patch-1Péter Szilágyi2017-12-151-1/+1
|\ \ \ \ \ \ | | | | | | | | | | | | | | crypto: Fix comment typo
| * | | | | | crypto: Fix comment typoGeorge Ornbo2017-12-151-1/+1
|/ / / / / /
* / / / / / internal/ethapi: don't crash for missing receiptsrhaps1072017-12-141-1/+4
|/ / / / / | | | | | | | | | | | | | | | Fixes #15408 Fixes #14432
* | | | | Merge pull request #15629 from holiman/relax_futuretimePéter Szilágyi2017-12-141-4/+5
|\ \ \ \ \ | |_|_|_|/ |/| | | | consensus/ethash: relax requirements when determining future-blocks
| * | | | consensus/ethash: relax requirements when determining future-blocksMartin Holst Swende2017-12-081-4/+5
| | | | |
* | | | | p2p/simulations: fix gosimple nit (#15661)Felix Lange2017-12-131-1/+1
| | | | |
* | | | | rpc: use method constants instead of literal strings (#15652)Vitaly V2017-12-132-9/+9
| | | | |
* | | | | p2p/simulations: add mocker functionality (#15207)holisticode2017-12-135-2/+480
| | | | | | | | | | | | | | | | | | | | This commit adds mocker functionality to p2p/simulations. A mocker allows to starting/stopping of nodes via the HTTP API.