lilasxie
19c3c1e205
triedb/pathdb: fix flaky test in pathdb ( #29901 )
4 months ago
rjl493456442
045b9718d5
trie: relocate state execution logic into pathdb package ( #29861 )
5 months ago
maskpp
c736b04d9b
triedb/pathdb: use maps.Clone and maps.Keys ( #29985 )
5 months ago
maskpp
115d154392
trie, triedb/pathdb: prealloc capacity for map and slice ( #29986 )
5 months ago
Darioush Jalali
fd5078c779
trie/triedb: add Reader to backend interface ( #29988 )
5 months ago
jwasinger
69351e8b0f
core/state, eth/protocols, trie, triedb/pathdb: remove unused error from trie Commit ( #29869 )
...
* core/state, eth/protocols, trie, triedb/pathdb: remove unused error return from trie Commit
* move set back to account-trie-update block scoping for easier readability
* address review
* undo tests submodule change
* trie: panic if BatchSerialize returns an error in Verkle trie Commit
* trie: verkle comment nitpicks
---------
Co-authored-by: Péter Szilágyi <peterke@gmail.com>
5 months ago
rjl493456442
b88051ec83
core/rawdb, triedb/pathdb: fix freezer read-only option ( #29823 )
6 months ago
maskpp
2c67fab0d7
trie/pathdb: preallocate map capacity ( #29690 )
...
* preallocated capacity for map's certain usege of memory
* preallocated capacity for map's certain usege of memory
6 months ago
rjl493456442
9f96e07c1c
core/rawdb, trie: improve db APIs for accessing trie nodes ( #29362 )
...
* core/rawdb, trie: improve db APIs for accessing trie nodes
* triedb/pathdb: fix
6 months ago
rjl493456442
f46c878441
core/rawdb: implement in-memory freezer ( #29135 )
6 months ago
Martin HS
853e0c23f3
eth/catalyst, trie/pathdb: fix flaky tests ( #29571 )
...
This change fixes three flaky tests `TestEth2AssembleBlock`,`TestEth2NewBlock`, `TestEth2PrepareAndGetPayload` and `TestDisable`.
---------
Co-authored-by: Gary Rong <garyrong0905@gmail.com>
7 months ago
Abirdcfly
b179b7b8e7
all: remove duplicate word in comments ( #29531 )
...
This change removes some duplicate words in in comments
7 months ago
Guillaume Ballet
da7469e5c4
core: add an end-to-end verkle test ( #29262 )
...
core: add a simple verkle test
triedb, core: skip hash comparison in verkle
core: remove legacy daoFork logic in verkle chain maker
fix: nil pointer in tests
triedb/pathdb: add blob hex
core: less defensive
Co-authored-by: Ignacio Hagopian <jsign.uy@gmail.com>
Co-authored-by: Martin HS <martin@swende.se>
Co-authored-by: Gary Rong <garyrong0905@gmail.com>
8 months ago
Aaron Chen
723b1e36ad
all: fix mismatched names in comments ( #29348 )
...
* all: fix mismatched names in comments
* metrics: fix mismatched name in UpdateIfGt
8 months ago
Martin HS
14cc967d19
all: remove dependency on golang.org/exp ( #29314 )
...
This change includes a leftovers from https://github.com/ethereum/go-ethereum/pull/29307
- using the [new `slices` package](https://go.dev/doc/go1.21#slices ) and
- using the [new `cmp.Ordered`](https://go.dev/doc/go1.21#cmp ) instead of exp `constraints.Ordered`
8 months ago
rjl493456442
6490d9897a
cmd, triedb: implement history inspection ( #29267 )
...
This pull request introduces a database tool for inspecting the state history.
It can be used for either account history or storage slot history, within a
specific block range.
The state output format can be chosen either with
- the "rlp-encoded" values (those inserted into the merkle trie)
- the "rlp-decoded" value (the raw state value)
The latter one needs --raw flag.
8 months ago
Darioush Jalali
f46fe62c5d
triedb/hashdb: Avoid setting db.cleans on Close ( #29309 )
8 months ago
rjl493456442
15eb9773f9
triedb/pathdb: improve tests ( #29278 )
8 months ago
rjl493456442
7b81cf6362
core/state, trie/triedb/pathdb: remove storage incomplete flag ( #28940 )
...
As SELF-DESTRUCT opcode is disabled in the cancun fork(unless the
account is created within the same transaction, nothing to delete
in this case). The account will only be deleted in the following
cases:
- The account is created within the same transaction. In this case
the original storage was empty.
- The account is empty(zero nonce, zero balance, zero code) and
is touched within the transaction. Fortunately this kind of accounts
are not-existent on ethereum-mainnet.
All in all, after cancun, we are pretty sure there is no large contract
deletion and we don't need this mechanism for oom protection.
8 months ago
psogv0308
35cebc1687
triedb/pathdb: changed the test code to check for verifying state ( #29150 )
...
Co-authored-by: this-is-iron <iron@superblock.co>
8 months ago
Péter Szilágyi
865e1e9f57
cmd/utils, core/rawdb, triedb/pathdb: flip hash to path scheme ( #29108 )
...
* cmd/utils, core/rawdb, triedb/pathdb: flip hash to path scheme
* graphql: run tests in hash mode as the chain maker needs it
9 months ago
yzb
db4cf69166
all: replace fmt.Errorf() with errors.New() if no param required ( #29126 )
...
replace-fmt-errorf
Co-authored-by: yzb@example.cn <yzb@example.cn>
9 months ago
rjl493456442
5bae14f9df
triedb/pathdb: fix panic in recoverable ( #29107 )
...
* triedb/pathdb: fix panic in recoverable
* triedb/pathdb: add todo
* triedb/pathdb: rename
* triedb/pathdb: rename
9 months ago
rjl493456442
49623bd469
core, triedb/pathdb: calculate the size for batch pre-allocation ( #29106 )
...
* core, triedb/pathdb: calculate the size for batch pre-allocation
* triedb/pathdb: address comment
9 months ago
rjl493456442
fe91d476ba
all: remove the dependency from trie to triedb ( #28824 )
...
This change removes the dependency from trie package to triedb package.
9 months ago