Felföldi Zsolt
0da69e84c0
beacon/blsync: proceed with empty finalized hash if proof is not expected soon ( #29449 )
...
* beacon/blsync: proceed with empty finalized hash if proof is not expected soon
* Update beacon/blsync/block_sync.go
Co-authored-by: Felix Lange <fjl@twurst.com>
* beacon/blsync: fixed linter warning
* Update beacon/blsync/block_sync.go
Co-authored-by: lightclient <14004106+lightclient@users.noreply.github.com>
---------
Co-authored-by: Felix Lange <fjl@twurst.com>
Co-authored-by: lightclient <14004106+lightclient@users.noreply.github.com>
7 months ago
Aaron Chen
1e9bf2a09e
core/state: fix bug in statedb.Copy and remove unnecessary preallocation ( #29563 )
...
This change removes an unnecessary preallocation and fixes a flaw with no-op copies of some parts of the statedb
7 months ago
Aaron Chen
74e8d2da97
trie/utils: simplify codeChunkIndex ( #29480 )
...
minor simplification to the code
7 months ago
rjl493456442
27de7dec65
ethdb/pebble: print warning log if pebble performance degrades ( #29478 )
7 months ago
Devon Bear
92da96b7d5
core/vm: refactor push-functions to use `min` builtin ( #29515 )
...
* optimize-push
* revert push1 change
* Update instructions.go
* core/vm: go format
* core/vm: fix nit
---------
Co-authored-by: Felix Lange <fjl@twurst.com>
Co-authored-by: Martin Holst Swende <martin@swende.se>
Co-authored-by: Péter Szilágyi <peterke@gmail.com>
7 months ago
persmor
0a51028819
all: fix various typos ( #29542 )
...
* core/rawdb: fix typos
* accounts/abi: fix typos
* metrics: fix typo
* beacon: fix typo
* crypto: fix typo
* rpc: fix typo
* rpc: fix typo
7 months ago
ucwong
5ffd940b7e
core: go fmt ( #29544 )
7 months ago
ucwong
65e32d47ea
go.mod: clean up indirection ( #29553 )
7 months ago
Chris Ziogas
72f69366de
c.d/utils: rename vmtrace.config to vmtrace.jsonconfig ( #29554 )
...
rename vmtrace.config to vmtrace.jsonconfig
for consinstency with t8ntool trace.jsonconfig
7 months ago
law wang
fadd9d8b81
eth/catalyst: fix log ( #29549 )
...
log:output the correct variable
Co-authored-by: steven <steven@stevendeMacBook-Pro.local>
7 months ago
Marius van der Wijden
f437307877
core/vm: update gascosts for BLS12-381 + use gnark instead of kilic ( #29441 )
...
This PR updates the bls contracts from our internal implementation which is an unmaintained fork of the kilic library to the gnark-crypto library that is actively maintained by consensys.
It also updates the gas-costs according to the EIP
7 months ago
Darioush Jalali
71c78bf56d
rpc: close Clients in tests ( #29512 )
7 months ago
Marcus Baldassarre
e4ecaf89cf
rpc: implement Unwrap() for wsHandshakeError ( #29522 )
7 months ago
rjl493456442
d3c4466edd
core, eth/protocols/snap, trie: fix cause for snap-sync corruption, implement gentrie ( #29313 )
...
This pull request defines a gentrie for snap sync purpose.
The stackTrie is used to generate the merkle tree nodes upon receiving a state batch. Several additional options have been added into stackTrie to handle incomplete states (either missing states before or after).
In this pull request, these options have been relocated from stackTrie to genTrie, which serves as a wrapper for stackTrie specifically for snap sync purposes.
Further, the logic for managing incomplete state has been enhanced in this change. Originally, there are two cases handled:
- boundary node filtering
- internal (covered by extension node) node clearing
This changes adds one more:
- Clearing leftover nodes on the boundaries.
This feature is necessary if there are leftover trie nodes in database, otherwise node inconsistency may break the state healing.
7 months ago
Martin HS
ef5ac3fb7a
eth/filters: enforce topic-limit early on filter criterias ( #29535 )
...
This PR adds a limit of 1000 to the "inner" topics in a filter-criteria
7 months ago
Seungbae Yu
67422e2a56
p2p/nat: fix typos in comments ( #29536 )
7 months ago
Martin HS
84b12df09e
core/rawdb: add sanity-limit to header accessor ( #29534 )
7 months ago
yudrywet
3705acd1a9
cmd/utils: fix typo in comment ( #29528 )
7 months ago
Abirdcfly
b179b7b8e7
all: remove duplicate word in comments ( #29531 )
...
This change removes some duplicate words in in comments
7 months ago
forestkeeperio.eth
bd91810462
cmd: fix some typos in readmes ( #29405 )
...
* Update README.md
updated for readability
* Update rules.md
Updated for readability and typos
8 months ago
Newt6611
b9010f3e87
rpc: fix comment grammar ( #29507 )
8 months ago
rjl493456442
9dcf8aae47
eth/protocols/snap: skip retrieval for completed storages ( #29378 )
...
* eth/protocols/snap: skip retrieval for completed storages
* eth/protocols/snap: address comments from peter
* eth/protocols/snap: add comments
8 months ago
Aaron Chen
34aac1d756
all: use big.Sign to compare with zero ( #29490 )
8 months ago
Sina M
f202dfdd47
core/tracing: add changelog ( #29388 )
...
Co-authored-by: Matthieu Vachon <matthieu.o.vachon@gmail.com>
8 months ago
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.
8 months ago
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.
8 months ago
cui
3caf617dcd
core/vm: move bls precompiles to correct addresses ( #29445 )
...
core: make bls precompiled contract use the correct address as in eip
8 months ago
Mohanson
f447de936c
rlp: replace reflect.PtrTo with reflect.PointerTo ( #29488 )
...
reflect.PtrTo has been deprecated and superseded by reflect.PointerTo
8 months ago
Aaron Chen
70bf94c34e
internal, signer/core: replace path.Join with filepath.Join ( #29489 )
8 months ago
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.
8 months ago
seayyyy
3c75c64e6b
core: fix typo ( #29438 )
8 months ago
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.
8 months ago
Aaron Chen
ed4bc7f27b
all: replace fmt.Errorf() with errors.New() if no param required ( #29472 )
8 months ago
Aaron Chen
cfc7d06cc9
signer/core/apitypes: use slices.Contains ( #29474 )
8 months ago
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>
8 months ago
Martin HS
7aafad2233
core/vm: better error-info for vm errors ( #29354 )
8 months ago
Roberto Bayardo
8876868bb8
log: default JSON log handler should log all verbosity levels ( #29471 )
...
Co-authored-by: lightclient <lightclient@protonmail.com>
8 months ago
Aaron Chen
ccb76c01d7
eth/tracers: use slices.Contains ( #29461 )
8 months ago
Aaron Chen
74995bf8a1
all: use slices.Contains ( #29459 )
...
Co-authored-by: Felix Lange <fjl@twurst.com>
8 months ago
georgehao
cc348a601e
common/prque: fix godoc comments ( #29460 )
...
Co-authored-by: Felix Lange <fjl@twurst.com>
8 months ago
Martin HS
4458905f26
signer/core/apitypes: fix apitypes breakage due to bitrotted PR ( #29470 )
8 months ago
Martin HS
7ee9a6e89f
signer: implement blob txs sendtxargs, enable blobtx-signing ( #28976 )
...
This change makes it possible to sign blob transactions
8 months ago
Felföldi Zsolt
35fcf9c52b
beacon/types: enforce fork order based on known forks list ( #29380 )
...
Co-authored-by: Felix Lange <fjl@twurst.com>
8 months ago
Aaron Chen
15ff066a24
trie/utils: change Div+Mod to DivMod ( #29413 )
...
* trie/utils: change Div+Mod to DivMod
* trie/utils: gofmt
8 months ago
Péter Szilágyi
e3bdd84e98
core/txpool: repair the limbo Billy too on unclean shutdowns ( #29451 )
8 months ago
lmittmann
a851e39cbe
core/types: use new atomic types in caches ( #29411 )
...
* use generic atomic types in tx caches
* use generic atomic types in block caches
* eth/catalyst: avoid copying tx in test
---------
Co-authored-by: lmittmann <lmittmann@users.noreply.github.com>
Co-authored-by: Felix Lange <fjl@twurst.com>
8 months ago
lightclient
9cb8de8703
internal/debug: convert legacy log level value in debug_verbosity ( #29356 )
8 months ago
cui
9dfe728909
p2p/discover: using slices.Contains ( #29395 )
8 months ago
guangwu
8bd0334168
crypto/signify: close tmp key file in test ( #29444 )
8 months ago
cui
2e0c5e05ba
p2p/dnsdisc: using clear builtin func ( #29418 )
...
Co-authored-by: Felix Lange <fjl@twurst.com>
8 months ago