Commit graph

532 commits

Author SHA1 Message Date
Daniel Liu
5b8c6ef8fd
feat(p2p): swarm POC3 #17041 (#2059) 2026-02-28 17:30:04 +04:00
Daniel Liu
ad0eea0f07
refactor(crypto): vendor in golang.org/x/crypto/sha3 #33323 (#2046)
The upstream libray has removed the assembly-based implementation of
keccak. We need to maintain our own library to avoid a peformance
regression.

---------

Co-authored-by: Felix Lange <fjl@twurst.com>
Co-authored-by: lightclient <lightclient@protonmail.com>
2026-02-28 17:23:57 +04:00
Daniel Liu
906efdd4e7
chore(p2p): changes necessary by swarm-network-rewrite #16898 (#2051) 2026-02-28 16:58:25 +04:00
Daniel Liu
50210d90e3
refactor(all): remove term whitelist and blacklist (#1994) 2026-02-10 17:09:21 +05:30
Daniel Liu
7dc82dde0f
fix(p2p): don't discard reason sent by Disconnect() #16559 (#2009) 2026-02-10 16:50:37 +05:30
Daniel Liu
d8ce54db87
feat(p2p): add egress/ingress traffic metrics to discv5 udp transport #16369 (#2011) 2026-02-06 14:40:23 +05:30
Daniel Liu
a46e6a9a25
feat(p2p): ENR updates for discovery v4 compatibility #16679 (#2010) 2026-02-06 13:49:44 +05:30
Daniel Liu
70e17f09cd
fix(p2p): fix websocket log line parsing in exec p2p/simulations adapter #16667 (#2008) 2026-02-06 13:26:18 +05:30
Daniel Liu
59e9c72d94
styel(p2p): golint updates for this or self warning #16577 (#2007) 2026-02-06 13:25:53 +05:30
Daniel Liu
6fc437394c
style(p2p): changed if-else blocks to conform with golint #16660 (#2006) 2026-02-06 13:25:37 +05:30
Daniel Liu
5c2ac4d51c
refactor(p2p): enable goimports and varcheck linters #16446 (#2005) 2026-02-06 13:23:25 +05:30
Daniel Liu
9d79d44f1b
fix(p2p): a few minor code inspection fixes #18393 (#2004) 2026-02-06 13:23:01 +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
267222d4a5
all: fix goimports warning (#1903) 2026-01-04 17:22:26 +05:30
Daniel Liu
6a3b92b701
core/types: change SetCodeTx.ChainID to uint256 #30982 (#1840) 2025-12-25 09:26:44 +05:30
wit liu
a83c43f240
all: use 0x-prefix string for type Address in log message (#1874) 2025-12-19 08:55:21 +04:00
wit liu
d6309612fc
all: fix unnecessary whitespace (#1800) 2025-12-08 15:07:11 +05:30
wit liu
0aeb971b33
p2p: fix unused warnings (#1804) 2025-12-08 13:01:07 +05:30
Daniel Liu
eaaeea0cad
all: use slices.Sort() to sort strings (#1712) 2025-12-07 15:49:13 +05:30
Daniel Liu
35c905a131
p2p: use slices package for sorting #27494 (#1705) 2025-12-07 15:44:25 +05:30
Daniel Liu
0ad629d484
p2p: use package slices to sort in PeersInfo #29957 (#1700) 2025-12-07 15:42:51 +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
ec08863ba0
all: use WaigGroup.Go() to simplify code (#1699) 2025-11-29 17:17:08 +05:30
wit liu
4faefad7a5
p2p: remove unused ticketRefByWaitTime and nextTicketReg (#1709) 2025-11-14 16:29:39 +05:30
Daniel Liu
58c066f053
all: handle err from func rlp.Encode, close XFN-127 (#1692) 2025-11-03 12:45:19 +05:30
wit liu
79460e4bfb
all: fix whitespace error of golangci-lint, remove extra empty lines (#1624) 2025-10-19 14:42:12 +08:00
wit liu
f709ef2edb
all: remove extra empty lines (#1574) 2025-10-08 12:25:10 +08:00
Daniel Liu
241a5b3fb2
all: using testing.B.Loop (#1554)
* p2p: using testing.B.Loop

* core/state: using testing.B.Loop

* eth: using testing.B.Loop

* log: using testing.B.Loop

* core: using testing.B.Loop

* core/vm: using testing.B.Loop

* core/types: using testing.B.Loop

* crypto: using testing.B.Loop
2025-09-24 07:59:48 +08:00
wit liu
d20f91057a
all: fix whitespace (#1572) 2025-09-24 07:58:40 +08:00
Daniel Liu
294591e67e
all: remove duplicate word in comments (#1570) 2025-09-24 07:57:33 +08:00
Daniel Liu
31f5c7da88
all: remove deprecated uses of math.rand #26710 (#1549) 2025-09-22 20:42:14 +08:00
wit liu
d9ae317a38
all: format golang files (#1548)
Co-authored-by: wit <wit765765346@gmail>
2025-09-21 19:41:54 +08:00
Daniel Liu
fb5cdfc729
event, p2p/simulations/adapters: fix rare goroutine leaks #20657 (#1541)
Co-authored-by: Boqin Qin <bobbqqin@bupt.edu.cn>
Co-authored-by: Felix Lange <fjl@twurst.com>
2025-09-21 19:38:03 +08:00
wit liu
a663ea311c
all: fix white space (#1529)
Co-authored-by: wit <wit765765346@gmail>
2025-09-21 19:01:34 +08:00
wit liu
590cbafae9
all: fix goimports (#1521)
Co-authored-by: wit <wit765765346@gmail>
2025-09-21 18:57:54 +08:00
wit liu
99e2885b03
all: fix misspell (#1510)
Co-authored-by: wit <wit765765346@gmail>
2025-09-17 08:27:52 +08:00
wit liu
4a6fccaf69
all: fix whitespace (#1506)
Co-authored-by: wit <wit765765346@gmail>
2025-09-17 08:23:06 +08:00
wit liu
a5d03e4a8a
all: fix inconsistent receiver name (#1494)
Co-authored-by: wit <wit765765346@gmail>
2025-09-17 08:15:23 +08:00
Daniel Liu
4ec6e8cd58
cmd, node, p2p: implement whitelist and blacklist for peers (#1331) 2025-08-20 15:14:56 +08:00
JukLee0ira
1c5b5ea883
node: remove unused error return from Attach #27450 (#1155) 2025-06-26 10:51:24 +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
80abc58f25
all: replace some cases of strings.SplitN with strings.Cut #28446 (#1007)
Co-authored-by: Håvard Anda Estensen <haavard.ae@gmail.com>
2025-04-28 18:07:59 +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
94b3ca1eeb
all: remove version field #25096 (#970) 2025-04-24 18:55:15 +08:00
Daniel Liu
a997425b03
all: fix warning of DeepEqual on error #23624 (#960) 2025-04-24 18:31:47 +08:00
Daniel Liu
1667b1027d
p2p: fix goroutine leaks in unit tests #20666 (#954) 2025-04-22 15:14:21 +08:00
JukLee0ira
b1e08e6642
all: refactor package node #21105 (#923) 2025-04-10 18:52:49 +08:00
JukLee0ira
2d33123b0a p2p: measure subprotocol bandwidth usage (#20133) 2025-03-19 18:01:32 +08:00
JukLee0ira
2bb6edd07b p2p, p2p/discover: add dial metrics (#27621) 2025-02-18 16:05:59 +08:00