- 21 Sep, 2022 1 commit
-
-
lightclient authored
core/blockchain: downgrade tx indexing and unindexing logs from info to debug If a user has a finite tx lookup limit, they will see an "unindexing" info level log each time a block is imported. This information might help a user understand that they are removing the index each block and some txs may not be retrievable by hash, but overall it is generally more of a nuisance than a benefit. This change downgrades the log to a debug log.
-
- 20 Sep, 2022 3 commits
-
-
jwasinger authored
* core/vm: return copy of input slice in identity precompile. don't deep copy return data slice upon call completion * make use of common.CopyBytes
-
Péter Szilágyi authored
eth: fix a rare datarace on CHT challenge reply / shutdown
-
Péter Szilágyi authored
-
- 19 Sep, 2022 1 commit
-
-
Felix Lange authored
This fixes the build with Go 1.17, which does not have BuildInfo.Settings yet.
-
- 17 Sep, 2022 1 commit
-
-
lightclient authored
This shortens the chain config summary in bad block reports, and adds go-ethereum version information as well. Co-authored-by:
Felix Lange <fjl@twurst.com>
-
- 16 Sep, 2022 4 commits
-
-
Seungbae Yu authored
This changes the nonce cache used by TxPool to not store cached nonces for non-existing accounts.
-
lightclient authored
This change makes eth_getProof and eth_getStorageAt return an error when the argument contains invalid hex in storage keys. Co-authored-by:
Felix Lange <fjl@twurst.com>
-
George Carder authored
bls12381: docfix of g1 Affine.
-
ucwong authored
-
- 15 Sep, 2022 5 commits
-
-
Amir Hossein authored
-
Marius van der Wijden authored
* params: set TerminalTotalDifficultyPassed to true * Update params/config.go Co-authored-by:
Martin Holst Swende <martin@swende.se>
-
pinkiebell authored
This method is missing in light client mode and breaks consensus clients that require a valid response.
-
Felix Lange authored
-
Felix Lange authored
-
- 14 Sep, 2022 2 commits
-
-
Nicolas Gotchac authored
Co-authored-by:
Felix Lange <fjl@twurst.com>
-
Guillaume Ballet authored
* cmd/geth: add a verkle subcommand * fix copyright year * remove unused command parameters * check that the output file was successfully written to Co-authored-by:
Martin Holst Swende <martin@swende.se> * cmd/geth: goimports fix Co-authored-by:
Martin Holst Swende <martin@swende.se>
-
- 13 Sep, 2022 2 commits
-
-
Sina Mahmoodi authored
* graphql: fix tx logs * graphql: refactor test service setup * graphql: add test for tx logs
-
Benjamin Prosnitz authored
-
- 12 Sep, 2022 2 commits
-
-
Seungbae Yu authored
-
Seungbae Yu authored
-
- 10 Sep, 2022 1 commit
-
-
Felix Lange authored
This changes the CI / release builds to use the latest Go version. It also upgrades golangci-lint to a newer version compatible with Go 1.19. In Go 1.19, godoc has gained official support for links and lists. The syntax for code blocks in doc comments has changed and now requires a leading tab character. gofmt adapts comments to the new syntax automatically, so there are a lot of comment re-formatting changes in this PR. We need to apply the new format in order to pass the CI lint stage with Go 1.19. With the linter upgrade, I have decided to disable 'gosec' - it produces too many false-positive warnings. The 'deadcode' and 'varcheck' linters have also been removed because golangci-lint warns about them being unmaintained. 'unused' provides similar coverage and we already have it enabled, so we don't lose much with this change.
-
- 09 Sep, 2022 4 commits
-
-
Martin Holst Swende authored
This PR makes the event-sending for deleted and new logs happen in batches, to prevent OOM situation due to large reorgs. Co-authored-by:
Felix Lange <fjl@twurst.com>
-
Nicholas authored
This changes the error code returned by the RPC server in certain situations: - handler panic: code -32603 - result marshaling error: code -32603 - attempt to subscribe via HTTP: code -32001 In all of the above cases, the server previously returned the default error code -32000. Co-authored-by:
Nicholas Zhao <nicholas.zhao@gmail.com> Co-authored-by:
Felix Lange <fjl@twurst.com>
-
Martin Holst Swende authored
The p2p msgrate tracker is a thing which tries to estimate some mean round-trip times. However, it did so in a very curious way: if a node had 200 peers, it would sort their 200 respective rtt estimates, and then it would pick item number 2 as the mean. So effectively taking third fastest and calling it mean. This probably works "ok" when the number of peers are low (there are other factors too, such as ttlScaling which takes some of the edge off this) -- however when the number of peers is high, it becomes very skewed. This PR instead bases the 'mean' on the square root of the length of the list. Still pretty harsh, but a bit more lenient.
-
Péter Szilágyi authored
* eth/protocols/snap: throttle trie heal requests when peers DoS us * eth/protocols/snap: lower heal throttle log to debug Co-authored-by:
Martin Holst Swende <martin@swende.se> * eth/protocols/snap: fix comment Co-authored-by:
Martin Holst Swende <martin@swende.se>
-
- 08 Sep, 2022 2 commits
-
-
Darioush Jalali authored
This PR includes minor updates to comments in trie/committer that reference insertion to the db, and adds an err != nil check for the return value of preimages.commit.
-
rjl493456442 authored
-
- 07 Sep, 2022 5 commits
-
-
rjl493456442 authored
This PR simplifies the logic of chain tracer and also adds the unit tests. The most important change has been made in this PR is the state management. Whenever a tracing state is acquired there is a corresponding release function be returned as well. It must be called once the state is used up, otherwise resource leaking can happen. And also the logic of state management has been simplified a lot. Specifically, the state provider(eth backend, les backend) should ensure the state is available and referenced. State customers can use the state according to their own needs, or build other states based on the given state. But once the release function is called, there is no guarantee of the availability of the state. Co-authored-by:
Sina Mahmoodi <1591639+s1na@users.noreply.github.com> Co-authored-by:
Péter Szilágyi <peterke@gmail.com>
-
rjl493456442 authored
Follow-up to PR #25523 to cleanup all relevant tests.
-
Marius van der Wijden authored
See: https://github.com/ethereum/EIPs/blob/master/EIPS/eip-4399.md > This EIP supplants the semantics of the return value of existing DIFFICULTY (0x44) opcode and renames the opcode to PREVRANDAO (0x44).
-
rjl493456442 authored
-
rjl493456442 authored
-
- 06 Sep, 2022 2 commits
-
-
Péter Szilágyi authored
trie: check childrens' existence concurrently for snap heal
-
Péter Szilágyi authored
-
- 05 Sep, 2022 1 commit
-
-
Felix Lange authored
All fields related to gas must be represented as uint64. Depth is internally tracked as int, so it makes sense to also store it as int.
-
- 02 Sep, 2022 4 commits
-
-
Amir Hossein authored
-
Seungbae Yu authored
-
Seungbae Yu authored
The JSON-RPC spec requires the "version" field to be exactly "2.0", so we should verify that. This change is not backwards-compatible with sloppy client implementations, but I decided to go ahead with it anyway because the failure will be caught via the returned error.
-
protolambda authored
This adds a generic mechanism for 'dial options' in the RPC client, and also implements a specific dial option for the JWT authentication mechanism used by the engine API. Some real tests for the server-side authentication handling are also added. Co-authored-by:
Joshua Gutow <jgutow@optimism.io> Co-authored-by:
Felix Lange <fjl@twurst.com>
-