Commit graph

15078 commits

Author SHA1 Message Date
Felix Lange
f0504f699b p2p/discover: simplify nextTime 2024-05-14 22:27:07 +02:00
Felix Lange
f96f5965e6 p2p/discover: rename 2024-05-14 22:26:49 +02:00
Felix Lange
008ff21cdf p2p/discover: fix race in test 2024-05-14 13:18:47 +02:00
Felix Lange
9faae76660 p2p/discover: improve test reliability 2024-05-03 14:11:20 +02:00
Felix Lange
051ca137fb p2p/discover: use lock in reseedingRandom 2024-05-03 14:10:09 +02:00
Felix Lange
009658c4fa p2p/discover: seed nodes are not inbound 2024-04-26 15:40:38 +02:00
Felix Lange
1765712a83 p2p/discover: fix double lock 2024-04-26 14:04:19 +02:00
Felix Lange
edb3a12a66 p2p/discover: fix lookup failure log 2024-04-26 14:04:04 +02:00
Felix Lange
ea9f0a4b03 p2p/discover: put back findnode request tracking 2024-04-25 17:37:53 +02:00
Felix Lange
2c2c7f7a07 p2p/discover: rename add node methods
This is to better reflect their purpose. The previous naming of 'seen' and 'verified'
was kind of arbitrary, especially since 'verified' was the stricter one.
2024-04-24 17:32:59 +02:00
Felix Lange
041ce1b7b3 p2p/discover: fix addedAt time 2024-04-24 17:32:59 +02:00
Felix Lange
0048a0f54d
Update p2p/discover/table_reval.go
Co-authored-by: Martin HS <martin@swende.se>
2024-04-24 16:20:40 +02:00
Felix Lange
81e553f428 p2p/discover: faster decay 2024-04-20 11:58:46 +02:00
Felix Lange
30eb2bf406 p2p/discover: remove logging checks in for dead nodes (it's always zero) 2024-04-20 11:58:46 +02:00
Felix Lange
0b44fc4dea p2p/discover: faster 2024-04-20 11:58:46 +02:00
Felix Lange
c2ad0a783d p2p/discover: improve list moving 2024-04-20 11:58:46 +02:00
Felix Lange
822b05926f p2p/discover: fix crash in move 2024-04-20 11:58:46 +02:00
Felix Lange
b44673fa29 p2p/discover: move back to fast list when endpoint changed or dead 2024-04-20 11:58:46 +02:00
Felix Lange
7667ebfceb p2p/discover: simplify rand timer 2024-04-20 11:58:46 +02:00
Felix Lange
c1afb3c0cc p2p/discover: return nextTime from run() 2024-04-20 11:58:46 +02:00
Felix Lange
dc3f78bb81 p2p/discover: add live flag in debug node 2024-04-20 11:58:46 +02:00
Felix Lange
1d896e8165 p2p/discover: fix spin condition 2024-04-20 11:58:46 +02:00
Felix Lange
00e71f5d1b p2p/discover: fix test 2024-04-20 11:58:46 +02:00
Felix Lange
f2ac6927ab p2p/discover: fix shutdown hang 2024-04-20 11:58:46 +02:00
Felix Lange
fad3fe7853 p2p/discover: fix some tests 2024-04-20 11:58:46 +02:00
Felix Lange
0a4b314244 p2p/discover: update 2024-04-20 11:58:46 +02:00
Felix Lange
70b8918ea0 p2p/discover: fix build 2024-04-20 11:58:46 +02:00
Felix Lange
df8e793e1f p2p/discover: new revalidation 2024-04-20 11:58:46 +02:00
Felix Lange
f8c744894c cmd/devp2p: fix import 2024-04-20 11:58:46 +02:00
Felix Lange
1a6a64ba49 cmd/devp2p: add listen command 2024-04-20 11:58:46 +02:00
Felix Lange
37149d02df cmd/devp2p: add discv4 RPC server 2024-04-20 11:58:46 +02:00
Felix Lange
8f4c72c579 p2p/discover: add debug API 2024-04-20 11:58:46 +02:00
Felix Lange
bc62df2223 internal/testlog: fix level matching 2024-04-18 00:02:26 +02:00
Aaron Chen
34aac1d756
all: use big.Sign to compare with zero (#29490) 2024-04-09 12:14:30 +02:00
Sina M
f202dfdd47
core/tracing: add changelog (#29388)
Co-authored-by: Matthieu Vachon <matthieu.o.vachon@gmail.com>
2024-04-09 12:12:02 +02:00
Bin
0bbd88bda0
all: use timer instead of time.After in loops, to avoid memleaks (#29241)
time.After is equivalent to NewTimer(d).C, and does not call Stop if the timer is no longer needed. This can cause memory leaks. This change changes many such occations to use NewTimer instead, and calling Stop once the timer is no longer needed.
2024-04-09 08:51:54 +02:00
rjl493456442
1126c6d8a5
core: add txlookup lock (#29343)
This change adds a lock to the transaction lookup cache, to avoid the case where reorgs make the lookup return inconsistent results.
2024-04-09 08:37:18 +02:00
cui
3caf617dcd
core/vm: move bls precompiles to correct addresses (#29445)
core: make bls precompiled contract use the correct address as in eip
2024-04-09 08:33:36 +02:00
Mohanson
f447de936c
rlp: replace reflect.PtrTo with reflect.PointerTo (#29488)
reflect.PtrTo has been deprecated and superseded by reflect.PointerTo
2024-04-09 08:27:13 +02:00
Aaron Chen
70bf94c34e
internal, signer/core: replace path.Join with filepath.Join (#29489) 2024-04-09 08:22:53 +02:00
rjl493456442
c170cc0ab0
core/vm: reject contract creation if the storage is non-empty (#28912)
This change implements EIP-7610, which rejects the contract deployment if the destination has non-empty storage.
2024-04-08 15:48:37 +02:00
seayyyy
3c75c64e6b
core: fix typo (#29438) 2024-04-08 13:02:56 +02:00
Sina M
c3465cb5ba
core: fix dev mode genesis difficulty (#29469)
The dev mode is nowadays in Merge-mode from genesis, hence the difficulty of the first block should be zero.
2024-04-08 13:01:22 +02:00
Aaron Chen
ed4bc7f27b
all: replace fmt.Errorf() with errors.New() if no param required (#29472) 2024-04-08 12:59:17 +02:00
Aaron Chen
cfc7d06cc9
signer/core/apitypes: use slices.Contains (#29474) 2024-04-08 12:58:37 +02:00
imalasong
0dc09da7db
all: replace path.Join with filepath.Join (#29479)
* core/rawdb: replace file.Join with filepath.Join

Signed-off-by: xiaochangbai <704566072@qq.com>

* internal/build: replace file.Join with filepath.Join

Signed-off-by: xiaochangbai <704566072@qq.com>

---------

Signed-off-by: xiaochangbai <704566072@qq.com>
2024-04-08 12:29:49 +03:00
Martin HS
7aafad2233
core/vm: better error-info for vm errors (#29354) 2024-04-06 12:22:55 +02:00
Roberto Bayardo
8876868bb8
log: default JSON log handler should log all verbosity levels (#29471)
Co-authored-by: lightclient <lightclient@protonmail.com>
2024-04-06 12:17:41 +02:00
Aaron Chen
ccb76c01d7
eth/tracers: use slices.Contains (#29461) 2024-04-06 12:16:25 +02:00
Aaron Chen
74995bf8a1
all: use slices.Contains (#29459)
Co-authored-by: Felix Lange <fjl@twurst.com>
2024-04-06 12:05:06 +02:00