Commit Graph

14390 Commits

Author SHA1 Message Date
Corwin Smith
d39c1fde78 Merge branch 'master' into setupDocs 2022-11-16 22:38:42 -07:00
Corwin Smith
73454b0028 style code blocks 2022-11-16 22:36:25 -07:00
Corwin Smith
649918abe5 inline code styles 2022-11-16 21:37:01 -07:00
Corwin Smith
1d89df8cc1
Merge pull request #32 from ethereum/latest-releases-downloads
feat: latest releases downloads logic
2022-11-17 04:22:33 +01:00
Nicolás Quiroz
832ad6bab0 chore: reduce release name & version to a single request 2022-11-17 00:14:43 -03:00
Nicolás Quiroz
5d61fc3219 Merge branch 'master' of github.com:ethereum/geth-website into latest-releases-downloads 2022-11-16 21:24:24 -03:00
Nicolás Quiroz
e398c08f76
Merge pull request #24 from ethereum/downloads-desktop
Downloads desktop
2022-11-16 21:13:55 -03:00
Corwin Smith
3643120353 change requests 2022-11-16 17:05:04 -07:00
Paul Wackerow
8e6023c60b
fix, switch to correct gropher 2022-11-16 15:55:55 -08:00
Paul Wackerow
4e25c6bf94
linting 2022-11-16 15:06:56 -08:00
Paul Wackerow
87f1d60428
implement ButtonLinkSecondary component 2022-11-16 15:03:37 -08:00
Paul Wackerow
e9ca402279
create ButtonLinkSecondary component 2022-11-16 15:00:05 -08:00
Nicolás Quiroz
d7ed9e4d5b chore: move urls to constants 2022-11-16 19:52:03 -03:00
Paul Wackerow
8016016c68
prop clean up 2022-11-16 13:11:54 -08:00
Paul Wackerow
caaedf0335
refactor to Section components to accept SVG prop 2022-11-16 13:09:38 -08:00
Paul Wackerow
d791e0a1a3
replace downloads images with SVG components 2022-11-16 12:59:39 -08:00
Paul Wackerow
980255ebcf
build downloads svg components 2022-11-16 12:57:49 -08:00
Paul Wackerow
0bbb61cfb2
replace homepage images with SVG components
allows color of SVGs to be dynamically styled based on color mode choice
2022-11-16 12:14:48 -08:00
Paul Wackerow
483a822251
build homepage svg components 2022-11-16 12:11:17 -08:00
Nicolás Quiroz
83a2c81290 feat: add latest releases downloads logic 2022-11-16 16:01:23 -03:00
storyicon
add337e0f7
rpc: support injecting HTTP headers through context (#26023)
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>
2022-11-16 15:22:12 +01:00
Mark Tyneway
b4ea2bf7dd
all: implement EIP-1153 transient storage (#26003)
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/553


Co-authored-by: Sara Reynolds <snreynolds2506@gmail.com>
Co-authored-by: Martin Holst Swende <martin@swende.se>
Co-authored-by: Gary Rong <garyrong0905@gmail.com>
2022-11-16 10:18:52 +01:00
ligi
bc90a88263
ethclient: docs, fix misleading comment (#26189)
closes #26188
2022-11-16 08:44:54 +01:00
Paul Wackerow
384ecd0248
add sun icon when in dark mode 2022-11-15 20:55:48 -08:00
Paul Wackerow
fe4014c03c
enable light/dark mode toggle button 2022-11-15 18:00:50 -08:00
Paul Wackerow
c71e2e2e23
refactor colors to use semantic tokens 2022-11-15 18:00:31 -08:00
Paul Wackerow
d43682359f
update icon svg colors to use currentColor
enabled color-mode responsiveness with "color" prop
2022-11-15 17:52:53 -08:00
Paul Wackerow
e77c1507f5
fix hamburger spelling
switch fill color to "currentColor" to allow using dark mode responsive "color" prop
2022-11-15 17:50:02 -08:00
Paul Wackerow
d93e1b5d4d
setup color palette from design system 2022-11-15 17:37:58 -08:00
Corwin Smith
48553b284e Merge branch 'master' into downloads-desktop 2022-11-15 16:10:14 -07:00
Corwin Smith
71ce846b9e Merge branch 'master' into setupDocs 2022-11-15 16:07:00 -07:00
Corwin Smith
d096d10aba add main 2022-11-15 16:05:42 -07:00
Corwin Smith
4cd65f1b22 Remove flex from DownloadsHero 2022-11-15 15:19:12 -07:00
Corwin Smith
86ada0d098
fix footer regression (#29)
* fix footer regression

* fix social icon and copyright date
2022-11-15 16:24:27 -03:00
Felix Lange
ae42148093
rpc: fix connection tracking set in Server (#26180)
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.
2022-11-15 14:05:16 +01:00
Felix Lange
9afc6816d2
common/lru: add generic LRU implementation (#26162)
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.
2022-11-14 15:41:56 +01:00
Jolly Zhao
f58ebd9696
all: use github.com/deckarep/golang-set/v2 (generic set) (#26159)
Co-authored-by: Felix Lange <fjl@twurst.com>
2022-11-14 15:16:52 +01:00
Martin Holst Swende
8c5ce1107b
eth/filters: send rpctransactions in pending-subscription (#26126)
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
2022-11-14 14:48:01 +01:00
Martin Holst Swende
e34e540e4c
accounts/keystore: replace inotify with fsnotify (#26176) 2022-11-14 12:38:10 +01:00
Corwin Smith
14900bcdfa fix build issues 2022-11-13 22:40:42 -07:00
Corwin Smith
f46bdc3e1a test 2022-11-13 22:33:52 -07:00
Corwin Smith
2ccb3e5bc6 test 2022-11-13 22:28:00 -07:00
Corwin Smith
67396c8d7e add "@types/js-yaml": "^4.0.5" 2022-11-13 22:18:59 -07:00
Corwin Smith
10a0a3680a setup template to render for docs 2022-11-13 22:03:06 -07:00
Martin Holst Swende
8334b5f51a
common/lru: fix race in lru (#26164)
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.
2022-11-11 19:48:36 +01:00
Martin Holst Swende
ea65edaa28
eth, catalyst: fix flaky tests (#26153)
* eth/catalyst: fix time-dependent (flaky) test

* eth: increase timeout on TestTransactionPropagation
2022-11-11 13:22:54 +01:00
Felix Lange
c539bda166
metrics: improve reading Go runtime metrics (#25886)
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.
2022-11-11 13:16:13 +01:00
Felix Lange
62c973eba6
go.mod: minimum Go version 1.18 (#26160)
This will allow use of generics and other new standard library APIs
such as package net/netip.
2022-11-11 13:11:24 +01:00
Felix Lange
5b4c149f97
internal/debug: add --log.file option (#26149)
This adds an option to direct log output to a file. This feature has been
requested a lot. It's sometimes useful to have this available when running
geth in an environment that doesn't easily allow redirecting the output.

Notably, there is no support for log rotation with this change. The --log.file option
opens the file once on startup and then keeps writing to the file handle. 
This can become an issue when external log rotation tools are involved, so it's
best not to use them with this option for now.
2022-11-11 11:33:18 +01:00
protolambda
0ad2014026
go.mod: update status-im/keycard-go (#26141) 2022-11-10 01:32:02 +01:00