- 10 Dec, 2022 1 commit
- 
- 
Michael de Hoog authoredCurrently calling `debug_TraceTransaction` with a transaction hash that doesn't exist returns a confusing error: `genesis is not traceable`. This PR changes the behaviour to instead return an error message saying `transaction not found` Co-authored-by: Martin Holst Swende <martin@swende.se> Co-authored-by: Sina Mahmoodi <itz.s1na@gmail.com> 
 
- 
- 09 Dec, 2022 3 commits
- 
- 
Felix Lange authoredThis PR adds a new type event.FeedOf[T], which is like event.Feed but parameterized over the channel element type. Performance is unchanged, and it still uses reflect. But unlike Feed, the generic version doesn't need to type-check interface{} arguments. All panic cases are gone from the API.
- 
Felix Lange authoredWhile investigating another issue, I found that all callers of collectLogs have the complete block available. rawdb.ReadReceipts loads the block from the database, so it is better to use ReadRawReceipts here, and derive the receipt information using the block which is already in memory. 
- 
Sina Mahmoodi authoredThis PR makes it possible to modify the flush interval time via RPC. On one extreme, `0s`, it would act as an archive node. If set to `1h`, means that after one hour of effective block processing time, the trie would be flushed. If one block takes 200ms, this means that a flush would occur every `5*3600=18000` blocks -- however, if the memory size of the cached states grows too large, it will flush sooner. Essentially, this makes it possible to configure the node to be more or less "archive:ish", and without restarting the node while reconfiguring it. 
 
- 
- 08 Dec, 2022 1 commit
- 
- 
rjl493456442 authored--syncTarget is a feature for development purpose in post-merge world. Previously it's added into eth.Config. But it turns out that's a stupid idea. - syncTarget is a block object, which is hard to be put in config file(large) - syncTarget is just a dev feature, doesn't make too much sense to add it in config file So I remove it from the eth config object. And it also fixes the #26328 
 
- 
- 07 Dec, 2022 4 commits
- 
- 
zhiqiangxu authoredThis improves readability of function 'push'. sort.Search(N, ...) will at most return N when no match, so ix should be compared with N. The previous version would compare ix with N+1 in case an additional item was appended. No bug resulted from this comparison, but it's not easy to understand why. Co-authored-by:Felix Lange <fjl@twurst.com> 
- 
Sina Mahmoodi authoredThe gcproc field tracks the amount of time spent processing blocks, and is used to trigger a state flush to disk when a certain threshold is reached. After the merge, single block insertion by CL is the most common source of block processing time, but this time was not added into gcproc. 
- 
Seungbae Yu authoredCo-authored-by:Felix Lange <fjl@twurst.com> 
- 
Sina Mahmoodi authoredHere we add special handling for sending an error response when the write timeout of the HTTP server is just about to expire. This is surprisingly difficult to get right, since is must be ensured that all output is fully flushed in time, which needs support from multiple levels of the RPC handler stack: The timeout response can't use chunked transfer-encoding because there is no way to write the final terminating chunk. net/http writes it when the topmost handler returns, but the timeout will already be over by the time that happens. We decided to disable chunked encoding by setting content-length explicitly. Gzip compression must also be disabled for timeout responses because we don't know the true content-length before compressing all output, i.e. compression would reintroduce chunked transfer-encoding. 
 
- 
- 06 Dec, 2022 1 commit
- 
- 
Felix Lange authoredThe new flag allows configuring an explicit endpoint which is to be announced in the DHT. This feature was originally developed for the discv5 wormhole experiment (#25798), but it's useful in other contexts as well. 
 
- 
- 05 Dec, 2022 4 commits
- 
- 
qiuhaohao authored
- 
Martin Holst Swende authoredThis adds stateRoot as a field in the JSON output. 
- 
Martin Holst Swende authoredThis 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 authoredThis 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 authoredThis 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 authoredThis 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 authoredThis 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 authoredFixes regression in #26266. 
- 
Sina Mahmoodi authoredFixes a regression from #26265, which made it so that the call only worked if all three parameters were provided. 
- 
Paweł Bylica authoredtests: update evm-benchmarks 
- 
setunapo authoredrefactoring without logic change 
- 
Sina Mahmoodi authoredweb3.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 authoredThis is to cater for more node providers. 
- 
Martin Holst Swende authoredThis 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 authoredWhile 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 authoredImplements EIP-3651, "Warm Coinbase", for Shanghai hardfork. Specification: https://eips.ethereum.org/EIPS/eip-3651. 
 
- 
- 21 Nov, 2022 2 commits
- 
- 
kumavis authoredThis change logs the path checked when encountering low disk space. 
- 
Martin Holst Swende authoredThis makes a couple of sometimes-failing tests less brittle. 
 
- 
- 17 Nov, 2022 5 commits
- 
- 
Martin Holst Swende authoredThis prevents DoS when connected to a malicious ethstats server. 
- 
Martin Holst Swende authoredThis 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 authoredThis PR improves and extends the tests a bit 
- 
Felix Lange authored
- 
Felix Lange authored
 
-