165f53fc6e
les: remove transaction propagation limits ( #22125 )
2021-01-07 23:39:35 +01:00
d3952898c3
Merge pull request #22137 from karalabe/faucet-fb-fix
...
cmd/faucet: switch Facebook auth over to mobile site
2021-01-07 18:45:27 +02:00
3c6665e7d6
cmd/faucet: switch Facebook auth over to mobile site
2021-01-07 18:14:44 +02:00
4bb5c6ca7a
eth/protocols/snap: speed up hash checks ( #22023 )
...
* eth/protocols/snap: speed up hash checks
* eth/protocols/snap: nit fix
Co-authored-by: Péter Szilágyi <peterke@gmail.com >
2021-01-07 18:12:41 +02:00
38310f9022
Merge pull request #22136 from karalabe/faucet-websocket-fix
...
cmd/faucet: fix websocket race regression after switching to gorilla
2021-01-07 12:58:42 +02:00
58b9db5f7c
eth/protocols/snap: track reverts when peer rejects request ( #22016 )
...
* eth/protocols/snap: reschedule missed deliveries
* eth/protocols/snap: clarify log message
* eth/protocols/snap: revert failures async and update runloop
Co-authored-by: Péter Szilágyi <peterke@gmail.com >
2021-01-07 12:58:07 +02:00
44208d9258
cmd/faucet: fix websocket race regression after switching to gorilla
2021-01-07 10:23:50 +02:00
8bd8e1b24a
Merge pull request #22122 from karalabe/snapshot-polishes
...
cmd/utils, eth/downloader: minor snap nitpicks
2021-01-07 09:12:20 +02:00
d2e1b17f18
snapshot, trie: fixed typos, mostly in snapshot pkg ( #22133 )
2021-01-07 08:36:21 +02:00
072fd96254
graphql: return decimal for estimateGas
and cumulativeGas
queries ( #22126 )
...
* estimateGas, cumulativeGas
* linted
* add test for estimateGas
2021-01-06 17:19:16 +01:00
d667ee2d10
crypto: fix ineffectual assignments ( #22124 )
...
* crypto/bls12381: fixed ineffectual assignment
* crypto/signify: fix ineffectual assignment
2021-01-06 13:06:44 +02:00
83d317cff9
cmd/utils, eth/downloader: minor snap nitpicks
2021-01-06 08:37:45 +02:00
618454214b
eth/downloader: enhanced test cases for downloader queue ( #22114 )
2021-01-05 14:56:01 +01:00
9ba306d47e
common/compiler: fix parsing of solc output with solidity v.0.8.0 ( #22092 )
...
Solidity 0.8.0 changes the way that output is marshalled. This patch allows to parse both
the legacy format used previously and the new format.
See also https://docs.soliditylang.org/en/breaking/080-breaking-changes.html#interface-changes
2021-01-05 14:48:22 +01:00
4714ce9430
cmd/geth: added --mainnet flag ( #21932 )
...
* cmd/geth: added --mainnet flag
* cmd/utils: set default genesis if --mainnet is specified
* cmd/utils: addressed comments
2021-01-05 14:31:23 +01:00
eb2a1dfdd2
graphql: use a decimal representation for gas limit and gas used ( #21883 )
...
This changes the JSON encoding of blocks returned by the API
to have decimal instead of hexadecimal numbers. The spec wants
it this way.
Co-authored-by: Martin Holst Swende <martin@swende.se >
2021-01-05 11:22:32 +01:00
664903dc88
cmd/geth: usb is off by default ( #21984 )
2021-01-05 11:18:22 +01:00
9584f56b9d
miner: avoid sleeping in miner ( #22108 )
...
This PR removes a logic in the miner, which was originally intended to help temporary testnets based on ethash from "running off into the future". If the difficulty was low, and a few computers started mining several blocks per second, the ethash rules (which demand 1s delay between blocks) would push the blocktimes further and further away.
The solution was to make the miner sleep while this happened.
Nowadays, this problem is solved instead by PoA chains, and it's recommended to let testnets and devnets be based on clique instead. The existing logic is problematic, since it can cause stalls within the miner making it difficult for remote workers to submit work if the channel is blocked on a sleep.
Credits to Saar Tochner for reporting this via the bug bounty
2021-01-05 10:44:33 +01:00
6ada9f0f38
Merge pull request #22107 from karalabe/faucet-twitter
...
cmd: support v1.1 Twitter API in faucet, fix puppeth
2021-01-05 10:27:33 +02:00
e4571d8c12
cmd: support v1.1 Twitter API in faucet, fix puppeth
2021-01-04 14:13:21 +02:00
1951e20d10
SECURITY.md: link to release page ( #22067 )
...
Add links to go-ethereum's GitHub release page.
Co-authored-by: Felix Lange <fjl@twurst.com >
2021-01-04 12:42:47 +01:00
5c2a7ce2cc
node: rename startNetworking to openEndpoints ( #22105 )
2021-01-04 12:39:25 +01:00
47820ef726
.github: Replace wiki links with new doc pages ( #22065 ) ( #22068 )
2021-01-04 11:58:51 +01:00
f83fc302a5
cmd/geth: update copyright year ( #22099 )
2021-01-04 11:52:23 +01:00
167ff563d1
core/state/snapshot: gethring -> gathering typo ( #22104 )
2021-01-04 10:07:43 +02:00
0a3993c558
accounts/abi/bind: fix erroneous test ( #22053 )
...
closes #22049
2020-12-30 13:10:11 +01:00
a425a47ddc
core/rawdb, eth/protocols : Method name typo fix ( #22026 )
2020-12-27 22:38:16 +01:00
c17a7733df
docs: replace wiki links with new doc pages in readme.md ( #22065 ) ( #22066 )
2020-12-27 22:28:08 +01:00
653e8b9dd9
eth/downloader: remove unnecessary condition ( #22052 )
2020-12-27 22:26:42 +01:00
ab0979f930
signer: docs - replace wiki links with new doc pages ( #22069 )
2020-12-27 22:18:57 +01:00
0a09a39325
eth/filters: replace wiki links with new doc pages ( #22070 )
2020-12-27 22:09:05 +01:00
2f8100615a
cmd/geth: replace wiki links with new doc pages ( #22071 )
2020-12-27 22:01:28 +01:00
b13e9c4e3d
tests/fuzzers: fix false positive in bitutil fuzzer ( #22076 )
2020-12-27 21:58:39 +01:00
9c6b5b904a
eth, eth/tracers: include intrinsic gas in calltracer, expose for all tracers ( #22038 )
...
* eth/tracers: share tx gas price with js tracer
* eth/tracers: use `go generate`
* eth/tracers: try with another version of go-bindata
* eth/tracers: export txGas
* eth, eth/tracers: pass intrinsic gas to js tracers
eth/tracers: include tx gas in tracers usedGas
eth/tracers: fix prestate tracer's sender balance
eth/tracers: rm unnecessary import
eth/tracers: pass intrinsicGas separately to tracer
eth/tracers: fix tests broken by lack of txdata
eth, eth/tracers: minor fix
* eth/tracers: regenerate assets + unexport test-struct + add testcase
* eth/tracers: simplify tests + make table-driven
Co-authored-by: Guillaume Ballet <gballet@gmail.com >
Co-authored-by: Martin Holst Swende <martin@swende.se >
2020-12-27 21:57:19 +01:00
25c0bd9b43
README.md: update Travis badge ( #22079 )
...
The legacy dot-org URL was displaying a message about the repository
having migrated to the dot-com service, which now covers open-source
projects as well.
2020-12-27 18:56:50 +01:00
b9012a039b
common,crypto: move fuzzers out of core ( #22029 )
...
* common,crypto: move fuzzers out of core
* fuzzers: move vm fuzzer out from core
* fuzzing: rework cover package logic
* fuzzers: lint
2020-12-23 17:44:45 +01:00
158f72cc0c
internal/ethapi: restore net_version RPC method ( #22061 )
...
During the snap and eth refactor, the net_version rpc call was falsely deprecated.
This restores the net_version RPC handler as most eth2 nodes and other software
depend on it.
2020-12-23 13:43:22 +01:00
61469cfeaf
eth/downloader: fix typo in comment ( #22019 )
2020-12-21 15:39:58 +01:00
c5a3ffa363
eth/download/statesync : optimize to avoid a copy in state sync hashing ( #22035 )
...
* eth/download/statesync : state hash sum optimized
* go fmt with blank in imports
* keccak read arg fix
2020-12-21 11:54:39 +01:00
3c46f5570b
cmd/faucet: sort requests by newest first ( #22018 )
2020-12-17 01:20:20 +01:00
c7f2536735
les: les/4 minimalistic version ( #21909 )
...
* les: allow tx unindexing in les/4 light server mode
* les: minor fixes
* les: more small fixes
* les: add meaningful constants for recentTxIndex handshake field
2020-12-15 20:12:14 +01:00
8cde2966af
eth, core: speed up some tests ( #22000 )
2020-12-15 18:52:51 +01:00
0fe66f8ae4
eth/protocols/eth: remove magic numbers in test ( #21999 )
2020-12-14 14:31:23 +01:00
4859929798
cmd/geth: fixed parallelization flaw in account import test ( #22002 )
2020-12-14 14:08:53 +01:00
017831dd5b
core, eth: split eth package, implement snap protocol ( #21482 )
...
This commit splits the eth package, separating the handling of eth and snap protocols. It also includes the capability to run snap sync (https://github.com/ethereum/devp2p/blob/master/caps/snap.md ) , but does not enable it by default.
Co-authored-by: Marius van der Wijden <m.vanderwijden@live.de >
Co-authored-by: Martin Holst Swende <martin@swende.se >
2020-12-14 10:27:15 +01:00
00d10e610f
cmd/abigen: clarify abigen alias flag usage ( #21875 )
...
* doc: clarify abigen alias flag usage
update the `abigen --alias` flag help info, give an example to make it more clear
related issue: https://github.com/ethereum/go-ethereum/issues/21846
* Update cmd/abigen/main.go
Co-authored-by: ligi <ligi@ligi.de >
Co-authored-by: Martin Holst Swende <martin@swende.se >
Co-authored-by: ligi <ligi@ligi.de >
2020-12-12 17:36:32 +01:00
38c1d592b7
abi/bind: fix error-handling in generated wrappers for functions returning structs ( #22005 )
...
Fixes the template used when generating code, which in some scenarios would lead to panic instead of returning an error.
2020-12-12 10:16:34 +01:00
4d48980e74
core, eth, les: implement unclean-shutdown marker ( #21893 )
...
This PR implements unclean shutdown marker. Every time geth boots, it adds a timestamp to a list of timestamps in the database. This list is capped at 10. At a clean shutdown, the timestamp is removed again.
Thus, when geth exits unclean, the marker remains, and at boot up we show the most recent unclean shutdowns to the user, which makes it easier to diagnose root-causes to certain problems.
Co-authored-by: Nagy Salem <me@muhnagy.com >
2020-12-11 15:56:00 +01:00
c49aae9870
consensus: refactor FinalizeAndAssemble to use Finalize ( #21993 )
2020-12-11 15:49:44 +01:00
efe6dd2904
consensus/ethash: implement faster difficulty calculators ( #21976 )
...
This PR adds re-written difficulty calculators, which are based on uint256. It also adds a fuzzer + oss-fuzz integration for the new fuzzer. It does differential fuzzing between the new and old calculators.
Note: this PR does not actually enable the new calculators.
2020-12-11 11:06:44 +01:00