thinkAfCod
685123294b
fix: connection memory leak
2024-11-19 12:12:02 +08:00
Chen Kai
e6f3769e93
Merge branch 'ethereum:master' into portal
2024-11-12 22:16:08 +07:00
tianyeyouyou
ae83912841
p2p/netutil: unittests for addrutil ( #30439 )
...
add unit tests for `p2p/addrutil`
---------
Co-authored-by: Martin HS <martin@swende.se>
2024-11-11 11:43:22 +01:00
Chen Kai
5111deac1d
revert ssz generated file
2024-10-30 22:52:15 +08:00
Chen Kai
17e5c9ef83
Merge branch 'gethmaster' into selfportal
2024-10-30 22:39:43 +08:00
thinkAfCod
8a5c2d5340
fix: concurrent map read and writes
2024-10-30 20:58:17 +08:00
thinkAfCod
a75e981c5b
fix: replace assert to require
2024-10-23 23:59:03 +08:00
Chen Kai
8563ce1d52
add wait discv5 table
2024-10-23 16:52:52 +08:00
thinkAfCod
cfbffc571f
fix: cache id and addr in discv5
...
revert
2024-10-23 11:29:29 +08:00
thinkAfCod
d34a772ac3
fix: check lint
2024-10-23 11:29:29 +08:00
thinkAfCod
81477ca08b
fix: not cache nil node
2024-10-23 11:29:29 +08:00
thinkAfCod
12182b4afe
fix: test case modify
2024-10-23 11:29:29 +08:00
thinkAfCod
c997bb0321
fix: log packet nonce
2024-10-23 11:29:29 +08:00
thinkAfCod
d28ff8ff6d
fix: cache node
2024-10-23 11:29:29 +08:00
Rafael Sampaio
9d046eab42
improves metric names
2024-10-18 02:11:13 -03:00
Rafael Sampaio
c9ddfbf290
content validation metrics
2024-10-18 00:19:22 -03:00
Rafael Sampaio
e85b17cf37
utp protocol metrics
2024-10-17 23:21:04 -03:00
Rafael Sampaio
efa2e9002a
refactor: portal protocol metrics
2024-10-17 21:46:22 -03:00
Rafael Sampaio
9b9d666dc4
portal_protocol.go metrics
2024-10-17 10:45:44 -03:00
Chen Kai
c5236fc9a9
Merge branch 'ethereum:master' into portal
2024-10-17 14:40:34 +08:00
Martin HS
5adc314817
build: update to golangci-lint 1.61.0 ( #30587 )
...
Changelog: https://golangci-lint.run/product/changelog/#1610
Removes `exportloopref` (no longer needed), replaces it with
`copyloopvar` which is basically the opposite.
Also adds:
- `durationcheck`
- `gocheckcompilerdirectives`
- `reassign`
- `mirror`
- `tenv`
---------
Co-authored-by: Marius van der Wijden <m.vanderwijden@live.de>
2024-10-14 19:25:22 +02:00
Rafael Sampaio
bd15e1be1e
move loglevel to debug (level 4) and remove duplicate log
2024-10-12 15:07:15 +08:00
Rafael Sampaio
e4813a1406
message of new node added to bucket [implements #191 ]
2024-10-12 15:07:15 +08:00
Chen Kai
8955d0b309
Revert "fix: utp send call to maintain nonce"
...
This reverts commit c6aa362ebb .
2024-10-11 23:39:11 +08:00
thinkAfCod
c6aa362ebb
fix: utp send call to maintain nonce
2024-10-11 17:34:55 +08:00
fearlseefe
7c23e82cd0
fix: lint err
2024-10-10 15:10:18 +08:00
fearlessfe
e1bfcb45d9
feat: offer json rpc change
2024-10-10 15:10:18 +08:00
Chen Kai
28d395dccc
fix:fix not send challenge more than once
...
Signed-off-by: Chen Kai <281165273grape@gmail.com>
2024-10-10 09:53:25 +08:00
Chen Kai
076e33c53f
fix:make only sent whoareyou challenges first time
...
Signed-off-by: Chen Kai <281165273grape@gmail.com>
2024-10-09 18:32:47 +08:00
rafaelss
4605c46a53
Merge pull request #185 from r4f4ss/log_trace
...
Replace log trace strings to easily readable
2024-10-08 23:52:08 -04:00
Chen Kai
1446e66d30
Merge branch 'gethmaster' into selfportal
2024-10-09 10:36:11 +08:00
Rafael Sampaio
b4bbdced85
added missing '/' to strings
2024-10-08 19:29:30 -03:00
Rafael Sampaio
07c5d2fb83
replace trace log strings [implement #184 ]
2024-10-08 19:13:48 -03:00
Rafael Sampaio
120be2f1ee
add portMapping to localNode creation
2024-10-04 16:43:56 -03:00
Rafael Sampaio
52c2bfb5b3
add stun server for ip discovery and flag stun
2024-10-03 23:44:13 -03:00
Felix Lange
6b61b54dc7
p2p/discover: add config option for disabling FINDNODE liveness check ( #30512 )
...
This is for fixing Prysm integration tests.
2024-09-30 10:56:14 +02:00
Chen Kai
80d0a8bc17
Merge branch 'gethmaster' into selfportal
2024-09-30 15:01:29 +08:00
Martin HS
b5a88dafae
p2p/discover: fix flaky tests writing to test.log after completion ( #30506 )
...
This PR fixes two tests, which had a tendency to sometimes write to the `*testing.T` `log` facility after the test function had completed, which is not allowed. This PR fixes it by using waitgroups to ensure that the handler/logwriter terminates before the test exits.
closes #30505
2024-09-26 08:12:12 +02:00
fearlessfe
316e49fca8
fix: offer test failed in hive state interop
2024-09-26 09:12:43 +08:00
thinkAfCod
7c5231ce74
fix test case log
2024-09-25 21:32:33 +08:00
fearlessfe
29ec4025dc
feat: state storage
2024-09-21 00:17:23 +08:00
Guillaume Michel
f544fc3b46
p2p/enode: add quic ENR entry ( #30283 )
...
Add `quic` entry to the ENR as proposed in
https://github.com/ethereum/consensus-specs/pull/3644
---------
Co-authored-by: lightclient <lightclient@protonmail.com>
2024-09-13 23:47:18 +02:00
fearlessfe
d4d644c13c
feat: refactor protocolId
2024-08-28 23:46:52 +08:00
Nicolas Gotchac
87377c58bc
p2p/discover: fix Write method in metered connection ( #30355 )
...
`WriteToUDP` was never called, since `meteredUdpConn` exposed directly
all the methods from the underlying `UDPConn` interface.
This fixes the `discover/egress` metric never being updated.
2024-08-27 14:10:32 +02:00
lightclient
00294e9d28
cmd/utils,p2p: enable discv5 by default ( #30327 )
2024-08-20 16:02:54 +02:00
thinkAfCod
064a3cf2a9
fix parse enr ip
2024-08-19 23:46:21 +08:00
Chen Kai
3fe80adec2
Merge branch 'ethereum:master' into portal
2024-08-17 14:07:49 +08:00
thinkAfCod
d9ac99649f
No longer check if the IP is a multicast address when call AddEnr
2024-08-17 14:07:28 +08:00
lightclient
33a13b6f21
p2p/simulations: remove packages ( #30250 )
...
Looking at the history of these packages over the past several years, there
haven't been any meaningful contributions or usages:
https://github.com/ethereum/go-ethereum/commits/master/p2p/simulations?before=de6d5976794a9ed3b626d4eba57bf7f0806fb970+35
Almost all of the commits are part of larger refactors or low-hanging-fruit contributions.
Seems like it's not providing much value and taking up team + contributor time.
2024-08-12 10:36:48 +02:00
Daniel Knopik
de6d597679
p2p/discover: schedule revalidation also when all nodes are excluded ( #30239 )
...
## Issue
If `nextTime` has passed, but all nodes are excluded, `get` would return
`nil` and `run` would therefore not invoke `schedule`. Then, we schedule
a timer for the past, as neither `nextTime` value has been updated. This
creates a busy loop, as the timer immediately returns.
## Fix
With this PR, revalidation will be also rescheduled when all nodes are
excluded.
---------
Co-authored-by: lightclient <lightclient@protonmail.com>
2024-07-31 21:38:23 +02:00