Manav Darji
cdf58273c9
regenerate mocks to fix tests
2024-08-14 12:18:26 +05:30
anshalshukla
b1419eb41d
fix: testcases
2024-08-13 16:46:46 +05:30
anshalshukla
4a9a875738
merge: master
2024-08-13 11:48:57 +05:30
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
Pratik Patil
6939df80da
replaced 4337 with PIP-15
2024-07-30 10:00:12 +05:30
Pratik Patil
d0c74c4cf2
fix: eth/protocol: bunduled transactions are not broadcasted to the peers ( #1296 )
2024-07-29 14:44:48 +05:30
Manav Darji
dce4253605
PIP-35: enforce gas related configs for mainnet ( #1290 )
...
* enforce gas configs for all networks
* eth/gasprice: remove else if for log
* docs/cli: update example config
* fix tests
* internal/cli/server: fix tests
* miner: fix tests
2024-07-23 19:32:48 +05:30
Manav Darji
1a05223076
PIP-35 for amoy: enforce gas related configs ( #1285 )
...
* enforce gas related configs for amoy
* internal/cli/server: revert changes to default config.toml for test
* eth: check nil genesis for tests
2024-07-11 11:05:12 +05:30
Anshal Shukla
f4c41e2e70
Merge branch 'release/1.13' into upstream_merge_1.13
2024-07-10 11:19:34 +05:30
Halimao
269e80b07e
eth/tracers,trie: remove unnecessary check ( #30071 )
2024-06-27 11:29:50 +02:00
maskpp
00675c5876
trie/trienode: avoid unnecessary copy ( #30019 )
...
* avoid unnecessary copy
* delete the never used function ProofList
* eth/protocols/snap, trie/trienode: polish the code
---------
Co-authored-by: Gary Rong <garyrong0905@gmail.com>
2024-06-20 11:47:29 +08:00
Manav Darji
2fd85b3717
eth, consensus: refactor whitelisting related logs and improve error handling ( #1268 )
...
* eth, consensus: refactor whitelisting related logs and error handling
* core: fix lint
* eth: fix tests, check against root error
* eth: use ctx correctly while logging
* eth: refactor comments and error message
2024-06-18 14:43:51 +05:30
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
Pratik Patil
d0a212b4d0
Merge pull request #1266 from maticnetwork/master
...
Back merge master to develop after v1.3.3 release
2024-06-12 14:34:41 +05:30
ucwong
ffb29be7d4
ethconfig: regenerate config ( #29970 )
2024-06-11 20:34:56 +08: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
Manav Darji
2aa76a9926
eth: change block propagation and announcement logs to debug
2024-06-10 12:32:17 +05:30
Manav Darji
6bc8334852
eth/fetcher: modify queue limits for improving sync near chain tip ( #1260 )
2024-06-07 21:57:19 +05:30
Marcello Ardizzone
57b77e3b6c
chg: fix percentile validation in fee history ( #1235 )
2024-06-06 11:23:30 +05:30
Pratik Patil
a0acefc04c
eth: broadcast block to static and trusted peers as well ( #1258 )
2024-06-06 10:57:20 +05:30
Hteev Oli
e85e21c932
core/state, eth/tracers: fix typos ( #29932 )
2024-06-05 11:07:37 +02:00
tianyeyouyou
a6751d6fc8
core/rawdb,eth/protocols,p2p: prealloc slice size ( #29893 )
...
chore: prealloc slice size
2024-06-03 15:51:04 +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
yujinpark
5d7d48fc3e
eth/gasprice: add comment to constant ( #29892 )
...
Co-authored-by: Felix Lange <fjl@twurst.com>
2024-05-30 18:22:23 +02:00
Felix Lange
6bb13e8e2b
eth/catalyst: ensure TxPool is synced in Fork ( #29876 )
...
This should fix an occasional test failure in ethclient/simulated.TestForkResendTx.
Inspection of logs revealed the cause of the failure to be that the txpool was not done
reorganizing by the time Fork is called.
2024-05-29 15:56:52 +02:00
trillo
2f0e63e5ac
eth/downloader, eth/tracer: fix typos in comments ( #29707 )
2024-05-29 14:43:07 +02:00
PolyMa
06263b1b35
all: fix typos in comments ( #29873 )
...
fix using `a` & `the` simutaneously
2024-05-29 12:24:10 +02:00
jwasinger
e517183719
eth, eth/downloader: remove references to LightChain, LightSync ( #29711 )
...
Co-authored-by: Gary Rong <garyrong0905@gmail.com>
2024-05-28 19:52:08 +02:00
Pratik Patil
f25b6efad2
Merge branch 'develop' of https://github.com/maticnetwork/bor into upstream_merge
2024-05-28 22:24:54 +05:30
Manav Darji
e789b4e312
eth/internal: add debug.peerStats for stats related to all connected peers ( #1252 )
...
* implement debug.peerStats for stats related to all connected peers
* add identifier for ipc
* display block number in peer stats
* eth/downloader: log error while terminating sync
2024-05-28 17:51:00 +05:30
Pratik Patil
6a5c55266e
Merge branch 'develop' of https://github.com/maticnetwork/bor into upstream_merge
2024-05-28 17:20:23 +05:30
trillo
caafa93598
all: improve some error strings ( #29842 )
2024-05-28 13:44:40 +02:00
Sina M
ea6c16007c
eth/tracers: clear error for non-reverting pre-homestead fail ( #29824 )
2024-05-28 13:12:46 +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
rjl493456442
513276864b
eth/downloader: fix flaky test ( #29852 )
...
This pull request fixes the flay test TestSkeletonSyncRetrievals. In this test, we first
trigger a sync cycle and wait for it to meet certain expectations. We then inject a new
head and potentially also a new peer, then perform another final sync. The test now
performs the newPeer addition before launching the final sync, and waits a bit for that
peer to get registered. This fixes the logic race that made the test fail sometimes.
Co-authored-by: Guillaume Ballet <3272758+gballet@users.noreply.github.com>
2024-05-27 16:26:55 +02:00
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
Pratik Patil
368a1a3859
not going into snap sync ( #1247 )
2024-05-27 10:54:49 +05:30
Sina M
fa581766f5
eth/tracers: fix json logger for evm blocktest ( #29795 )
2024-05-23 10:55:54 +02:00
Martin HS
7fd7c1f7dd
eth/tracers: fix basefee context for traceBlock ( #29811 )
...
This fixes an issue for `debug_traceBlock*` methods where the BASEFEE opcode was returning always 0. This caused the method return invalid results.
Co-authored-by: Sina Mahmoodi <itz.s1na@gmail.com>
2024-05-21 18:27:36 +02:00
rjl493456442
473ee8fc07
trie, eth/protocols/snap: sanitize the committed node data ( #29485 )
2024-05-16 17:58:35 +08: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
Pratik Patil
902c1ce97e
eth: explicitly commented the code were bor could get into snap-sync mode ( #1243 )
...
* eth: explicitly commented the code were bor could get into snap-sync mode
* addressed comment
2024-05-09 08:42:55 +05:30
rjl493456442
9ec50080eb
core: use in-memory freezer for tests ( #29720 )
...
* core: simplify chain tests
* core, eth, cmd: use in-memory freezer for tests
* core: restore tests
2024-05-08 09:43:33 +03:00
nand2
d6e91e2e05
eth/gasestimator: include blobs in virtual balance computation ( #29703 )
...
Fixes #29702
Co-authored-by: Felix Lange <fjl@twurst.com>
2024-05-07 14:27:14 +02:00
Nathan
e4b8058d5a
eth/gasprice: add query limit for FeeHistory to defend DDOS attack ( #29644 )
...
* eth/gasprice: add query limit for FeeHistory to defend DDOS attack
* fix return values after cherry-pick
---------
Co-authored-by: Eric <45141191+zlacfzy@users.noreply.github.com>
2024-05-07 10:25:15 +03:00