--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
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
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>
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.
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.
* 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>
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.
* 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
* 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>
* add gap between md content and right nav
* shorten max width of right nav divider
* make DocumentNav width responsive
Existing fixed width was too large after the 2rem of padding was added. Simply making it more narrow made it unnecessarily small on larger screen sizes. Clamp sets a min of chakra-size-40, max of chakra-size-58, while targeting an eighth of the screen width.
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>
* add bold for active docs link [Fixes#74]
* Add ::before indicator to active doc link
Removes bold styling per design
* Update documentation-links.yaml
Makes it so `id` is paired with either a `to` field OR a list of `items` but not both
* Updates hover styling for left docs nav
* clean up styling
Removes remaining underlines from links styled as buttons. Cleans up logic for conditionally showing the ::before pseudo element. Makes the ::before indicator slightly larger.
* tweak ::before indicator styling
* tweak ::before indicator styling
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.