Commit Graph

14453 Commits

Author SHA1 Message Date
Michael de Hoog 262bd38fce
eth/tracers: return proper error from debug_TraceTransaction when tx not found (#26211)
Currently 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>
2022-12-10 08:34:43 -05:00
Paul Wackerow 3dc4bd5cba
fixes broken link
double slash causing netlify build errors
2022-12-09 13:42:29 -08:00
Paul Wackerow 381d1931d9
fixes broken link
double slash causing netlify build errors
2022-12-09 13:40:54 -08:00
Paul Wackerow d5e3db36ca
Merge branch 'master' into search-backup 2022-12-09 13:35:21 -08:00
Paul Wackerow c9ef66acbf
add submit type to search button 2022-12-09 13:29:14 -08:00
Felix Lange 3775e198df
event: add FeedOf[T] (#26310)
This 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.
2022-12-09 16:20:46 +01:00
Felix Lange 3315bad256
core: pass block into collectLogs (#26335)
While 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.
2022-12-09 16:14:33 +01:00
Sina Mahmoodi 711afbc7fd
core,eth: add `debug_setTrieFlushInterval` to change trie flush frequency (#24785)
This 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.
2022-12-09 07:40:17 -05:00
Corwin Smith 35db2a4906 add redirects structure 2022-12-09 00:22:16 -07:00
Corwin Smith 4ca9d12193 update fontSize for h1 2022-12-08 22:52:04 -07:00
Corwin Smith 4315911af4
Merge pull request #139 from ethereum/empty-state-releases
feat: add empty state for platforms without releases
2022-12-09 03:56:48 +01:00
Corwin Smith 4dee3f52f1
Merge pull request #140 from ethereum/add-missing-link-prop
fix: adds missing legacyBehavior prop [Fixes #98]
2022-12-09 03:53:38 +01:00
Corwin Smith 7904e5878e
Merge branch 'master' into add-missing-link-prop 2022-12-09 03:51:36 +01:00
Corwin Smith a66cffef76
Merge pull request #141 from ethereum/buttons-hover-color
Buttons hover color
2022-12-09 03:43:09 +01:00
rjl493456442 890e2efca2
eth, cmd: remove syncTarget from eth config (#26330)
--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
2022-12-08 14:40:43 +01:00
Paul Wackerow e8faee0bd3
update search to form get request
similar to existing site, using duckduckgo using the get method of a form element. Converted magnifying class wrapped in anchor tag to be a submit button instead
2022-12-07 15:47:35 -08:00
zhiqiangxu a9dfac0332
p2p/discover: improve nodesByDistance.push code (#26019)
This 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>
2022-12-07 23:31:47 +01:00
Nicolás Quiroz 026757a5db chore: prettier 2022-12-07 18:41:50 -03:00
Nicolás Quiroz 640b72abc6 fix: add :hover color for hero buttons on dark mode 2022-12-07 18:40:13 -03:00
Nicolás Quiroz d8996d1c95 fix: adds missing legacyBehavior prop 2022-12-07 17:09:43 -03:00
Nicolás Quiroz d71e3177d8 Merge branch 'master' of github.com:ethereum/geth-website into empty-state-releases 2022-12-07 16:59:56 -03:00
Nicolás Quiroz 527dad3635 fix: borderBottom on DownloadsTable 2022-12-07 16:59:44 -03:00
Nicolás Quiroz af86168c2f feat: add empty state for platforms without releases 2022-12-07 14:30:09 -03:00
Paul Wackerow 11035bf0c4
adjusts light primary to green.700 for contrast (#137)
Improves contrast ratio when paired with yellow.50 and removes browser a11y warnings
2022-12-07 14:26:23 -03:00
Sina Mahmoodi 6891288787
core: fix state flushing for catalyst mode (#26319)
The 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.
2022-12-07 17:36:54 +01:00
Seungbae Yu 42212808f0
p2p/nat: handle responses with alternative port in NAT-PMP (#26321)
Co-authored-by: Felix Lange <fjl@twurst.com>
2022-12-07 16:22:04 +01:00
Paul Wackerow faa0640465
update green.900 value (#135)
used for button background; increases contrast ratio
2022-12-07 11:57:25 -03:00
Sina Mahmoodi f20eba426a
graphql, node, rpc: improve HTTP write timeout handling (#25457)
Here 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.
2022-12-07 14:02:14 +01:00
Paul Wackerow 871f55587e
search input directs query to google 2022-12-06 21:09:09 -08:00
Corwin Smith 1b5195908c close mobile docs dropdown when page is selected 2022-12-06 16:19:55 -07:00
Paul Wackerow 56b9963afd
Markdown header margin fix [Fixes #83] (#120)
* expand parseHeadingId

Will produce a kebab-case heading ID from string if none explicitly declared in the markdown. Always returns an object with the children, title and headingId.

* remove redundant code from MDComponents.tsx

parseHeadingIds now always returns an object with an ID, removing need for conditionals here

* Use Box instead of flex Stack for MDX content

Allows stacked vertical margins to properly collapse into each other

* fix: h2 top margin to 3rem on mobile

* remove unneeded line

* extract and rename getKebabCaseFromName util fn

* Update src/pages/[...slug].tsx

* Update src/utils/parseHeadingId.ts

Co-authored-by: Corwin Smith <cssmittys@gmail.com>

* move constant inside function

make variable name all caps as a string constant

* clean up utils/index.ts to abc order

Co-authored-by: Corwin Smith <cssmittys@gmail.com>
2022-12-06 17:04:09 -03:00
Nicolás Quiroz 332e972397
fix: external links (#133)
* fix: footer external links

* fix: ButtonLinkSecondary external links

* fix: docs external links
2022-12-06 17:02:55 -03:00
Corwin Smith 4a464da994
Merge pull request #122 from ethereum/document-nav-spacing
Fix spacing for DocumentNav links [Fixes #87]
2022-12-06 19:07:48 +01:00
Paul Wackerow 4f45c02127
Merge branch 'master' into document-nav-spacing 2022-12-06 10:04:33 -08:00
Corwin Smith 50b50e853c
Merge pull request #128 from ethereum/breadcrumbHeaderBug
[Logic bug] - Breadcrumbs contains header id
2022-12-06 18:56:13 +01:00
Corwin Smith 7e9e22a671 remove margin styles for document-nav-link in textStyles.ts 2022-12-06 10:54:50 -07:00
Corwin Smith d93e4373e2
Update src/components/UI/docs/DocumentNav.tsx
Co-authored-by: Paul Wackerow <54227730+wackerow@users.noreply.github.com>
2022-12-06 10:53:11 -07:00
Corwin Smith 5186a1f74f
Update src/components/UI/docs/Breadcrumbs.tsx
Co-authored-by: Paul Wackerow <54227730+wackerow@users.noreply.github.com>
2022-12-06 10:35:48 -07:00
Corwin Smith 9107cf3988
Update src/components/UI/docs/Breadcrumbs.tsx
Co-authored-by: Paul Wackerow <54227730+wackerow@users.noreply.github.com>
2022-12-06 10:35:44 -07:00
Felix Lange b44abf56a9
cmd/devp2p: add --extaddr flag (#26312)
The 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.
2022-12-06 16:25:53 +01:00
Paul Wackerow 9bbcd71078
Fix hover for DocumentNav links [Fixes #73] (#107)
* fix hover for DocumentNav links [Fixes #73]

* use Box instead of flex Stack

Allows vertical margins of children to collapse into each other

* Revert "use Box instead of flex Stack"

This reverts commit a4811127ccd7424da8f51e2a056aee447fc5db08.

* add :focus and :active states
2022-12-06 10:46:18 -03:00
Paul Wackerow 892c743b78
Use long month formatting for last edit date [Fixes #86] (#121)
* use long month formatting for last edit date

* last -> Last

* Update src/pages/[...slug].tsx

Co-authored-by: Nicolás Quiroz <nh.quiroz@gmail.com>

Co-authored-by: Corwin Smith <cssmittys@gmail.com>
Co-authored-by: Nicolás Quiroz <nh.quiroz@gmail.com>
2022-12-06 10:43:12 -03:00
Paul Wackerow bbd4a31bad
add max width of 100% to md content on mobile (#130) 2022-12-06 10:35:53 -03:00
Joe 9d3be9b1d6 Merge branch 'master' of https://github.com/ethereum/geth-website 2022-12-06 11:14:19 +00:00
Joe e983c7e64d update redirects and fix line break on cli page 2022-12-06 11:14:17 +00:00
Paul Wackerow 93c255ce39
Adjust link styling for various states [Fixes #89] (#129)
* fix: link styling for various states

updates hover/active/focus link states to match design system

* hover underline color to secondary
2022-12-05 21:40:07 -03:00
Corwin Smith 26673626d2
Remove color style for list items, and change first-child to first-of-type based on console error for SSR (#127) 2022-12-05 17:17:11 -03:00
Paul Wackerow 04adbb749b
Merge pull request #116 from ethereum/display-12-releases
fix: show 2 latest releases for linux
2022-12-05 21:00:48 +01:00
Corwin Smith a11ce6cb8a
Merge pull request #117 from thouravi/patch-1
Extracted the style objects and props into variable
2022-12-05 20:07:11 +01:00
Corwin Smith 5926da4aa7 filter out anchor tag 2022-12-05 11:38:04 -07:00