Mobin Mohanan
7224576fba
core, eth/protocols/snap, internal/ethapi: remove redundant types ( #29841 )
2024-05-27 14:39:39 +08:00
Wukingbow
7f5cc02a99
metrics: fix function comment ( #29843 )
2024-05-27 14:34:53 +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
Pratik Patil
5f6a76bafe
added error handeling in ethstats.go which prevents node to panic ( #1249 )
2024-05-27 09:11:44 +05:30
winterjihwan
d1d9f34e51
core/types: clarify set inclusion in comments ( #29839 )
2024-05-26 11:54:37 +02:00
levisyin
b6474e9f90
metrics: add test for SampleSnapshot.Sum ( #29831 )
2024-05-24 11:34:30 +02:00
gitglorythegreat
64b1cd8aaf
p2p: fix typos ( #29828 )
2024-05-24 11:33:19 +02:00
Halimao
08fe6a8614
metrics: fix flaky testTestExpDecaySampleNanosecondRegression ( #29832 )
2024-05-24 15:20:05 +08:00
Aaron Chen
61b3d93bb0
p2p/enode: fix TCPEndpoint ( #29827 )
2024-05-23 23:17:51 +02:00
Felix Lange
cc9e2bd9dd
p2p/enode: fix endpoint determination for IPv6 ( #29801 )
...
enode.Node has separate accessor functions for getting the IP, UDP port and TCP port.
These methods performed separate checks for attributes set in the ENR.
With this PR, the accessor methods will now return cached information, and the endpoint is
determined when the node is created. The logic to determine the preferred endpoint is now
more correct, and considers how 'global' each address is when both IPv4 and IPv6 addresses
are present in the ENR.
2024-05-23 14:27:03 +02:00
Felix Lange
6a9158bb1b
p2p/discover: improved node revalidation ( #29572 )
...
Node discovery periodically revalidates the nodes in its table by sending PING, checking
if they are still alive. I recently noticed some issues with the implementation of this
process, which can cause strange results such as nodes dropping unexpectedly, certain
nodes not getting revalidated often enough, and bad results being returned to incoming
FINDNODE queries.
In this change, the revalidation process is improved with the following logic:
- We maintain two 'revalidation lists' containing the table nodes, named 'fast' and 'slow'.
- The process chooses random nodes from each list on a randomized interval, the interval being
faster for the 'fast' list, and performs revalidation for the chosen node.
- Whenever a node is newly inserted into the table, it goes into the 'fast' list.
Once validation passes, it transfers to the 'slow' list. If a request fails, or the
node changes endpoint, it transfers back into 'fast'.
- livenessChecks is incremented by one for successful checks. Unlike the old implementation,
we will not drop the node on the first failing check. We instead quickly decay the
livenessChecks give it another chance.
- Order of nodes in bucket doesn't matter anymore.
I am also adding a debug API endpoint to dump the node table content.
Co-authored-by: Martin HS <martin@swende.se>
2024-05-23 14:26:09 +02:00
Halimao
70bee977d6
metrics: fix out of range error message ( #29821 )
2024-05-23 12:34:34 +02:00
Mobin Mohanan
b779e469da
Makefile: add fmt, update help ( #29777 )
2024-05-23 11:56:32 +02:00
Sina M
fa581766f5
eth/tracers: fix json logger for evm blocktest ( #29795 )
2024-05-23 10:55:54 +02:00
Karl Bartel
0d4cdb3dbe
internal/ethapi: fix typos ( #29784 )
...
Fix typos in api.go
2024-05-23 10:41:51 +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
cocoyeal
be5df74ed5
trie: update the valid function comments ( #29809 )
2024-05-21 19:53:34 +08:00
rjl493456442
473ee8fc07
trie, eth/protocols/snap: sanitize the committed node data ( #29485 )
2024-05-16 17:58:35 +08: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
cario-dev
d2f00cb54e
.github: upgrade to action versions with node20 ( #29776 )
...
* github: upgrade checkout action to version with node20
* Update go.yml
---------
Co-authored-by: Felix Lange <fjl@twurst.com>
2024-05-14 15:46:11 +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
rjl493456442
5b3e3cd2be
tests: update tests ( #29730 )
2024-05-13 21:34:29 +08: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
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