anshalshukla
5cda3fe0f0
fix: testcases
2024-08-13 11:39:52 +05:30
anshalshukla
e6132fdf1e
fix: testcases
2024-08-09 11:59:34 +05:30
Anshal Shukla
03f253c1e0
add block fetcher back, fix handler and blockchain errors
2024-08-06 13:44:27 +05:30
Anshal Shukla
dbf55ce6cc
Merge tag 'v1.14.6' into upstream_merge_1.14.6
2024-08-05 16:29:10 +05:30
Anshal Shukla
f4c41e2e70
Merge branch 'release/1.13' into upstream_merge_1.13
2024-07-10 11:19:34 +05:30
Hteev Oli
09056601d8
core/state: fix inconsistent verkle test error messages ( #29753 )
2024-07-01 21:57:04 +02:00
jwasinger
41abab9e39
build: add check for stale generated files ( #30037 )
...
Co-authored-by: Felix Lange <fjl@twurst.com>
2024-07-01 17:16:15 +02:00
gitglorythegreat
06f1d077d3
all: replace division with right shift if possible ( #29911 )
2024-06-28 18:08:31 +02:00
maskpp
36d67be41b
core/txpool/blobpool: improve newPriceHeap function ( #30050 )
...
Co-authored-by: Felix Lange <fjl@twurst.com>
2024-06-28 15:51:27 +02:00
maskpp
98b5930d2d
core/txpool/blobpool: avoid use *map as parameter. ( #30048 )
2024-06-25 14:19:04 +02:00
jwasinger
ed8fd0ac09
all: stateless witness builder and (self-)cross validator ( #29719 )
...
* all: add stateless verifications
* all: simplify witness and integrate it into live geth
---------
Co-authored-by: Péter Szilágyi <peterke@gmail.com>
2024-06-25 14:48:08 +03:00
rjl493456442
c10ac4f48f
Revert "core/state/snapshot: tiny fixes" ( #30039 )
...
Revert "core/state/snapshot: tiny fixes (#29995 )"
This reverts commit e0e45dbc32 .
2024-06-21 10:42:43 +03:00
rjl493456442
e0e45dbc32
core/state/snapshot: tiny fixes ( #29995 )
2024-06-21 09:51:03 +08:00
psogv0308
27008408a5
core/txpool/blobpool: change rw-lock to r-lock ( #29989 )
2024-06-19 14:46:57 +02:00
Ha DANG
67a862db9d
cmd/geth, ethdb/pebble: improve database statistic ( #29948 )
...
* cmd/geth, ethdb/pebble: polish method naming and code comment
* implement db stat for pebble
* cmd, core, ethdb, internal, trie: remove db property selector
* cmd, core, ethdb: fix function description
---------
Co-authored-by: prpeh <prpeh@proton.me>
Co-authored-by: Gary Rong <garyrong0905@gmail.com>
2024-06-19 14:47:17 +08:00
Marius van der Wijden
7cf6a63687
core/state/snapshot: acquire the lock on Release ( #30011 )
...
* core/state/snapshot: acquire the lock on release
* core/state/snapshot: only acquire read-lock when iterating
2024-06-18 10:52:49 +08:00
maskpp
34b46a2f75
core/state/snapshot: add a missing lock ( #30001 )
...
* upgrade lock usage
* revert unnecessary change
2024-06-17 10:42:39 +03:00
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>
2024-06-12 12:23:16 +03:00
Marcello Ardizzone
d67620c8f4
core, eth, internal, miner, params: enforce 30gwei for gas related configs in bor ( #1264 )
...
* add: enforce 30gwei for gas related configs in bor
* chg: fix lint
2024-06-12 14:41:25 +05:30
Felix Lange
1e97148249
all: fix inconsistent receiver name and add lint rule for it ( #29974 )
...
* .golangci.yml: enable check for consistent receiver name
* beacon/light/sync: fix receiver name
* core/txpool/blobpool: fix receiver name
* core/types: fix receiver name
* internal/ethapi: use consistent receiver name 'api' for handler object
* signer/core/apitypes: fix receiver name
* signer/core: use consistent receiver name 'api' for handler object
* log: fix receiver name
2024-06-12 10:45:42 +03:00
maskpp
3aa874bed2
core/state: rename all the AccessList receivers to 'al' ( #29921 )
...
rename all the receivers to 'al'
2024-06-11 11:24:44 +03:00
jwasinger
85587d5ef2
cmd, core: prefetch reads too from tries if requested ( #29807 )
...
* cmd/utils, consensus/beacon, core/state: when configured via stub flag: prefetch all reads from account/storage tries, terminate prefetcher synchronously.
* cmd, core/state: fix nil panic, fix error handling, prefetch nosnap too
* core/state: expand prefetcher metrics for reads and writes separately
* cmd/utils, eth: fix noop collect witness flag
---------
Co-authored-by: Péter Szilágyi <peterke@gmail.com>
2024-06-11 11:10:07 +03:00
TinyFoxy
2eb185c92b
core, rlp: remove duplicated words ( #29964 )
2024-06-10 20:55:47 +08:00
jwasinger
db273c8733
core: initialize developer genesis beacon root contract with 0 balance ( #29963 )
2024-06-10 13:58:50 +08:00
Marquis Shanahan
d09ddac399
core/rawdb: remove unused deriveLogFields ( #29913 )
...
Co-authored-by: Gary Rong <garyrong0905@gmail.com>
Co-authored-by: Martin HS <martin@swende.se>
2024-06-05 21:05:00 +08:00
Hteev Oli
e85e21c932
core/state, eth/tracers: fix typos ( #29932 )
2024-06-05 11:07:37 +02:00
rjl493456442
125fb1ff58
core/state: avoid data race ( #29924 )
2024-06-04 15:51:34 +03:00
Steven Wang
adbbd8cd7b
core/state: prefetch account trie while starting a prefetcher ( #29919 )
...
Always prefetch the account trie while starting the prefetcher.
Co-authored-by: steven <steven@stevendeMacBook-Pro.local>
Co-authored-by: rjl493456442 <garyrong0905@gmail.com>
2024-06-04 11:12:24 +08:00
rjl493456442
d38b88a5a1
core/state: introduce stateupdate structure ( #29530 )
...
* core/state: introduce stateUpate structure
* core/state: remove outdated function description
* core/state: address comments
2024-06-03 14:17:12 +03:00
Chris Ziogas
c9e0b3105b
Supply delta live tracer ( #29347 )
...
Introduces the first built-in live tracer. The supply tracer tracks ETH supply changes across blocks
and writes the output to disk. This will need to be enabled through CLI using the `--vmtrace supply` flag.
Co-authored-by: Sina Mahmoodi <itz.s1na@gmail.com>
2024-06-03 12:30:27 +02:00
牛晓婕
e26fa9e40e
core/state: fix typo in comment ( #29639 )
2024-05-29 14:44:14 +02:00
PolyMa
06263b1b35
all: fix typos in comments ( #29873 )
...
fix using `a` & `the` simutaneously
2024-05-29 12:24:10 +02:00
jwasinger
171430c3f5
core/state: remove unused error from prefetcher trie method ( #29768 )
...
Co-authored-by: Gary Rong <garyrong0905@gmail.com>
Co-authored-by: Felix Lange <fjl@twurst.com>
2024-05-28 19:54:55 +02:00
rjl493456442
b88051ec83
core/rawdb, triedb/pathdb: fix freezer read-only option ( #29823 )
2024-05-28 14:41:11 +02:00
gitglorythegreat
871e55d93e
core/state: fix typos in comments ( #29767 )
2024-05-28 14:10:27 +02:00
Pratik Patil
6a5c55266e
Merge branch 'develop' of https://github.com/maticnetwork/bor into upstream_merge
2024-05-28 17:20:23 +05:30
Martin HS
42471d7a3e
core/vm/runtime: set random to enable merge-opcodes ( #29799 )
2024-05-28 13:45:16 +02:00
trillo
caafa93598
all: improve some error strings ( #29842 )
2024-05-28 13:44:40 +02:00
Pratik Patil
052405b03e
Revert "Merge upstream_merge branch to develop ( #1229 )"
...
This reverts commit 7e2be02c26 .
2024-05-28 14:10:49 +05:30
Mobin Mohanan
7224576fba
core, eth/protocols/snap, internal/ethapi: remove redundant types ( #29841 )
2024-05-27 14:39:39 +08:00
Pratik Patil
4170c2756a
Merge pull request #1250 from maticnetwork/psp-master
...
Backmerge Master to develop after 1.3.2 release
2024-05-27 11:38:44 +05:30
winterjihwan
d1d9f34e51
core/types: clarify set inclusion in comments ( #29839 )
2024-05-26 11:54:37 +02:00
zhiqiangxu
7ed52c949e
core: move balanceCheck addition in buyGas ( #29762 )
...
It's a bit confusing to add msg.value into the balanceCheck within the conditional.
No impact on block validation since GasFeeCap is always set when processing transactions.
2024-05-15 14:23:24 +02:00
0xbeny
8919c5c0fc
core: deploy EIP-4788 contract in dev mode genesis ( #29655 )
...
Co-authored-by: Felix Lange <fjl@twurst.com>
2024-05-14 15:04:32 +02:00
rjl493456442
be3284373f
core/state: remove useless operation ( #29769 )
2024-05-14 14:54:49 +02:00
Péter Szilágyi
2ac83e197b
core/state: blocking prefetcher on term signal, parallel updates ( #29519 )
...
* core/state: trie prefetcher change: calling trie() doesn't stop the associated subfetcher
Co-authored-by: Martin HS <martin@swende.se>
Co-authored-by: Péter Szilágyi <peterke@gmail.com>
* core/state: improve prefetcher
* core/state: restore async prefetcher stask scheduling
* core/state: finish prefetching async and process storage updates async
* core/state: don't use the prefetcher for missing snapshot items
* core/state: remove update concurrency for Verkle tries
* core/state: add some termination checks to prefetcher async shutdowns
* core/state: differentiate db tries and prefetched tries
* core/state: teh teh teh
---------
Co-authored-by: Jared Wasinger <j-wasinger@hotmail.com>
Co-authored-by: Martin HS <martin@swende.se>
Co-authored-by: Gary Rong <garyrong0905@gmail.com>
2024-05-13 15:47:45 +03:00
Guillaume Ballet
44a50c9f96
cmd, core, params, trie: add verkle access witness gas charging ( #29338 )
...
Implements some of the changes required to charge and do gas accounting in verkle testnet.
2024-05-10 20:13:11 +02:00
Hteev Oli
47af69c2bc
core, beacon, ethdb: fix typos ( #29748 )
...
* core, beacon, ethdb: fix typos
* revert file that can't be changed
2024-05-10 19:48:14 +02:00
rjl493456442
e5f5eaebc4
core/state: remove slot dirtyness if it's set back to origin value ( #29731 )
...
* core/state: remove slot dirtiness if it's set back to origin value
* core/state: suggestion from martin
2024-05-10 10:57:38 +03:00
Manav Darji
d95c05b98a
Enable ancient block pruning ( #1216 )
...
* core/state: typo
Signed-off-by: Delweng <delweng@gmail.com>
* core/rawdb: backport from https://github.com/bnb-chain/bsc/pull/543
Signed-off-by: Delweng <delweng@gmail.com>
* eth,ethdb,node,core/state: backport from https://github.com/bnb-chain/bsc/pull/543
Signed-off-by: Delweng <delweng@gmail.com>
* eth,core: backport from https://github.com/bnb-chain/bsc/pull/543
Signed-off-by: Delweng <delweng@gmail.com>
* cmd: open db with freeze disabled
Signed-off-by: Delweng <delweng@gmail.com>
* cli: snapshot prune-block
Signed-off-by: Delweng <delweng@gmail.com>
* fix typo
Signed-off-by: Delweng <delweng@gmail.com>
* cli/snapshot: fix the issue of dup open db error
Signed-off-by: Delweng <delweng@gmail.com>
* cli/snapshot: resolve datadir and ancient before backup
Signed-off-by: Delweng <delweng@gmail.com>
* core: more prune-block log
Signed-off-by: Delweng <delweng@gmail.com>
* core: truncatetail missing f.offset
Signed-off-by: Delweng <delweng@gmail.com>
* core/rawdb: indextx adjust offset of pruned block
Signed-off-by: Delweng <delweng@gmail.com>
* core/rawdb: freezer batch should implement the offset commit, ref https://github.com/bnb-chain/bsc/pull/1005
Signed-off-by: Delweng <delweng@gmail.com>
* core: check of ancientdb, backport https://github.com/bnb-chain/bsc/pull/817
Signed-off-by: Delweng <delweng@gmail.com>
* core/state: read raw borReceipt to backup
Signed-off-by: Delweng <delweng@gmail.com>
* core/rawdb: bor receipt maybe in []Receipt or Receipt RLP format
Signed-off-by: Delweng <delweng@gmail.com>
* core/state: typo and error msg
Signed-off-by: Delweng <delweng@gmail.com>
* core/rawdb: offSet -> offset
Signed-off-by: Delweng <delweng@gmail.com>
* cli/snapshot: comment
Signed-off-by: Delweng <delweng@gmail.com>
* cli/snapshot: add prune-block doc
Signed-off-by: Delweng <delweng@gmail.com>
* docs: add prune-block document
Signed-off-by: Delweng <delweng@gmail.com>
* core/rawdb: print wrong bor-receipt length
Signed-off-by: Delweng <delweng@gmail.com>
* internal/cli: add snapshot prune block tests (referenced from bsc's PR)
* improve errors
* cmd, core, eth, internal: fix lint
* internal/cli: refactor snapshot prune block test
* fix linters in tests
* internal/cli: add inspect-ancient-db command, update docs
* pruner: use a generic function for simplification
* internal/cli: fixes for inspect-db command
* internal/cli: improve pruning tests
* core/rawdb: update end block calculation logic in inspect command
* core/rawdb: improve checks db initialisation
* core/rawdb: remove offset check
* update mocks for span, ethdb and add command in makefile
* docs/cli: update docs with inspect command
* go mod tidy
* refactor and resolve conflicts
* resolve more conflicts
* refactor
* explicitly read node for hash scheme
* add check for hash scheme, fix tests
* fix typo
* update docs and add warning
* raise error if pbss is enabled
* revert read raw bor receipt change
* consensus/bor: handle nil header case in get root hash
* address comments
* core/rawdb: check chain continuity by matching parent hash
* core/rawdb: account for pruned ancient blocks
* go mod tidy
* fix tests
* fix tests
---------
Signed-off-by: Delweng <delweng@gmail.com>
Co-authored-by: Delweng <delweng@gmail.com>
2024-05-09 11:19:34 +05:30