Daniel Liu
42f49e3e20
test(node): fix flaky jwt-test #30388 ( #1999 )
...
This PR fixes a flaky jwt-test.
The test is a jwt "from one second in the future". The test passes; the
reason for this is that the CI-system is slow, and by the time the jwt
is actually evaluated, that second has passed, and it's no longer
future.
Alternative to #30380
Co-authored-by: Martin HS <martin@swende.se>
2026-02-10 16:42:20 +05:30
Daniel Liu
cf99bd07ff
refactor(node): use standalone flock dependency #19376 #26633 ( #1993 )
...
* refactor(node): switching prometheus flock location to tsdb #19376
* refactor(node): use standalone flock dependency #26633
2026-02-10 16:41:27 +05:30
Daniel Liu
f08ea319d0
refactor(node): remove unused err var #32398 ( #2001 )
2026-02-05 16:13:55 +05:30
Daniel Liu
acc9371b8b
fix(node): fix HTTP server always force closing #25755 ( #1998 )
2026-02-05 16:13:28 +05:30
Daniel Liu
5199446cb6
style(node): fix typos ( #1997 )
2026-02-05 15:31:14 +05:30
Daniel Liu
46765b8486
test(node): more linters #24783 ( #1996 )
2026-02-05 15:30:40 +05:30
Daniel Liu
67a6e34188
perf(node, p2p): avoid unnecessary check len of map ( #1995 )
2026-02-05 14:47:48 +05:30
wit liu
1394ea09f0
node: fix error condition in gzipResponseWriter.init() #32896 ( #1888 )
2025-12-25 09:27:11 +05:30
wit liu
d6309612fc
all: fix unnecessary whitespace ( #1800 )
2025-12-08 15:07:11 +05:30
Daniel Liu
eaaeea0cad
all: use slices.Sort() to sort strings ( #1712 )
2025-12-07 15:49:13 +05:30
Daniel Liu
c922f26d0c
all: replace strings.Split with more efficient strings.SplitSeq ( #1698 )
2025-12-07 15:42:23 +05:30
Daniel Liu
eef5242fa3
all: pre-allocate memory for slices and maps, close XFN-148 ( #1714 )
2025-11-14 20:13:36 +05:30
Daniel Liu
4ec6e8cd58
cmd, node, p2p: implement whitelist and blacklist for peers ( #1331 )
2025-08-20 15:14:56 +08:00
JukLee0ira
b413f71763
all: remove personal RPC namespace #30704 ( #1180 )
2025-07-02 09:11:58 +08:00
JukLee0ira
69e9f41b4c
all: replace path.Join with filepath.Join #29479 ( #1179 )
2025-07-01 18:26:02 +08:00
JukLee0ira
1dc8158ef0
all: use slices.Contains #29459 ( #1177 )
2025-07-01 17:49:42 +08:00
JukLee0ira
bf093348b7
node: fix test if directory already exists #29159 ( #1176 )
2025-07-01 17:48:18 +08:00
JukLee0ira
c0315121b4
all: replace fmt.Errorf() with errors.New() if no param required #29126 ( #1175 )
2025-07-01 17:46:50 +08:00
JukLee0ira
1c5b5ea883
node: remove unused error return from Attach #27450 ( #1155 )
2025-06-26 10:51:24 +08:00
JukLee0ira
b15a8ac67e
cmd/geth: accountcmd no need to acquire the datadir lock #27084 ( #1154 )
2025-06-26 10:50:28 +08:00
JukLee0ira
37bd0198d9
node: allow listening on IPv6 address #27635 ( #1156 )
2025-06-25 18:40:13 +08:00
JukLee0ira
16f41238b8
cmd, console, node : deprecate personal namespace #26390 ( #1153 )
2025-06-25 17:57:33 +08:00
JukLee0ira
cc8508bd38
node: drop support for static & trusted node list files #25610 ( #1151 )
2025-06-25 17:53:36 +08:00
JukLee0ira
217a01e927
node/config: rm not used path.Join #25475 ( #1145 )
2025-06-24 15:55:35 +08:00
JukLee0ira
30e0bfe71e
node: add graceful shutdown timeout for HTTP server #25258 ( #1144 )
2025-06-24 15:52:50 +08:00
JukLee0ira
a347ff7839
node: remove version field #25096 ( #1143 )
2025-06-24 15:31:53 +08:00
JukLee0ira
edd683035b
node: prevent exposing engine API on unauthenticated endpoint #25939 ( #1142 )
2025-06-24 15:20:00 +08:00
JukLee0ira
5ad950ea51
all: Remove concept of public/private API definitions #25053 ( #1141 )
2025-06-24 15:15:25 +08:00
JukLee0ira
a74b87307c
all: use strings.EqualFold for string comparison #24890 ( #1134 )
2025-06-23 16:00:32 +08:00
JukLee0ira
e966001937
node: fix stopping websocket rpc.Server #23211 ( #1133 )
2025-06-23 15:58:25 +08:00
JukLee0ira
a189b3c36f
internal/web3ext,node: migrate node admin API (Start|Stop)RPC->HTTP #22461 ( #1132 )
2025-06-23 15:56:45 +08:00
JukLee0ira
70a274e4ec
node: show websocket url in logs #22307 ( #1131 )
2025-06-23 15:39:46 +08:00
JukLee0ira
e351d96e01
node: rename startNetworking to openEndpoints #22105 ( #1130 )
2025-06-23 14:56:09 +08:00
JukLee0ira
1b0420f19a
node: support expressive origin rules in ws.origins #21481 ( #1128 )
2025-06-23 14:47:53 +08:00
Daniel Liu
aa7c8644c3
all: fix tests on 32-bit and windows + minor rpc fixes #21871 ( #1055 )
2025-06-03 11:47:11 +08:00
JukLee0ira
47dae16a40
node: add JWT secret log line #25095 ( #1036 )
2025-05-16 12:03:11 +08:00
JukLee0ira
c145287e87
node: allow JWT pass by file only #24579 ( #1035 )
2025-05-16 12:01:36 +08:00
JukLee0ira
7a659c9e7d
node: change JWT error status to 401 Unauthorized #25629 ( #1029 )
2025-05-08 16:24:41 +08:00
JukLee0ira
fe422720f3
cmd, node: implement --authrpc-vhosts flag #24506 ( #1028 )
2025-05-08 11:13:44 +08:00
Daniel Liu
266cf85510
rpc: remove deprecated method Notifier.Closed #29162 ( #1022 )
...
Co-authored-by: Undefinedor <wanghao@imwh.net>
2025-05-06 09:44:20 +08:00
Daniel Liu
d25c6f02a7
all: not copy loop var for golang v1.22 ( #1020 )
2025-04-29 17:27:36 +08:00
Daniel Liu
35a202675d
node, rpc: add configurable HTTP request limit #28948 ( #1010 )
...
Adds a configurable HTTP request limit, and bumps the engine default
Co-authored-by: Felix Lange <fjl@twurst.com>
2025-04-29 17:06:06 +08:00
Daniel Liu
c75623ace7
rpc: add limit for batch request and response size #26681 ( #998 )
2025-04-28 17:00:30 +08:00
JukLee0ira
b899363d17
node: set JWT expiry to 60 seconds #25416
2025-04-28 10:25:07 +08:00
JukLee0ira
0e84001c0b
node, rpc: add JWT auth support in client #24911
2025-04-28 10:25:07 +08:00
Daniel Liu
e9b0bc7d74
node: ensure resp.body closed #26969 ( #987 )
2025-04-28 09:12:42 +08:00
JukLee0ira
80547a50d9
cmd/geth: make authrpc listening address settable from cli #24522 ( #994 )
2025-04-27 19:55:03 +08:00
JukLee0ira
230a2f09ba
cmd/geth, node, rpc: implement jwt tokens #24364 ( #993 )
...
* cmd/geth, node, rpc: implement jwt tokens #24364
* fix
2025-04-27 18:17:09 +08:00
JukLee0ira
b4308ba733
internal/ethapi: disable sending of non eip155 replay protected tx #22339 ( #971 )
...
* internal/ethapi: disable sending of non eip155 replay protected tx #22339
* eth: optimize the initialization logic of EthAPIBackend
* fix
2025-04-25 11:55:52 +08:00
Daniel Liu
58e9b8c8f6
node, rpc: improve HTTP write timeout handling #25457 ( #982 )
...
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.
Co-authored-by: Sina Mahmoodi <1591639+s1na@users.noreply.github.com>
2025-04-25 08:01:44 +08:00