Commit Graph

14428 Commits

Author SHA1 Message Date
Corwin Smith 094ef12af2 Merge branch 'homepage-mobile' into downloads-mobile 2022-10-07 19:43:17 -06:00
Nicolás Quiroz d1ee8d02ff chore: add textStyles to theme 2022-10-07 20:42:06 -05:00
Corwin Smith 41d0dc38bc Merge branch 'homepage-mobile' into downloads-mobile 2022-10-07 19:13:13 -06:00
Nicolás Quiroz 0d0c486240 chore: add Button primary variant on theme 2022-10-07 20:05:28 -05:00
Nicolás Quiroz b60e17150b chore: move colors to theme 2022-10-07 20:05:00 -05:00
Corwin Smith a1b31a316b small prop refactor 2022-10-07 18:48:57 -06:00
Corwin Smith ac622c103d add test data and table styles 2022-10-07 18:37:57 -06:00
Corwin Smith 5153ea7f07 add DataTable component 2022-10-07 14:37:13 -06:00
Corwin Smith 8830faa9ca add todos 2022-10-07 14:13:09 -06:00
Corwin Smith e0ff52219b Go Ethereum -> go-ethereum 2022-10-07 03:08:56 -06:00
Corwin Smith 617a13f211 working on table 2022-10-06 23:48:24 -06:00
Corwin Smith cbfc1a70cd add tabs 2022-10-06 22:15:51 -06:00
Corwin Smith 0ee133cb81 add skeleton for all sections 2022-10-06 14:46:06 -06:00
Corwin Smith c921c775ef create DownloadsSection component 2022-10-06 13:38:42 -06:00
Felix Lange 564751668a
cmd/geth: fix help output issues (#25941)
This update resolves an issue where StringSliceFlag would not be
rendered correctly in help output + mention that -H can be used multiple times

Co-authored-by: Martin Holst Swende <martin@swende.se>
2022-10-06 19:59:23 +02:00
Ryan Schneider df2b3cd2bd
eth/filters: fix for eth_getLogs failing with finalized- and safe tag (#25922)
Prior to this change, f.begin (and possibly end) stay negative, leading to strange results later in the code. With this change, filters using "safe" and "finalized" block produce results consistent w/ the overall behavior of this RPC method.

Co-authored-by: Martin Holst Swende <martin@swende.se>
2022-10-06 14:43:55 +02:00
Felix Lange 9cddfe92a3
node: prevent exposing engine API on unauthenticated endpoint (#25939)
* node: prevent exposing engine API on unauthenticated endpoint

* node: improve RPC setup
2022-10-06 14:01:04 +02:00
Martin Holst Swende 067bac3f24
core, ethclient/gethclient: improve flaky tests (#25918)
* ethclient/gethclient: improve time-sensitive flaky test

* eth/catalyst: fix (?) flaky test

* core: stop blockchains in tests after use

* core: fix dangling blockchain instances

* core: rm whitespace

* eth/gasprice, eth/tracers, consensus/clique: stop dangling blockchains in tests

* all: address review concerns

* core: goimports

* eth/catalyst: fix another time-sensitive test

* consensus/clique: add snapshot test run function

* core: rename stop() to stopWithoutSaving()

Co-authored-by: Felix Lange <fjl@twurst.com>
2022-10-06 13:39:20 +02:00
Martin Holst Swende deead99731
core/bloombits: speed up windows-test (#25844)
core/bloombits: remove micro-sleep
2022-10-06 11:41:07 +02:00
rjl493456442 e50aeac4d0
eth/traces: add state limit (#25812)
This PR introduces a new mechanism in chain tracer for preventing creating too many trace states.

The workflow of chain tracer can be divided into several parts:

- state creator generates trace state in a thread
- state tracer retrieves the trace state and applies the tracing on top in another thread
- state collector gathers all result from state tracer and stream to users

It's basically a producer-consumer model here, while if we imagine that the state producer generates states too fast, then it will lead to accumulate lots of unused states in memory. Even worse, in path-based state scheme it will only keep the latest 128 states in memory, and the newly generated state will invalidate the oldest one by marking it as stale.

The solution for fixing it is to limit the speed of state generation. If there are over 128 states un-consumed in memory, then the creation will be paused until the states are be consumed properly.
2022-10-06 10:48:04 +02:00
Delweng 5d52a35931
eth/tracers: add diffMode to prestateTracer (#25422)
Backwards compatibility warning: The result will from now on omit empty fields instead
of including a zero value (e.g. no more `balance: '0x'`).

The prestateTracer will now take an option `diffMode: bool`. In this mode
the tracer will output the pre state and post data for the modified parts of state.
Read-only accesses will be completely omitted. Creations (be it account or slot)
will be signified by omission in the `pre` list and inclusion in `post`. Whereas
deletion (be it account or slot) will be signified by inclusion in `pre` and omission
in `post` list.

Signed-off-by: Delweng <delweng@gmail.com>
2022-10-05 19:05:43 -05:00
Joe e2278f2c61 update landing page 2022-10-05 10:37:20 +01:00
Joe 07137a2ec3 add logs page and update mining page 2022-10-05 10:37:08 +01:00
Corwin Smith a3a2e5c319 downloads header 2022-10-04 23:02:21 -06:00
Martin Holst Swende e14164d516
core: fix linter complaint (#25927) 2022-10-04 18:09:05 +02:00
Joe e54b879469 initial commit for logs page 2022-10-04 14:54:38 +01:00
Péter Szilágyi 4f7a425aa8
Merge pull request #25924 from holiman/comments_fix
all: fix docstrings
2022-10-04 13:30:00 +03:00
Martin Holst Swende ee301c750b
all: fix docstrings 2022-10-04 09:18:02 +02:00
Nicolás Quiroz 57809bef2a chore: update h2 styles 2022-10-03 11:40:07 -03:00
Nicolás Quiroz cdfddbd32c fix: QuickLinks title style 2022-10-03 11:18:22 -03:00
rjl493456442 1913b50111
eth, miner: add timeout for building sealing block (#25407)
* eth, miner: add timeout for building sealing block

* eth, cmd, miner: add newpayloadtimeout flag

* eth, miner, cmd: address comments

* eth, miner: minor fixes

Co-authored-by: Martin Holst Swende <martin@swende.se>
2022-10-03 14:10:00 +02:00
Martin Holst Swende f61b50b1e8
eth/protocols/snap: serve snap requests when possible (#25644)
This PR makes it so that the snap server responds to trie heal requests when possible, even if the snapshot does not exist. The idea being that it might prolong the lifetime of a state root, so we don't have to pivot quite as often.
2022-10-03 13:37:17 +02:00
zhiqiangxu a724163e59
core/types: add a testcase to TestLegacyReceiptDecoding (#25909)
add a testcase to TestLegacyReceiptDecoding
2022-10-03 12:56:21 +02:00
Joe 79bd2a1e83 add missing image 2022-09-30 15:06:35 +01:00
Nicolás Quiroz 630dc2398c chore: update _document 2022-09-30 10:27:47 -03:00
Nicolás Quiroz 45f82e2793 chore: update constants 2022-09-30 10:27:30 -03:00
Nicolás Quiroz 78ef312f38 chore: update theme 2022-09-30 10:27:22 -03:00
Nicolás Quiroz 25daae2324 feat: add homepage UI components 2022-09-30 10:27:05 -03:00
Nicolás Quiroz 6ba9dc891e chore: update Layout 2022-09-30 10:26:29 -03:00
Nicolás Quiroz e0464a7b26 chore: update image paths 2022-09-30 10:26:00 -03:00
Nicolás Quiroz b04df9d3c6 chore: move images 2022-09-30 10:25:35 -03:00
Joe c8ec646529 update mining page 2022-09-30 13:44:54 +01:00
Joseph Cook 41aa61dbec
fix note format 2022-09-30 13:28:38 +01:00
Martin Holst Swende ea26fc8a6c
cmd/geth, cmd/utils: geth attach with custom headers (#25829)
This PR makes it possible to set custom headers, in particular for two scenarios: 

- geth attach
- geth commands which can use --remotedb, e..g geth db inspect

The ability to use custom headers is typically useful for connecting to cloud-apis, e.g. providing an infura- or alchemy key, or for that matter access-keys for environments behind cloudflare.  

Co-authored-by: Felix Lange <fjl@twurst.com>
2022-09-30 13:50:25 +02:00
Joe df52f6ca0b add list of redirects to url-list.csv 2022-09-30 09:32:40 +01:00
Martin Holst Swende 07e0704ca9
internal/flags: fix issue with stringslice migration (#25830)
This fixes a cornercase bug where the flag migration would mess
up the value of StringSlice flags.
2022-09-29 20:16:36 +02:00
Mikhail Vazhnov f651d6d56b
accounts/abi/bind: parse ABI only once on bind (#25574)
* accounts/abi/bind: parse ABI once on bind

* accounts/abi/bind: suppress 'imported and not used' error for abi package
2022-09-29 11:44:22 +02:00
Sina Mahmoodi ff1f49245d
eth/tracers: remove revertReasonTracer, add revert reason to callTracer (#25508)
* eth/tracers: add revertReason to callTracer

* update callframe gen json

* add revertal to calltrace test
2022-09-29 11:36:07 +02:00
Ceyhun Onur c2918c2f47
accounts/abi: return toGoType error immediately (#25565) 2022-09-29 10:47:12 +02:00
rjl493456442 052c634917
core: rework tx indexer (#25723)
This PR reworks tx indexer a bit. Compared to the original version, one scenario is no longer handled - upgrading  from legacy geth without indexer support. 

The tx indexer was introduced in 2020 and have been present through hardforks, so it can be assumed that all Geth nodes have tx indexer already. So we can simplify the tx indexer logic a bit:

-    If the tail flag is not present, it means node is just initialized may or may not with an ancient store attached. In this case all blocks are regarded as unindexed
-   If the tail flag is present, it means blocks below tail are unindexed, blocks above tail are indexed

This change also address some weird cornercases that could make the indexer not work after a crash.
2022-09-29 09:50:24 +02:00