Commit graph

188 commits

Author SHA1 Message Date
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
Daniel Liu
2ce0a220a2
cmd, node, rpc: add ReadHeaderTimeout config option #25338 (#972) 2025-04-24 19:01:11 +08:00
Daniel Liu
94b3ca1eeb
all: remove version field #25096 (#970) 2025-04-24 18:55:15 +08:00
Daniel Liu
4fb622bfd0
all: remove public field from rpc.API #25059 (#969) 2025-04-24 18:53:59 +08:00
Daniel Liu
d751e88fa5
internal/jsre, node, rpc: fix goroutine leaks in tests #24211 (#964) 2025-04-24 18:36:10 +08:00
JukLee0ira
10dd75e82f
node: serve JSON-RPC on custom path prefix #22184 (#952) 2025-04-24 11:34:26 +08:00
JukLee0ira
b1e08e6642
all: refactor package node #21105 (#923) 2025-04-10 18:52:49 +08:00
Daniel Liu
6ec0d13873 core/txpool, crypto, node: fix os.CreateTemp in test (#31172) 2025-03-19 18:02:46 +08:00
Daniel Liu
639d3f63a0 node: warn when using deprecated config/resource files (#18199) 2025-02-21 15:30:55 +08:00
Daniel Liu
d8fb27b987 all: clean up and properly abstract database accesses (#19021) 2025-02-11 18:28:50 +08:00
Daniel Liu
5b10b2441c all: use T.TempDir to create temporary test directories (#24633) 2025-01-24 16:54:08 +08:00
Daniel Liu
f74eacd2cd node: remove dependency on wallet backend packages (#23019)
* accounts: new AddBackends method in manager

* node,cmd/geth: mv accman backend init to cmd/geth

* node,cmd/geth: mv scrypt config downstreawm from node

* accounts: use static buffer size for accman sub chan

minor fix

* accounts,cmd/geth: update accman backends through its event loop

* accounts,node: add comments

* accounts: un-export newBackendEvent

* accounts: use chan instead of wg in newBlockEvent

* node: rename isKeyDirEphem

* accounts,cmd: AddBackends->AddBackend

* accounts: fix potential blocking when adding backend
2025-01-24 16:18:30 +08:00
Daniel Liu
e33909649b cmd/utils: don't enumerate usb when --usb isn't set (#22130) 2025-01-24 16:18:30 +08:00
Daniel Liu
2e21b96101 accounts/usbwallet: add webusb trezor support (#19588) 2025-01-24 16:18:29 +08:00
Daniel Liu
100ea1c8e0 accounts/scwallet: add a switch to specify path to sc daemon (#19439) 2025-01-24 16:18:29 +08:00
Daniel Liu
1f9778bb9f accounts: disable unlock account on open HTTP (#17037) 2025-01-24 16:18:29 +08:00