aboutsummaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* params: release Geth v1.9.5 stablev1.9.5Felix Lange2019-09-201-4/+4
|
* core/state: fix state object deep copy (#20100)gary rong2019-09-201-0/+1
| | | | deepCopy didn't copy pending storage updates, leading to the creation of blocks with invalid state root.
* params: start v1.9.5 release cyclePéter Szilágyi2019-09-191-4/+4
|
* params: release Geth v1.9.4 stablev1.9.4Péter Szilágyi2019-09-191-4/+4
|
* Merge pull request #20092 from karalabe/vendor-usb-bumpPéter Szilágyi2019-09-193-6/+8
|\ | | | | vendor: pull in USB Windows fixes
| * vendor: pull in USB Windows fixesPéter Szilágyi2019-09-193-6/+8
|/
* Merge pull request #20090 from soc1c/s1-testnet-istanbulPéter Szilágyi2019-09-192-12/+18
|\ | | | | params: activate Istanbul on Ropsten, Rinkeby and Görli
| * core/forkid, params: fix tests, enable Istanbul on Rinkeby + testersPéter Szilágyi2019-09-192-10/+16
| |
| * params: activate Istanbul on Ropsten and Görlisoc1c2019-09-191-2/+2
| |
* | Merge pull request #20091 from karalabe/cht-1.9.4Péter Szilágyi2019-09-191-16/+16
|\ \ | |/ |/| params: bump CHTs for the 1.9.4 release
| * params: bump CHTs for the 1.9.4 releasePéter Szilágyi2019-09-191-16/+16
|/
* Merge pull request #20085 from karalabe/txpool-api-fixPéter Szilágyi2019-09-182-6/+90
|\ | | | | core: fix tx dedup return error count
| * core: fix tx dedup return error countPéter Szilágyi2019-09-182-6/+90
|/
* les: multiple server bugfixes (#20079)Felföldi Zsolt2019-09-178-24/+87
| | | | | | | | | | | | | | | | | | | | * les: detailed relative cost metrics * les: filter txpool relative request statistic * les: initialize price factors * les: increased connected bias to lower churn rate * les: fixed clientPool.setLimits * core: do not use mutex in GetAncestor * les: bump factor db version again * les: add metrics * les, light: minor fixes
* Merge pull request #20081 from karalabe/txpool-lockless-dedupPéter Szilágyi2019-09-171-8/+12
|\ | | | | core: dedup known transactions without global lock, track metrics
| * core: dedup known transactions without global lock, track metricsPéter Szilágyi2019-09-171-8/+12
|/
* core: smaller txpool status locking (#20080)Martin Holst Swende2019-09-171-10/+13
| | | | | | * txpool: smaller lock portion * core/tx_pool: fix data race
* Merge pull request #20075 from holiman/evm_defaultsPéter Szilágyi2019-09-161-0/+2
|\ | | | | cmd/evm: make evm default to all ethash protocol changes
| * cmd/evm: make evm default to all ethash protocol changesMartin Holst Swende2019-09-141-0/+2
| |
* | common/mclock: clean up AfterFunc support (#20054)Felix Lange2019-09-164-65/+158
| | | | | | | | | | This change adds tests for the virtual clock and aligns the interface with the time package by renaming Cancel to Stop. It also removes the binary search from Stop because it complicates the code unnecessarily.
* | Merge pull request #19953 from karalabe/state-accumulate-writesPéter Szilágyi2019-09-164-84/+242
|\ \ | | | | | | core/state: accumulate writes and only update tries when must
| * | core: add blockchain test too for revert cornercaseMartin Holst Swende2019-09-161-0/+75
| | |
| * | core/state: accumulate writes and only update tries when mustPéter Szilágyi2019-09-163-84/+167
|/ /
* / rlp: improve nil pointer handling (#20064)Felix Lange2019-09-137-244/+416
|/ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * rlp: improve nil pointer handling In both encoder and decoder, the rules for encoding nil pointers were a bit hard to understand, and didn't leave much choice. Since RLP allows two empty values (empty list, empty string), any protocol built on RLP must choose either of these values to represent the null value in a certain context. This change adds choice in the form of two new struct tags, "nilString" and "nilList". These can be used to specify how a nil pointer value is encoded. The "nil" tag still exists, but its implementation is now explicit and defines exactly how nil pointers are handled in a single place. Another important change in this commit is how nil pointers and the Encoder interface interact. The EncodeRLP method was previously called even on nil values, which was supposed to give users a choice of how their value would be handled when nil. It turns out this is a stupid idea. If you create a network protocol containing an object defined in another package, it's better to be able to say that the object should be a list or string when nil in the definition of the protocol message rather than defining the encoding of nil on the object itself. As of this commit, the encoding rules for pointers now take precedence over the Encoder interface rule. I think the "nil" tag will work fine for most cases. For special kinds of objects which are a struct in Go but strings in RLP, code using the object can specify the desired encoding of nil using the "nilString" and "nilList" tags. * rlp: propagate struct field type errors If a struct contained fields of undecodable type, the encoder and decoder would panic instead of returning an error. Fix this by propagating type errors in makeStruct{Writer,Decoder} and add a test.
* core: remove unused gas return in ApplyTransaction (#20065)Rob Mulholand2019-09-134-8/+8
|
* Revert "build: switch PPA from Gophers dep to manual download" (#20061)Péter Szilágyi2019-09-123-8/+10
|
* Merge pull request #20059 from karalabe/ppa-manual-goPéter Szilágyi2019-09-123-10/+8
|\ | | | | build: switch PPA from Gophers dep to manual download
| * build: switch PPA from Gophers dep to manual downloadPéter Szilágyi2019-09-123-10/+8
|/
* Merge pull request #20058 from karalabe/go1.13Péter Szilágyi2019-09-124-16/+16
|\ | | | | travis, Dockerfile, appveyor: bump to Go 1.13
| * travis, Dockerfile, appveyor: bump to Go 1.13Péter Szilágyi2019-09-124-16/+16
|/
* all: make unit tests work with Go 1.13 (#20053)Felix Lange2019-09-1110-83/+79
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Most of these changes are related to the Go 1.13 changes to test binary flag handling. * cmd/geth: make attach tests more reliable This makes the test wait for the endpoint to come up by polling it instead of waiting for two seconds. * tests: fix test binary flags for Go 1.13 Calling flag.Parse during package initialization is prohibited as of Go 1.13 and causes test failures. Call it in TestMain instead. * crypto/ecies: remove useless -dump flag in tests * p2p/simulations: fix test binary flags for Go 1.13 Calling flag.Parse during package initialization is prohibited as of Go 1.13 and causes test failures. Call it in TestMain instead. * build: remove workaround for ./... vendor matching This workaround was necessary for Go 1.8. The Go 1.9 release changed the expansion rules to exclude vendored packages. * Makefile: use relative path for GOBIN This makes the "Run ./build/bin/..." line look nicer. * les: fix test binary flags for Go 1.13 Calling flag.Parse during package initialization is prohibited as of Go 1.13 and causes test failures. Call it in TestMain instead.
* tests: expose internal RunNoVerify method (#20051)Martin Holst Swende2019-09-111-12/+22
|
* eth: remove unused field (#20049)Nguyen Kien Trung2019-09-111-2/+0
|
* Merge pull request #20038 from holiman/minor_encodingfixPéter Szilágyi2019-09-103-1/+82
|\ | | | | core/state: optimize some internals during encoding
| * core/state: optimize some internals during encodingMartin Holst Swende2019-09-103-1/+82
| |
* | Merge pull request #20047 from karalabe/counter-to-gaugePéter Szilágyi2019-09-106-70/+108
|\ \ | | | | | | core, metrics, p2p: switch some invalid counters to gauges
| * | core, metrics, p2p: switch some invalid counters to gaugesPéter Szilágyi2019-09-106-70/+108
|/ /
* | Merge pull request #20046 from karalabe/graphql-fix-web-and-decodingPéter Szilágyi2019-09-102-3/+3
|\ \ | | | | | | common, graphql: fix hash/address decoding + UI content type
| * | common, graphql: fix hash/address decoding + UI content typePéter Szilágyi2019-09-102-3/+3
|/ /
* / README: accounts in alloc field should exist (#20005)Flash Sheridan2019-09-101-2/+2
|/ | | | | | | | | | * Accounts in alloc field must already exist Note that accounts in alloc field must already exist, as pointed out by Simeon Vanov in https://gettoshare.com/2017/10/30/how-to-use-genesis-json-alloc-property/ * Change wording per PR review comment * README: minor fixups
* Merge pull request #20033 from karalabe/docker-expose-graphqlPéter Szilágyi2019-09-042-2/+2
|\ | | | | Dockerfile: expose GraphQL ports
| * Dockerfile: expose GraphQL portsPéter Szilágyi2019-09-042-2/+2
|/
* params: begin Geth v1.9.4 release cyclePéter Szilágyi2019-09-031-4/+4
|
* params: release Geth v1.9.3 stablev1.9.3Péter Szilágyi2019-09-031-4/+4
|
* cmd/utils: reduce light.maxpeers default for clients to 1/10th (#19933)SjonHortensius2019-09-031-0/+5
| | | | | Currently light.maxpeers is 100 - after this change it's 10 for non-servers. Fixes #19820
* Merge pull request #19915 from holiman/filltxPéter Szilágyi2019-09-032-0/+22
|\ | | | | internal/ethapi: implement fillTransaction
| * ethapi: implement filltransactionMartin Holst Swende2019-08-082-0/+22
| |
* | rpc: raise limit in TestClientNotificationStorm (#19999)Felix Lange2019-09-021-1/+1
| |
* | retesteth: enable maxResults in AccountRange (#20020)winsvega2019-09-021-1/+1
| |
* | Merge pull request #20019 from holiman/minor_adminfixPéter Szilágyi2019-08-301-0/+5
|\ \ | | | | | | eth: disallow overwrite files via admin.exportChain
| * | eth: disallow overwrite files via admin.exportChainMartin Holst Swende2019-08-301-0/+5
| | |
* | | les: fix panic (#20013)gary rong2019-08-271-2/+1
| | |
* | | les: wait for all task goroutines before dropping the peer (#20010)gary rong2019-08-277-53/+84
| | | | | | | | | | | | | | | | | | | | | | | | * les: wait all task routines before drop the peer * les: address comments * les: fix issue
* | | README: change chainID to <arbitrary positive integer> (#20002)Flash Sheridan2019-08-261-1/+1
|/ / | | | | | | | | | | | | | | | | | | * Change chainId in genesis block to 8888 from 0 Change chainId in genesis block to 8888 from 0 per Moriteru in https://ethereum.stackexchange.com/a/28082/40230. * Replace 8888 with “<arbitrary positive integer>” Per PR review, replace Moriteru’s arbitrary positive integer 8888 with “<arbitrary positive integer>” in chainId field.
* | Merge pull request #20004 from karalabe/istanbul-overridePéter Szilágyi2019-08-237-2/+21
|\ \ | | | | | | cmd, core, eth, les: support --override.istanbul
| * | acmd, core, eth, les: support --override.istanbulPéter Szilágyi2019-08-237-2/+21
| | |
* | | Merge pull request #19993 from karalabe/istanbul-eip-integrationPéter Szilágyi2019-08-234-6/+49
|\ \ \ | |/ / |/| | core/vm: enable istanbul EIPs in the jump table
| * | tests: implement Istanbul supportMartin Holst Swende2019-08-231-0/+23
| | |
| * | retesteth: implement istanbul supportMartin Holst Swende2019-08-231-0/+7
| | |
| * | core/vm: enable istanbul EIPs in the jump tablePéter Szilágyi2019-08-222-6/+19
| | |
* | | rpc: enable compression on HTTP transport (#19997)SjonHortensius2019-08-222-0/+67
| | | | | | | | | | | | | | | | | | This change adds support for gzip encoding on HTTP responses. Gzip encoding is used when the client sets the 'accept-encoding: gzip' header. Original change by @brianosaurus, with fixes from @SjonHortensius.
* | | crypto: add SignatureLength constant and use it everywhere (#19996)Felix Lange2019-08-2211-33/+46
| | | | | | | | | Original change by @jpeletier
* | | p2p/enode: allow DNS names in enode URLs (#18524)alexwang2019-08-222-8/+10
| | |
* | | cmd/utils: customize cli.HelpPrinter to fix alignment (#19956)SjonHortensius2019-08-222-50/+56
| | | | | | | | | | | | | | | | | | This copies cli.printHelp but changes minwidth to 38. Custom flag code is improved to print the default value using cli.FlagStringer like all built-in flags do.
* | | Merge pull request #19995 from karalabe/ios-notagPéter Szilágyi2019-08-221-1/+1
|\ \ \ | |/ / |/| | build: gomobile automaticall adds the ios tag, don't duplicate
| * | build: gomobile automaticall adds the ios tag, don't duplicatePéter Szilágyi2019-08-221-1/+1
|/ /
* | ethdb/dbtest: addd test suite for ethdb backends (#19960)Andrey Petrov2019-08-223-77/+364
| | | | | | | | | | | | | | | | | | - Move the existing tests from memorydb into a generalized testsuite that can be run by any ethdb backend implementation. - Add several more test cases to clarify some non-obvious nuances when implementing a custom ethdb backend, such as the behaviour of NewIteratorWithPrefix vs NewIteratorWithStart. - Add leveldb to the testsuite using in-memory storage for fast execution.
* | common: unify hex prefix check code (#19937)lmittmann2019-08-222-7/+5
| |
* | core: log chain reorg/split metrics (#18950)HackyMiner2019-08-221-2/+8
| | | | | | | | | | | | * core: log chain reorg/split metrics * core: report 1-block reorgs on the metrics too
* | Merge pull request #19992 from karalabe/fix-blake2b-386-2Péter Szilágyi2019-08-221-1/+1
|\ \ | | | | | | crypto/blake2b: fix 386, round 2
| * | crypto/blake2b: fix 386, round 2Péter Szilágyi2019-08-221-1/+1
|/ /
* | Merge pull request #19990 from karalabe/fix-blake2b-386Péter Szilágyi2019-08-222-4/+57
|\ \ | | | | | | crypto/blake2b: fix non-amd64 builds
| * | crypto/blake2b: fix non-amd64 buildsPéter Szilágyi2019-08-222-4/+57
|/ /
* | Merge pull request #19972 from ↵Péter Szilágyi2019-08-2214-3/+2844
|\ \ | | | | | | | | | | | | keep-network/istanbul-eip-152-blake2b-f-precompile core/vm, crypto/blake2b: add BLAKE2b compression func at 0x09
| * | core/vm, crypto/blake2b: add SSE, AVX and AVX2 codePéter Szilágyi2019-08-2114-164/+2560
| | |
| * | core/vm, crypto/blake2b: add BLAKE2b compression func at 0x09Piotr Dyraga2019-08-215-3/+448
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The precompile at 0x09 wraps the BLAKE2b F compression function: https://tools.ietf.org/html/rfc7693#section-3.2 The precompile requires 6 inputs tightly encoded, taking exactly 213 bytes, as explained below. - `rounds` - the number of rounds - 32-bit unsigned big-endian word - `h` - the state vector - 8 unsigned 64-bit little-endian words - `m` - the message block vector - 16 unsigned 64-bit little-endian words - `t_0, t_1` - offset counters - 2 unsigned 64-bit little-endian words - `f` - the final block indicator flag - 8-bit word [4 bytes for rounds][64 bytes for h][128 bytes for m][8 bytes for t_0] [8 bytes for t_1][1 byte for f] The boolean `f` parameter is considered as `true` if set to `1`. The boolean `f` parameter is considered as `false` if set to `0`. All other values yield an invalid encoding of `f` error. The precompile should compute the F function as specified in the RFC (https://tools.ietf.org/html/rfc7693#section-3.2) and return the updated state vector `h` with unchanged encoding (little-endian). See EIP-152 for details.
* | | les: handler separation (#19639)gary rong2019-08-2131-2512/+2364
| | | | | | | | | les: handler separation
* | | core: fix crash in chain reimport (#19986)Martin Holst Swende2019-08-212-0/+51
| | | | | | | | | | | | | | | | | | | | | | | | * blockchain: fix flaw in block import * core/blockchain: address review concerns * core/blockchain: go format with 's'
* | | appveyor: bump to Go 1.12.9 (#19966)Samuel Marks2019-08-191-2/+2
| | | | | | | | | | | | | | | | | | * appveyor: bump to Go 1.12.8 * appveyor: bump to Go 1.12.9
* | | core/vm, params: implement EIP2200, SSTORE optimizations (#19964)Péter Szilágyi2019-08-194-1/+142
| | | | | | | | | | | | | | | | | | * core/vm, params: implement EIP2200, SSTORE optimizations * core/vm, params: switch EIP2200 to Wei's version
* | | Merge pull request #19983 from karalabe/private-chain-configPéter Szilágyi2019-08-191-2/+6
|\ \ \ | | | | | | | | README: update private network fork config fields
| * | | README: update private network fork config fieldsPéter Szilágyi2019-08-191-2/+6
|/ / /
* | | cmd/clef: spelling correction (#19973)Ben Holden-Crowther2019-08-191-1/+1
| | |
* | | signer/fourbyte: update signatures, sort and don't compress (#19957)Martin Holst Swende2019-08-193-32/+293692
|/ / | | | | | | | | | | * fourbyte: update signatures, make signatures sorted+not compressed * fourbyte: disable linter
* | tests: update from ethereum/tests (#19945)Martin Holst Swende2019-08-154-22/+33
| |
* | cmd/geth: set up cache and metrics when starting node (#19911)gary rong2019-08-152-40/+46
| |
* | common/compiler: fix lint issue (#19967)Felix Lange2019-08-151-2/+2
| |
* | p2p/enode, p2p/discv5: fix URL parsing test for go 1.12.8 (#19963)Felix Lange2019-08-152-2/+2
| |
* | common/compiler: support relative import paths (#17374)shiqinfeng12019-08-151-0/+1
| |
* | core, light, params: implement eip2028 (#19931)gary rong2019-08-146-34/+53
| | | | | | | | | | | | | | | | | | | | | | | | * core, light, params: implement eip2028 * core, light: address comments * core: address comments * tests: disable Istanbul tx tests (until updated) * core: address comment
* | Merge pull request #19955 from karalabe/deprecate-cosmicPéter Szilágyi2019-08-131-1/+2
|\ \ | | | | | | build: deprecate Ubuntu Cosmic, start supporting Eoan
| * | build: deprecate Ubuntu Cosmic, start supporting EoanPéter Szilágyi2019-08-131-1/+2
|/ /
* | params: begin Geth v1.9.3 release cyclePéter Szilágyi2019-08-131-4/+4
| |
* | params: release Geth v1.9.2v1.9.2Péter Szilágyi2019-08-131-4/+4
| |
* | Merge pull request #19942 from karalabe/cht-1.9.2Péter Szilágyi2019-08-121-16/+16
|\ \ | | | | | | params: update CHT to 12th August, 2019
| * | params: update CHT to 12th August, 2019Péter Szilágyi2019-08-121-16/+16
| | |
* | | cmd/clef: fix typo introduced in #19932 (#19946)ligi2019-08-121-1/+1
| | |
* | | core, trie: decode the value for storage dump (#19943)gary rong2019-08-122-2/+9
| | | | | | | | | | | | | | | | | | * core, trie: decode the value for storage dump * core/state: address comment
* | | les: degrade the log level (#19939)gary rong2019-08-121-2/+2
|/ /
* | all: replace passPHRASE with passWORD in user interactions (#19932)SjonHortensius2019-08-1219-94/+94
| | | | | | | | | | | | | | | | | | * Ref #19906 - replace passPHRASE with passWORD in any user interactions this skips doccomments and variablenames to minimize impact. It does however include a rename of the `ethkey` `changepassphrase` parameter * console: fix JavaScript error capitalization
* | graphql, internal/ethapi: support overriding accounts in eth_call (#19917)gary rong2019-08-084-8/+99
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * graphql, internal/ethapi: extend eth_call This PR offers the third option parameter for eth_call API. Caller can specify a batch of contracts for overriding the original account metadata(nonce, balance, code, state). It has a few advantages: * It's friendly for debugging * It's can make on-chain contract lighter for getting rid of state access functions * core, internal: address comments
* | Eip 1344 (ChainID opcode) (#19921)Martin Holst Swende2019-08-082-1/+26
| | | | | | | | | | | | * core/vm: implement EIP 1344 (ChainID opcode) * core/vm: formatting
* | accounts, internal/ethapi: use common Accounts method (#18428)Roc Yu2019-08-082-14/+17
| | | | | | | | | | | | | | | | * accounts/mananger, internal/ethapi/api: Add new function AllAccounts on account manager to remove the duplication code on getting all wallets accounts * Rename to Accounts * Rename to AllAccounts
* | Eip 1884 v3 (#19743)Martin Holst Swende2019-08-086-32/+141
| | | | | | | | | | | | | | | | | | | | | | | | | | | | * core/vm, tests: implement EIP 1884, add support for feature-tests * core/vm: 1884-changes to extcodehash, move selfbalance opcode * tests: fix statetests * core/vm: move constants, address review concerns * core/vm: word formatting Co-Authored-By: Péter Szilágyi <peterke@gmail.com>
* | internal/build: fix commit extraction for detached head repo (#18315)Aleksey @soar Smyrnov2019-08-081-0/+8
| | | | | | | | | | | | | | | | * Fix commit extraction * Comments for commit extraction Requested in https://github.com/ethereum/go-ethereum/pull/18315
* | core/vm: fix comment grammar (#19923)Corey Lin2019-08-072-2/+2
| | | | | | | | | | | | * core/vm:modify comment errors * modify its back to it's
* | params, core/vm: Istanbul EIP-1108 bn256 gas cost reduction (#19904)Antonio Salazar Cardozo2019-08-064-45/+144
|/ | | | | | | | | | | | | | | | | | | * params: add IsIstanbul to config + rules IstanbulBlock, used to determine if the config IsIstanbul, is currently left nil until an actual block is chosen. * params, core/vm: implement EIP-1108 Old gas costs for elliptic curve operations are given the PreIstanbul prefix, while current gas costs retain the unprefixed names. The actual precompile implementations are the same, so they are factored out into common functions that are called by the pre-Istanbul and current precompile structs. Finally, an Istanbul precompile list is added that references the new precompile structs, which in turn reference the new gas costs. * params: fix fork ordering, add missing chain compatibility check
* core/vm, params: refactor chain configuration (#19735)Martin Holst Swende2019-08-059-505/+329
| | | | | | | | | | | | | | | | * params, core/vm: deprecating gastable, part 1 * core/vm, params: deprecate gastable, use both constant and dynamic gas * core/vm, params: remove gastable, remove copypaste * core/vm: make use of the chainrules * interpreter: make tracing count constant+dynamic gas * core/vm: review concerns (param/method name changes) * core/vm: make use of chainrules more
* les: implement new client pool (#19745)Felföldi Zsolt2019-08-0315-586/+1651
|
* accounts/abi, signer/fourbyte: fix incorrect signature (#19881)gary rong2019-08-0211-57/+204
| | | | | The abi package already supports function overload by adding a suffix to the overloaded function name, but it uses the function name with suffix to calculate signature(both for the event and method). This PR fixes it by adding a new field named RawName, which can be used to calcuate all signatures but use Name to distinguish different overloaded function.
* ethdb/memorydb: allow noop compact on memdb (#19907)Péter Szilágyi2019-08-011-2/+3
| | | | | | * ethdb/memorydb: allow noop compact on memdb * ethdb/memorydb: fix comment type
* Merge pull request #19902 from karalabe/simulated-closePéter Szilágyi2019-07-316-8/+48
|\ | | | | accounts/abi/bind: support closing a simulated backend
| * accounts/abi/bind: support closing a simulated backendPéter Szilágyi2019-07-316-8/+48
|/
* internal/ethapi: return null inclusion info for pending transactions (#19901)Felix Lange2019-07-301-4/+4
| | | | | This change ensures 'blockHash', 'blockNumber' and 'transactionIndex' are set to null for pending transactions. This behavior is required by the Ethereum JSON-RPC spec.
* cmd/clef: fix colored output on Windows (#19889)Frank Szendzielarz2019-07-251-1/+9
| | | | | | | | * Fixes #19861 - coloured output * cmd/clef: minor formatting nit * cmd/clef: bleah, stupid github editor
* eth, graphql, internal/ethapi, les: polish and improve graphql (#19886)gary rong2019-07-255-96/+49
|
* ineternal/ethapi: wrap block size with hex.Uint64 (#19885)gary rong2019-07-251-1/+1
|
* travis: isolate linter and tests jobs (#19883)Tyler Ferrara2019-07-251-22/+33
|
* params: begin Geth v1.9.2 release cyclePéter Szilágyi2019-07-241-4/+4
|
* params: release Geth v1.9.1v1.9.1Péter Szilágyi2019-07-241-4/+4
|
* eth, internal, les: add getHeaderBy* APIs (#19669)gary rong2019-07-235-55/+126
| | | | | | | | * eth, interal, les: add getHeaderBy* APIs * internal: address the comment * eth, internal, les: getHeader nits, missing TD, console callable
* vendor, internal/build: fix OpenBSD by bumping Azure libs (#17966)Alexander van der Meij2019-07-2397-1075/+37890
| | | | | | | | | | * bump azure-storage-blob-go dependency to 0.3.0 release * update azure-storage-blob-go module import path * fix multiple return values on azblob.NewSharedKeyCredential * vendor: bump Azure libs to latest from upstream
* signer/fourbytes: fix up error messages (#19877)Péter Szilágyi2019-07-231-4/+4
|
* Merge pull request #19875 from karalabe/dev-4gb-cachePéter Szilágyi2019-07-231-1/+1
|\ | | | | cmd/geth: skip 4GB memory bump for devnet
| * cmd/geth: skip 4GB memory bump for devnetPéter Szilágyi2019-07-231-1/+1
| |
* | les: get rid of testing tx journal (#19876)gary rong2019-07-232-1/+3
| |
* | cmd/faucet: add grace period to faucet timeout (#18105)wbt2019-07-231-1/+4
|/ | | | | | * Add 5 minute grace period to faucet timeout * cmd/faucet: make grace period dynamic based on original wait time
* core, les: fix les unit tests (#19823)gary rong2019-07-225-12/+22
|
* cmd, contracts, eth, p2p, signer, whisper: fixed ineffectual assignments ↵Christian Muehlhaeuser2019-07-228-12/+12
| | | | | (#19869) Fixed assigning values to variables we don't end up using.
* rpc: implement websockets with github.com/gorilla/websocket (#19866)Felix Lange2019-07-2232-177/+3955
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * rpc: implement websockets with github.com/gorilla/websocket This change makes package rpc use the github.com/gorilla/websocket package for WebSockets instead of golang.org/x/net/websocket. The new library is more robust and supports all WebSocket features including continuation frames. There are new tests for two issues with the previously-used library: - TestWebsocketClientPing checks handling of Ping frames. - TestWebsocketLargeCall checks whether the request size limit is applied correctly. * rpc: raise HTTP/WebSocket request size limit to 5MB * rpc: remove default origin for client connections The client used to put the local hostname into the Origin header because the server wanted an origin to accept the connection, but that's silly: Origin is for browsers/websites. The nobody would whitelist a particular hostname. Now that the server doesn't need Origin anymore, don't bother setting one for clients. Users who need an origin can use DialWebsocket to create a client with arbitrary origin if needed. * vendor: put golang.org/x/net/websocket back * rpc: don't set Origin header for empty (default) origin * rpc: add HTTP status code to handshake error This makes it easier to debug failing connections. * ethstats: use github.com/gorilla/websocket * rpc: fix lint
* Merge pull request #19873 from karalabe/author-1.9.1Péter Szilágyi2019-07-2293-272/+593
|\ | | | | all: update author list and licenses
| * build: deduplicate same authors with different casingPéter Szilágyi2019-07-222-11/+14
| |
| * all: update author list and licensesPéter Szilágyi2019-07-2292-259/+564
| |
| * build: update license exclusions, case insensitive author listPéter Szilágyi2019-07-221-5/+18
| |
* | Merge pull request #19872 from karalabe/cht-1.9.1Péter Szilágyi2019-07-221-16/+16
|\ \ | |/ |/| params: bump hard-coded CHTs to 22nd July values
| * params: bump hard-coded CHTs to 22nd July valuesPéter Szilágyi2019-07-221-16/+16
|/
* cmd/geth, core/rawdb: add missing error checks (#19871)Christian Muehlhaeuser2019-07-223-1/+21
| | | | | | | | * Added missing error checks Add error handling where we assign err a value, but don't check for it being nil. * core/rawdb: tiny style nit
* cmd, crypto, eth, internals: fix Typos (#19868)Kitten King2019-07-225-10/+10
|
* core/state, p2p/discover, trie, whisper: avoid unnecessary conversions (#19870)Christian Muehlhaeuser2019-07-224-6/+6
| | | No need to convert these types.
* p2p: add ENR to PeerInfo (#19816)Kurkó Mihály2019-07-191-5/+9
|
* Merge pull request #19856 from karalabe/chaindb-property-fixPéter Szilágyi2019-07-181-9/+4
|\ | | | | internal/ethapi: fix debug.chaindbProperty
| * internal/ethapi: fix debug.chaindbPropertyPéter Szilágyi2019-07-181-9/+4
|/
* Merge pull request #19854 from karalabe/genesis-commit-checkPéter Szilágyi2019-07-181-2/+8
|\ | | | | core: check error before accessing potentially nil block
| * core: check error before accessing potentially nil blockPéter Szilágyi2019-07-181-2/+8
|/
* all: replace t.Log(); t.FailNow() with t.Fatal() (#19849)Felix Lange2019-07-184-116/+56
|
* signer/core: fix reference issue in key derivation (#19827)Guillaume Ballet2019-07-181-1/+2
| | | | | | * signer/core: fix reference issue in key derivation * Review feedback
* all: replace fmt.Print* calls with t.Log* in tests (#19670)大彬2019-07-1710-87/+85
|
* core: fix write concurrency in txpool (#19835)gary rong2019-07-172-9/+29
| | | | | | | | * core: fix write coucurrency in txpool * core: add rlock for pendingState read access * core: address comments
* common/bitutil: use result of TestBytes to prevent dead code elimination ↵David Chase2019-07-171-2/+8
| | | | | | | | | | | | (#19846) Gollvm has very aggressive dead code elimination that completely removes one of these two benchmarks. To prevent this, use the result of the benchmark (a boolean), and to be "fair", make the transformation to both benchmarks. To be reliably assured of not removing the code, "use" means assigning to an exported global. Non-exported globals and //go:noinline functions are possibly subject to this optimization.
* eth: add debug_accountRange (#17438)jwasinger2019-07-133-2/+225
| | | | This adds the debug_accountRange method which returns all accounts in the state for a given block and transaction index.
* eth: fix storageRangeAt for empty blocks (#18076)cdetrio2019-07-121-0/+5
|
* cmd, eth: fix dump config issue (#19825)gary rong2019-07-113-11/+11
| | | | | | * eth: fix error when dump config with nil checkpoint * cmd/utils: ignore default datadir if it's already set.
* params: begin Geth v1.9.1 release cyclePéter Szilágyi2019-07-101-4/+4
|
* params: release Geth v1.9.0v1.9.0Péter Szilágyi2019-07-101-4/+4
|
* Merge pull request #19818 from rjl493456442/encap-lesPéter Szilágyi2019-07-106-79/+112
|\ | | | | cmd: encapsulate les relative cli options
| * cmd, eth, les: make les flags conform to dotted stylePéter Szilágyi2019-07-106-56/+79
| |
| * cmd: encapsulate les relative cli optionsrjl4934564422019-07-102-33/+43
|/
* Merge pull request #19814 from karalabe/ulc-fixupPéter Szilágyi2019-07-1021-273/+188
|\ | | | | cmd, eth, les: fix up ultra light config integration
| * cmd, eth, les: fix up ultra light config integrationPéter Szilágyi2019-07-1021-273/+188
| |
* | Merge pull request #19815 from karalabe/go-1.12.7Péter Szilágyi2019-07-101-2/+2
|\ \ | | | | | | appveyor: bump builder to Go 1.12.7
| * | appveyor: bump builder to Go 1.12.7Péter Szilágyi2019-07-101-2/+2
|/ /
* / core/state: fix random test args (#19255)Sheldon2019-07-091-1/+1
|/
* Merge pull request #19810 from karalabe/txpool-noncerPéter Szilágyi2019-07-096-289/+77
|\ | | | | core: kill off managed state, use own tiny noncer for txpool
| * core: kill off managed state, use own tiny noncer for txpoolPéter Szilágyi2019-07-096-289/+77
|/
* Merge pull request #19807 from karalabe/chtPéter Szilágyi2019-07-092-19/+60
|\ | | | | params: bump all CHTs, deploy all checkpoint oracles
| * params: bump all CHTs, deploy all checkpoint oraclesPéter Szilágyi2019-07-092-19/+60
|/
* cmd/puppeth: integrate blockscout (#18261)gary rong2019-07-094-124/+109
| | | | | | | | | | | | | | | | | | * cmd/puppeth: integrate blockscout * cmd/puppeth: expose debug namespace for blockscout * cmd/puppeth: fix dbdir * cmd/puppeth: run explorer in archive mode * cmd/puppeth: ensure node is synced * cmd/puppeth: fix explorer docker alignment + drop unneeded exec * cmd/puppeth: polish up config saving and reloading * cmd/puppeth: check both web and p2p port for explorer service
* p2p/discover: improve randomness of ReadRandomNodes (#19799)Felix Lange2019-07-081-25/+8
| | | | Make it select from all live nodes instead of selecting the heads of random buckets.
* core/forkid: implement the forkid EIP, announce via ENR (#19738)Péter Szilágyi2019-07-0811-96/+571
| | | | | | | | | | | | | | | | * eth: chain config (genesis + fork) ENR entry * core/forkid, eth: protocol independent fork ID, update to CRC32 spec * core/forkid, eth: make forkid a struct, next uint64, enr struct, RLP * core/forkid: change forkhash rlp encoding from int to [4]byte * eth: fixup eth entry a bit and update it every block * eth: fix lint * eth: fix crash in ethclient tests
* p2p: remove "cap" enr entry (#19800)Felix Lange2019-07-082-3/+0
| | | | This entry was an experiment, but we're moving on to the entry-per-protocol instead.
* cmd/abigen: refactor command line interface (#19797)gary rong2019-07-083-103/+171
| | | | | | * cmd, common: refactor abigen command line interface * cmd/abigen: address comment
* eth, les: add sanity checks for unbounded block fields (#19573)Martin Holst Swende2019-07-086-5/+57
| | | This PR adds some hardening in the lower levels of the protocol stack, to bail early on invalid data. Primarily, attacks that this PR protects against are on the "annoyance"-level, which would otherwise write a couple of megabytes of data into the log output, which is a bit resource intensive.
* accounts/abi/bind: link dependent libs in deploy (#19718)Guillaume Ballet2019-07-084-61/+224
| | | | | | | | | | | | | | | | | | | | | * accounts, abigen: link dependent libs in deploy * abigen: add java generation * bind: Fix unit tests * abigen: add unit test * Fix CI * Post-rebase fixes * Fix rebase issue * accounts/abi: Gary's review feedback * accounts/abi: More Gary feedback * accounts/abi: minor fixes
* core: lessen mem-spike during 1.8->1.9 conversion (#19610)Martin Holst Swende2019-07-081-4/+47
| | | | | | | | * core/blockchain: lessen mem-spike during 1.8->1.9 conversion * core/blockchain.go: make levedb->freezer conversion gradually * core/blockchain: write the batch
* p2p: add address info to peer event reporting (#19716)Martin Holst Swende2019-07-063-26/+40
|
* cmd/geth: wrong memory size sanitizing on OpenBSD (#19793)Guillaume Ballet2019-07-052-6/+11
|
* accounts/abi/bind: fix typo in comments (#19791)Guillaume Ballet2019-07-041-2/+2
|
* accounts, cmd, contracts, les: integrate clef for transaction signing (#19783)gary rong2019-07-048-120/+61
| | | | | | * accounts, cmd, contracts, les: integrate clef for transaction signing * accounts, cmd/checkpoint-admin, signer/core: minor fixups
* les: remove half-finished priority pool APIs (#19780)gary rong2019-07-0410-890/+153
| | | | | | * les: remove half-finish APIs * les: remove half-finish APIs
* vendor: update karalabe/usb to fix CGO=0 builds (#19790)Guillaume Ballet2019-07-032-3/+8
|
* accounts/abi: enable struct golang binding generation (#18491)gary rong2019-07-039-81/+469
| | | | | | | | | | | | | | | | * accounts/abi, cmd/abigen: support tuple accounts/abi/bind, cmd/abigen: add objc back accounts/abi/bind: use byte[24] as function indicator accounts/abi/bind: resolve struct slice or array accounts/abi/bind: remove sort logic accounts: fix issues in abi * accounts/abi: address comment
* core: fix receipt insertion (#19764)gary rong2019-07-031-5/+9
|
* core: fix chain indexer (#19786)gary rong2019-07-031-1/+1
| | | | | | | This PR fixes an issue in chain indexer. Currently chain indexer will validate whether the stored data is canonical by comparing section head and canonical hash. But the header of the checkpoint may not exist in the database. We should skip validation for sections below the checkpoint.
* core: fix chain indexer reorg bug (#19748)Felföldi Zsolt2019-07-021-3/+18
| | | | | | * core: fix chain indexer reorg bug * core: prevent reverting valid section when reorg happens
* Merge pull request #19784 from karalabe/fix-constantinople-fixPéter Szilágyi2019-07-029-28/+4
|\ | | | | cmd, eth, les, param: drop --override.constantinople
| * cmd, eth, les, param: drop --override.constantinoplePéter Szilágyi2019-07-029-28/+4
|/
* cmd/clef, signer: refresh tutorial, fix noticed issues (#19774)Péter Szilágyi2019-07-0216-521/+704
| | | | | | | | * cmd/clef, signer: refresh tutorial, fix noticed issues * cmd/clef, signer: support removing stored keys (delpw + rules) * cmd/clef: polishes + Geth integration in the tutorial
* accounts/abi/bind: Accept function ptr parameter (#19755)Guillaume Ballet2019-07-026-14/+100
| | | | | | | | | | | | * accounts/abi/bind: Accept function ptr parameter They are translated as [24]byte * Add Java template version * accounts/abi/bind: fix merge issue * Fix CI
* accounts/abi: Fix method overwritten by same name methods. (#17099)zer0to0ne2019-07-013-33/+58
| | | | | | | | | * accounts/abi: Fix method overwritten by same name methods. * accounts/abi: Fix method overwritten by same name methods. * accounts/abi: avoid possible name conflict Co-authored-by: Guillaume Ballet <gballet@gmail.com>
* all: on-chain oracle checkpoint syncing (#19543)gary rong2019-06-2849-381/+2859
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * all: implement simple checkpoint syncing cmd, les, node: remove callback mechanism cmd, node: remove callback definition les: simplify the registrar les: expose checkpoint rpc services in the light client les, light: don't store untrusted receipt cmd, contracts, les: discard stale checkpoint cmd, contracts/registrar: loose restriction of registeration cmd, contracts: add replay-protection all: off-chain multi-signature contract params: deploy checkpoint contract for rinkeby cmd/registrar: add raw signing mode for registrar cmd/registrar, contracts/registrar, les: fixed messages * cmd/registrar, contracts/registrar: fix lints * accounts/abi/bind, les: address comments * cmd, contracts, les, light, params: minor checkpoint sync cleanups * cmd, eth, les, light: move checkpoint config to config file * cmd, eth, les, params: address comments * eth, les, params: address comments * cmd: polish up the checkpoint admin CLI * cmd, contracts, params: deploy new version contract * cmd/checkpoint-admin: add another flag for clef mode signing * cmd, contracts, les: rename and regen checkpoint oracle with abigen
* les: prefer nil slices over zero-length slices (#19081)Matthew Halpern2019-06-271-4/+6
|
* mobile: fix mobile interface (#19180)gary rong2019-06-279-233/+903
| | | | | | | | | | | | * mobile: fix mobile interface * mobile, accounts: generate correct java binding * accounts: fix java type binding * mobile: support integer slice * accounts/abi/bind, cmd/abigen: implement java binding tests
* eth: fix sync bloom panic (#19757)gary rong2019-06-263-16/+22
| | | | | | * eth: fix sync bloom panic * eth: delete useless test cases
* whisper: PoW calculations as specified in EIP-627 (#19753)Guillaume Ballet2019-06-252-13/+14
| | | | | | * whisper: PoW calculations as specified in EIP-627 * Fix unit tests
* cmd/evm: evm input minor fixes (#19740)Martin Holst Swende2019-06-251-19/+25
| | | | | | * cmd/evm: evm input minor fixes, handle prefix, validate length, fixes #18041 * cmd/evm: remove whitespace
* core/state, cmd/geth: streaming json output for dump command (#15475)Martin Holst Swende2019-06-247-44/+142
| | | | | | | | | | | | * core/state, cmd/geth: streaming json output dump cmd + optional code+storage * dump: add option to continue even if preimages are missing * core, evm: lint nits * cmd: use local flags for dump, omit empty code/storage * core/state: fix state dump test
* abi: adding the method EventByID and its test (#19359)salanfe2019-06-242-0/+81
| | | | | | | This function searches for an event+parameters in the ABI and returns it if found. Co-authored-by: Victor Tran <vu.tran54@gmail.com> Co-authored-by: Guillaume Ballet <gballet@gmail.com>
* rpc: fix subscription buffer documentation and test (#19747)Rob Mulholand2019-06-242-2/+5
| | | | | | This PR updates a comment about the maximum client subscription buffer to reflect changes made previously, and fixes a test that wouldn't fail when wantError == true but execution did not return an error.
* graphql: check the integrity of the CDN files (#19742)Kurkó Mihály2019-06-241-6/+31
| | | | | | * graphql: check the integrity of the cdn files * graphql: omit go-bindata
* core/vm, internal/ethapi: fail on eth_call when it times out, fixes #19186 ↵Martin Holst Swende2019-06-242-0/+9
| | | | (#19737)
* p2p/simulations: Enable access to MsgEvents with execadapter (#19749)lash2019-06-211-1/+4
|
* core: move TxPool reorg and events to background goroutine (#19705)Felix Lange2019-06-212-453/+543
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * core: move TxPool reorg and events to background goroutine This change moves internal queue re-shuffling work in TxPool to a background goroutine, TxPool.runReorg. Requests to execute runReorg are accumulated by the new scheduleReorgLoop. The new loop also accumulates transaction events. The motivation for this change is making sends to txFeed synchronous instead of sending them in one-off goroutines launched by 'add' and 'promoteExecutables'. If a downstream consumer of txFeed is blocked for a while, reorg requests and events will queue up. * core: remove homestead check in TxPool This change removes tracking of the homestead block number from TxPool. The homestead field was used to enforce minimum gas of 53000 for contract creations after the homestead fork, but not before it. Since nobody would want configure a non-homestead chain nowadays and contract creations usually take more than 53000 gas, the extra correctness is redundant and can be removed. * core: fixes for review comments * core: remove BenchmarkPoolInsert This is useless now because there is no separate code path for individual transactions anymore. * core: fix pending counter metric * core: fix pool tests * core: dedup txpool announced events, discard stales * core: reorg tx promotion/demotion to avoid weird pending gaps
* mobile: fix comment typos (#19741)Martin Holst Swende2019-06-201-1/+1
|
* Merge pull request #19680 from holiman/bootnode_updatePéter Szilágyi2019-06-201-0/+11
|\ | | | | params: add new bootnodes
| * params: add new bootnodesMartin Holst Swende2019-06-071-0/+11
| |
* | Merge pull request #19700 from karalabe/cleanup-graphqlPéter Szilágyi2019-06-209-164/+203
|\ \ | | | | | | cmd, graphql, node: graphql flag polishes, les integration
| * | cmd, graphql, node: graphql flag polishes, les integrationPéter Szilágyi2019-06-209-164/+203
| | |
* | | rpc: fix rare deadlock when canceling HTTP call context (#19715)Felix Lange2019-06-201-3/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | When cancelling the context for a call on a HTTP-based client while the call is running, the select in requestOp.wait may hit the <-context.Done() case instead of the <-op.resp case. This doesn't happen often -- our cancel test hasn't caught this even though it ran thousands of times on CI since the RPC client was added. Fixes #19714
* | | miner: don't update pending state when no transactions are added (#19734)Martin Holst Swende2019-06-191-1/+10
| | | | | | | | | | | | | | | | | | * miner: don't update pending state when no transactions are added * miner: avoid transaction processing when pending block is already full
* | | clef: fix stutter in warning message (#19736)Guillaume Ballet2019-06-191-1/+1
| | |
* | | Merge pull request #19732 from karalabe/simulated-eip155Péter Szilágyi2019-06-181-1/+1
|\ \ \ | | | | | | | | accounts/abi/bind/backends: use EIP155 on the simulated chain
| * | | accounts/abi/bind/backends: use EIP155 on the simulated chainPéter Szilágyi2019-06-181-1/+1
|/ / /
* | | Merge pull request #19731 from holiman/fix_19707Péter Szilágyi2019-06-181-3/+3
|\ \ \ | | | | | | | | accounts/keystore: fix #19707, avoid keyword as variable name
| * | | accounts/keystore: fix #19707, avoid keyword as variable nameMartin Holst Swende2019-06-181-3/+3
|/ / /
* | | Merge pull request #19725 from karalabe/goroutine-metricsPéter Szilágyi2019-06-171-21/+21
|\ \ \ | | | | | | | | metrics: gather and export threads and goroutines
| * | | metrics: gather and export threads and goroutinesPéter Szilágyi2019-06-171-21/+21
|/ / /
* | | appveyor: bump to Go 1.12.6 (#19709)Samuel Marks2019-06-143-7/+7
| | | | | | | | | | | | | | | | | | * appveyor: bump to Go 1.12.6 * vendor/vendor.json: govendor fetch github.com/karalabe/usb/^
* | | README.md: update formatting (#19532)Giulio2019-06-131-152/+186
| | |
* | | p2p: add more info to peer addition and removal logs (#19712)Felix Lange2019-06-131-2/+2
| | |
* | | les: reject client if it makes too many invalid requests (#19691)gary rong2019-06-123-14/+40
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * les: reject client connection if it makes too much invalid req * les: address comments * les: use uint32 * les: fix variable name * les: add invalid counter for duplicate invalid req
* | | accounts/abi/bind: rename NewKeystoreTransactor (#19703)Marius van der Wijden2019-06-121-2/+2
| | | | | | | | | | | | renamed NewKeyStoreFromTransactor to NewKeystoreTransactor fixed godoc
* | | Merge pull request #19701 from holiman/fixlesPéter Szilágyi2019-06-121-0/+4
|\ \ \ | | | | | | | | les/handler: avoid lookup missing state
| * | | les/handler: avoid lookup missing stateMartin Holst Swende2019-06-121-0/+4
| | | |
* | | | Merge pull request #19702 from karalabe/txprop-stricter-limitingPéter Szilágyi2019-06-121-0/+24
|\ \ \ \ | |/ / / |/| | | eth: enforce stricter known limits on idle peers
| * | | eth: enforce stricter known limits on idle peersPéter Szilágyi2019-06-121-0/+24
|/ / /
* | | core/types: document RawSignatureValues (#19695)Felix Lange2019-06-121-1/+3
| | |
* | | dashboard: update yarn.lock (#19697)Kurkó Mihály2019-06-122-2923/+3378
|/ /
* | ethclient, internal/ethapi: add support for EIP-695 (eth_chainId) (#19694)Felix Lange2019-06-113-0/+31
| | | | | | | | EIP-695 was written in 2017. Parity and Infura have support for this method and we should, too.
* | p2p: enforce connection retry limit on server side (#19684)Felix Lange2019-06-119-294/+520
| | | | | | | | | | | | | | | | | | The dialer limits itself to one attempt every 30s. Apply the same limit in Server and reject peers which try to connect too eagerly. The check against the limit happens right after accepting the connection. Further changes in this commit ensure we pass the Server logger down to Peer instances, discovery and dialState. Unit test logging now works in all Server tests.
* | eth, les: reject stale request (#19689)gary rong2019-06-115-2/+90
| | | | | | | | | | | | * eth, les: reject stale request * les: reuse local head number
* | Merge pull request #19692 from karalabe/metrics-extensionsPéter Szilágyi2019-06-1115-117/+341
|\ \ | | | | | | core, ethdb, metrics, p2p: expose various counter metrics for grafana
| * | core, ethdb, metrics, p2p: expose various counter metrics for grafanaPéter Szilágyi2019-06-1115-117/+341
|/ /
* | core/rawdb: avoid O_APPEND (#19676)Frank Szendzielarz2019-06-101-24/+62
| | | | | | | | | | | | | | | | * Fix file system access for Windows * Encapsulate file accesses * Style fixes
* | accounts: added transactorFromKeyStore (#19685)Marius van der Wijden2019-06-081-0/+19
| |
* | vendor: remove unused dependencies (#19683)Felix Lange2019-06-07141-25571/+0
| | | | | | | | | | | | | | | | | | | | * vendor: remove unused dependencies These were used by swarm code, which has now migrated to its own repository. * travis.yml: remove sudo requirement for test builders These needed sudo to run FUSE tests for swarm.
* | p2p/enode: improve IPv6 support, add ENR text representation (#19663)Felix Lange2019-06-0720-219/+463
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * p2p/enr: add entries for for IPv4/IPv6 separation This adds entry types for "ip6", "udp6", "tcp6" keys. The IP type stays around because removing it would break a lot of code and force everyone to care about the distinction. * p2p/enode: track IPv4 and IPv6 address separately LocalNode predicts the local node's UDP endpoint and updates the record. This change makes it predict IPv4 and IPv6 endpoints separately since they can now be in the record at the same time. * p2p/enode: implement base64 text format * all: switch to enode.Parse(...) This allows passing base64-encoded node records to all the places that previously accepted enode:// URLs. The URL format is still supported. * cmd/bootnode, p2p: log node URL instead of ENR ...and return the base64 record in NodeInfo.
* | cmd/devp2p: add devp2p debug tool (#19657)Felix Lange2019-06-076-8/+446
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * p2p/discover: export Ping and RequestENR These two are useful for checking the status of a node. * cmd/devp2p: add devp2p debug tool This is a new tool for debugging p2p issues. It supports a few basic tasks for now, but many more things can and will be added in the near future. devp2p enrdump -- prints ENRs readably devp2p discv4 ping -- checks if a node is up devp2p discv4 requestenr -- gets a node's record devp2p discv4 resolve -- finds a node through the DHT
* | accounts/scwallet: Disable macos support (#19679)Guillaume Ballet2019-06-073-5/+40
| |
* | Merge pull request #19681 from karalabe/fix-libusb-dockerPéter Szilágyi2019-06-074-4/+14
|\ \ | |/ |/| vendor: pull in USB fix for docker (alpine/musl)
| * vendor: pull in USB fix for docker (alpine/musl)Péter Szilágyi2019-06-074-4/+14
|/
* SECURITY.md: create security policy (#19666)Ethan Heilman2019-06-061-0/+120
| | | | | Github has started supporting SECURITY.md to contain a project's security policy. Adding this information to the repository makes it easier to determine how to disclosure a vulnerability as SECURITY.md becomes a standard. The pgp fingerprint and key is taken from bounty.ethereum.org.
* Merge pull request #19674 from karalabe/usb-ios-fixupPéter Szilágyi2019-06-066-28/+31
|\ | | | | vendor: pull fixed usb library for nocgo builds
| * vendor: pull fixed usb library for nocgo buildsPéter Szilágyi2019-06-066-28/+31
| |
* | eth: check for DefaultConfig.NetworkId in test (#17599)Nguyen Kien Trung2019-06-061-1/+1
|/ | | This makes the test work if NetworkId is changed in forks of go-ethereum.
* Merge pull request #19671 from holiman/usbfixPéter Szilágyi2019-06-051-1/+11
|\ | | | | account/usbwallet: abort usb enumeration after failures
| * account/usbwallet: abort usb enumeration after failuresMartin Holst Swende2019-06-051-1/+11
| |
* | cmd/clef: enable smartcard hub (#19649)Guillaume Ballet2019-06-053-3/+27
| | | | | | | | | | | | * cmd/clef: Enable smartcard hub * clef: don't error is pcsc is not installed
* | cmd: Add retesteth command (to support execution and generation of tests via ↵ledgerwatch2019-06-053-0/+1038
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | retesteth) (#19631) * Add retesteth command * Remove label and insert full version * mineBlock - break the inner loop when the block is full * Fixes for touched non-reward accounts, gas limit issues * Not fail when SendTx has transaction with incorrect RLP * Fix linter (unnecessary conversion) * retesteth: add usage string to flag
* | eth/downloader: make syncing error more obvious (#19413)gary rong2019-06-053-42/+45
|/
* cmd/utils: close quote (#19665)Martin Holst Swende2019-06-051-1/+1
|