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
cocoyeal
603fd898d4
event: fix typo ( #29749 )
...
typo: of -> or
2024-05-10 19:44:07 +02:00
Manav Darji
bade7f57df
Merge pull request #1245 from maticnetwork/v1.3.2-stable
...
v1.3.2
2024-05-10 16:12:41 +05:30
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
Felix Lange
74edc93864
params: gofmt
2024-05-09 16:07:32 +02:00
Felix Lange
0e456d9eeb
.travis.yml: disable normal unit tests in cron job ( #29746 )
2024-05-09 16:05:42 +02:00
Felix Lange
6d51c1f5f4
params: begin v1.14.4 release cycle
2024-05-09 12:40:37 +02:00
Felix Lange
ab48ba42f4
params: release go-ethereum v1.14.3 stable
2024-05-09 12:34:54 +02:00
Anshal Shukla
7543b5d87a
release: v1.3.2
2024-05-09 11:30:34 +05:30
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
Felix Lange
804afb8faa
.travis.yml: restore PPA condition and bump timeouts ( #29742 )
2024-05-08 20:46:54 +02:00
Felix Lange
faff03c403
.travis.yml: enable PPA upload on push and fix apt-get command ( #29741 )
2024-05-08 20:28:05 +02:00
Felix Lange
1a79f8fe58
params: begin v1.14.3 release cycle
2024-05-08 16:31:14 +02:00
Felix Lange
35b2d07f4b
params: release go-ethereum v1.14.2 stable
2024-05-08 16:26:01 +02:00
Felix Lange
eeb22089fd
.travis.yml: fix package install on PPA builder
2024-05-08 14:34:58 +02:00
Felix Lange
14f4228472
params: begin v1.14.2 release cycle
2024-05-08 14:30:18 +02:00
Felix Lange
dd09f7e3fa
params: release go-ethereum v1.14.1 stable
2024-05-08 14:28:40 +02:00
Felix Lange
6154f87c33
.travis.yml: fix apt-get options ( #29734 )
2024-05-08 11:33:07 +02:00
Felix Lange
dd4afb9fec
.travis.yml: fix install of gcc-multilib ( #29733 )
2024-05-08 11:08:55 +02:00
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
Felix Lange
e96de6489c
build: upgrade to go 1.22.3 ( #29725 )
2024-05-07 22:08:29 +02:00
Martin HS
71aa15c98f
travis: use ubuntu noble (24.04) instead of bionic (18.04) ( #29723 )
2024-05-07 21:24:58 +02: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
Anshal Shukla
9e032090eb
release: v1.3.2-beta-2
2024-05-06 20:57:09 +05:30
marcello33
0eceaca6f2
core/rawdb: add sanity-limit to header accessor
2024-05-06 20:56:36 +05:30
Jerry
3c284fa8af
Cancel pending downloader tasks before rewinding
2024-05-06 20:23:28 +05:30
Anshal Shukla
7c729f542b
Fix state sync hash ( #1207 )
...
* fix: hashing of statesync txn
* add: state sync txn in getBlockReceipts, testcase to check hashing of state sync txn in GetTransactonReceiptsByBlock
2024-05-06 20:04:02 +05:30
Anshal Shukla
8fc2a955a2
Merge pull request #1241 from maticnetwork/merge-master
...
Merge master
2024-05-06 19:48:27 +05:30
Maciej Kulawik
3e896c875a
ethdb/pebble: fix pebble metrics registration ( #29699 )
...
ethdb/pebble: use GetOrRegister instead of NewRegistered when creating metrics
2024-05-06 14:42:22 +03:00
Guillaume Ballet
43cbcd78ea
core, core/state: move TriesInMemory to state package ( #29701 )
2024-05-06 13:28:53 +02:00
Matthieu Vachon
a09a610384
core/tracing: add system call callback when performing ProcessBeaconBlockRoot ( #29355 )
...
Added a start/end system where tracer can be notified that processing of some Ethereum system calls is starting processing and also notifies it when the processing has completed.
Doing a start/end for system call will enable tracers to "route" incoming next tracing events to go to a separate bucket than other EVM calls. Those not interested by this fact can simply avoid registering the hooks.
The EVM call is going to be traced normally afterward between the signals provided by those 2 new hooks but outside of a transaction context OnTxStart/End. That something implementors of live tracers will need to be aware of (since only "trx tracers" are not concerned by ProcessBeaconRoot).
---------
Co-authored-by: Sina Mahmoodi <itz.s1na@gmail.com>
2024-05-06 13:21:55 +02:00
Kiarash Hajian
905e325cd8
p2p/discover/v5wire: add tests for invalid handshake and auth data size ( #29708 )
2024-05-06 13:17:19 +02:00
Anshal Shukla
f2a892c515
fix: lint
2024-05-06 16:10:32 +05:30
Anshal Shukla
9e07678b45
Merge branch 'develop' into merge-master
2024-05-06 11:26:23 +05:30
Martin HS
96ef9dbe54
cherry pick to fix lints
2024-05-05 15:47:42 +05:30
dependabot[bot]
bf6ca3433d
build(deps): bump golang.org/x/net from 0.22.0 to 0.23.0 ( #1225 )
...
Bumps [golang.org/x/net](https://github.com/golang/net ) from 0.22.0 to 0.23.0.
- [Commits](https://github.com/golang/net/compare/v0.22.0...v0.23.0 )
---
updated-dependencies:
- dependency-name: golang.org/x/net
dependency-type: indirect
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Pratik Patil <pratikspatil024@gmail.com>
2024-05-03 13:46:14 +05:30
easyfold
3a719a86d1
eth/tracers: avoid data race when tracing block with bor tx ( #1214 )
2024-05-03 11:50:10 +05:30
rjl493456442
86a1f0c394
core/rawdb: fix ancient root folder ( #29697 )
2024-05-02 13:26:07 +03:00
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
2024-05-02 12:35:45 +03:00
Nathan
fbf6238ae9
params: fix misleading comments ( #29684 )
2024-05-02 11:21:11 +03:00
Aaron Chen
bc609e852a
core/vm: remove redundant error checks ( #29692 )
2024-05-02 11:18:59 +03:00
Péter Szilágyi
682ee820fa
core/state: parallelise parts of state commit ( #29681 )
...
* core/state, internal/workerpool: parallelize parts of state commit
* core, internal: move workerpool into syncx
* core/state: use errgroups, commit accounts concurrently
* core: resurrect detailed commit timers to almost-accuracy
2024-05-02 11:18:27 +03:00
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
2024-04-30 16:25:35 +02:00
Bin
f8820f170c
accounts, cmd/geth, core: close opened files ( #29598 )
...
* fix: open file used up but not closed
* feat: more same case
* feat: accept conversation
2024-04-30 15:47:21 +02:00
jwasinger
45baf21111
eth/downloader: purge pre-merge sync code ( #29281 )
...
This PR removes pre-merge sync logic from the downloader. Now-irrelevant tests are removed and others have been updated.
2024-04-30 15:46:53 +02:00
lightclient
2e8e35f2ad
all: refactor so NewBlock, WithBody take types.Body ( #29482 )
...
* all: refactor so NewBlock(..) and WithBody(..) take a types.Body
* core: fixup comments, remove txs != receipts panic
* core/types: add empty withdrawls to body if len == 0
2024-04-30 14:55:08 +02:00
Martin HS
5e07054589
internal/ethapi: listen to ctx cancellation in access list ( #29686 )
2024-04-30 14:48:54 +02:00
Marius van der Wijden
bd6bc37eec
core/vm: add subgroup checks for mul/mulexp for G1/G2 ( #29637 )
2024-04-30 14:35:48 +02:00