- 05 Dec, 2022 2 commits
-
-
Martin Holst Swende authored
This removes the 'time' field from logs, as well as from the tracer interface. This change makes the trace output deterministic. If a tracer needs the time they can measure it themselves. No need for evm to do this. Co-authored-by:
Sina Mahmoodi <itz.s1na@gmail.com>
-
Håvard Anda Estensen authored
This changes the Pop method to assign the zero value before reducing slice size. Doing so ensures the backing array does not reference removed item values.
-
- 03 Dec, 2022 1 commit
-
-
Sina Mahmoodi authored
This PR drops the legacy receipt types, the freezer-migrate command and the startup check. The previous attempt #22852 at this failed because there were users who still had legacy receipts in their db, so it had to be reverted #23247. Since then we added a command to migrate legacy dbs #24028. As of the last hardforks all users either must have done the migration, or used the --ignore-legacy-receipts flag which will stop working now.
-
- 02 Dec, 2022 1 commit
-
-
Oskar Haarklou Veileborg authored
-
- 30 Nov, 2022 1 commit
-
-
RichΛrd authored
This option is occasionally useful for advanced uses of the discv5 protocol. Co-authored-by:
Felix Lange <fjl@twurst.com>
-
- 28 Nov, 2022 7 commits
-
-
Felix Lange authored
-
rjl493456442 authored
This PR introduces a node scheme abstraction. The interface is only implemented by `hashScheme` at the moment, but will be extended by `pathScheme` very soon. Apart from that, a few changes are also included which is worth mentioning: - port the changes in the stacktrie, tracking the path prefix of nodes during commit - use ethdb.Database for constructing trie.Database. This is not necessary right now, but it is required for path-based used to open reverse diff freezer
-
Sina Mahmoodi authored
Fixes regression in #26266.
-
Sina Mahmoodi authored
Fixes a regression from #26265, which made it so that the call only worked if all three parameters were provided.
-
Paweł Bylica authored
tests: update evm-benchmarks
-
setunapo authored
refactoring without logic change
-
Sina Mahmoodi authored
web3.js's eth_call which we were defaulting to doesn't have the stateOverrides parameter, so this param wasn't working in the console.
-
- 25 Nov, 2022 4 commits
-
-
Seungbae Yu authored
-
Wihan de Beer authored
This is to cater for more node providers.
-
Martin Holst Swende authored
This PR should makes it easier to sign EIP-712 typed data via the accounts.Wallet API, by using the mimetype for typed data. Co-authored-by:
nasdf <keenan.nemetz@gmail.com>
-
rjl493456442 authored
* core/rawdb: fix freezer validation * core/rawdb: address comment
-
- 24 Nov, 2022 4 commits
-
-
Felix Lange authored
-
6xiaowu9 authored
-
Felix Lange authored
-
Felix Lange authored
While investigating #22374, I noticed that the Sync operation of the freezer does not take the table lock. It also doesn't call sync for all files if there is an error with one of them. I doubt this will fix anything, but didn't want to drop the fix on the floor either.
-
- 22 Nov, 2022 1 commit
-
-
Marius van der Wijden authored
Implements EIP-3651, "Warm Coinbase", for Shanghai hardfork. Specification: https://eips.ethereum.org/EIPS/eip-3651.
-
- 21 Nov, 2022 2 commits
-
-
kumavis authored
This change logs the path checked when encountering low disk space.
-
Martin Holst Swende authored
This makes a couple of sometimes-failing tests less brittle.
-
- 17 Nov, 2022 6 commits
-
-
Martin Holst Swende authored
This prevents DoS when connected to a malicious ethstats server.
-
Martin Holst Swende authored
This removes an RPC test which takes > 90s to execute, and updates the internal/guide tests to use lighter scrypt parameters. Co-authored-by:
Felix Lange <fjl@twurst.com>
-
therainisme authored
This PR improves and extends the tests a bit
-
Felix Lange authored
-
Felix Lange authored
-
Sina Mahmoodi authored
Use noopTracer as a base for other native tracers to avoid extra boilerplate for unimplemented hooks.
-
- 16 Nov, 2022 3 commits
-
-
storyicon authored
This adds a way to specify HTTP headers per request. Co-authored-by:
Martin Holst Swende <martin@swende.se> Co-authored-by:
Felix Lange <fjl@twurst.com>
-
Mark Tyneway authored
Implements TSTORE and TLOAD as specified by the following EIP: https://eips.ethereum.org/EIPS/eip-1153 https://ethereum-magicians.org/t/eip-1153-transient-storage-opcodes/553Co-authored-by:
Sara Reynolds <snreynolds2506@gmail.com> Co-authored-by:
Martin Holst Swende <martin@swende.se> Co-authored-by:
Gary Rong <garyrong0905@gmail.com>
-
ligi authored
closes #26188
-
- 15 Nov, 2022 1 commit
-
-
Felix Lange authored
rpc: fix connection tracking in Server When upgrading to mapset/v2 with generics, the set element type used in rpc.Server had to be changed to *ServerCodec because ServerCodec is not 'comparable'. While the distinction is technically correct, we know all possible ServerCodec types, and all of them are comparable. So just use a map instead.
-
- 14 Nov, 2022 4 commits
-
-
Felix Lange authored
It seems there is no fully typed library implementation of an LRU cache. So I wrote one. Method names are the same as github.com/hashicorp/golang-lru, and the new type can be used as a drop-in replacement. Two reasons to do this: - It's much easier to understand what a cache is for when the types are right there. - Performance: the new implementation is slightly faster and performs zero memory allocations in Add when the cache is at capacity. Overall, memory usage of the cache is much reduced because keys are values are no longer wrapped in interface.
-
Jolly Zhao authored
Co-authored-by:
Felix Lange <fjl@twurst.com>
-
Martin Holst Swende authored
This PR changes the pending tx subscription to return RPCTransaction types instead of normal Transaction objects. This will fix the inconsistencies with other tx returning API methods (i.e. getTransactionByHash), and also fill in the sender value for the tx. co-authored by @s1na
-
Martin Holst Swende authored
-
- 11 Nov, 2022 3 commits
-
-
Martin Holst Swende authored
This fixes a problem in the SizeConstrainedLRU. The SCLRU uses an underlying simple lru which is not thread safe. During the Get operation, the recentness of the accessed item is updated, so it is not a pure read-operation. Therefore, the mutex we need is a full mutex, not RLock. This PR changes the mutex to be a regular Mutex, instead of RWMutex, so a reviewer can at a glance see that all affected locations are fixed.
-
Martin Holst Swende authored
* eth/catalyst: fix time-dependent (flaky) test * eth: increase timeout on TestTransactionPropagation
-
Felix Lange authored
This changes how we read performance metrics from the Go runtime. Instead of using runtime.ReadMemStats, we now rely on the API provided by package runtime/metrics. runtime/metrics provides more accurate information. For example, the new interface has better reporting of memory use. In my testing, the reported value of held memory more accurately reflects the usage reported by the OS. The semantics of metrics system/memory/allocs and system/memory/frees have changed to report amounts in bytes. ReadMemStats only reported the count of allocations in number-of-objects. This is imprecise: 'tiny objects' are not counted because the runtime allocates them in batches; and certain improvements in allocation behavior, such as struct size optimizations, will be less visible when the number of allocs doesn't change. Changing allocation reports to be in bytes makes it appear in graphs that lots more is being allocated. I don't think that's a problem because this metric is primarily interesting for geth developers. The metric system/memory/pauses has been changed to report statistical values from the histogram provided by the runtime. Its name in influxdb has changed from geth.system/memory/pauses.meter to geth.system/memory/pauses.histogram. We also have a new histogram metric, system/cpu/schedlatency, reporting the Go scheduler latency.
-