philip-morlier
27810f60ad
Added hook into trie.Database.Commit() in the trie package.
...
The hook enables a pre and post commit plugin to report on the status of the commit and expose this information to plugins.
2023-03-08 09:59:47 -08:00
philip-morlier
50a295b789
Merge remote-tracking branch 'origin/develop' into feature/trie_interval_clone
2023-03-07 11:55:40 -08:00
AusIV
2c03e88687
Merge pull request #70 from openrelayxyz/merge/geth-v1.11.2
...
Merge/geth v1.11.2
2023-02-23 11:50:11 -06:00
philip-morlier
89bc9e0ee6
updtated utils to v0.0.24
2023-02-23 09:44:05 -08:00
philip-morlier
2c14e954cf
Added return to trie flush hook, updated to utils v0.0.23.
2023-02-23 09:06:28 -08:00
philip-morlier
7bf0c614f6
Modified chain freezer map keys to Public to match v1.11.2
2023-02-22 10:01:43 -08:00
philip-morlier
4415e7c7b8
Merge commit '73b01f40c' geth v1.11.2 into merge/geth-v1.11.2
2023-02-22 08:13:38 -08:00
Péter Szilágyi
73b01f40ce
params: release Geth v1.11.2
2023-02-22 14:23:51 +02:00
Péter Szilágyi
f86f048646
common/math: allow HexOrDecimal to accept unquoted decimals too ( #26758 )
2023-02-22 13:55:09 +02:00
Yier
4034c675be
eth/filters: fix a breaking change and return rpctransaction ( #26757 )
...
* eth/filters: fix a breaking change and return rpctransaction
* eth/filters: fix test cases
---------
Co-authored-by: Catror <me@catror.com>
2023-02-22 13:06:43 +02:00
philip-morlier
78e00bf68d
Manual touches to preserve compatability of other networks with utils as well as fix a failing test in core/rawdb.
2023-02-21 10:29:25 -08:00
rjl493456442
fe01a2f63b
all: use unified emptyRootHash and emptyCodeHash ( #26718 )
...
The EmptyRootHash and EmptyCodeHash are defined everywhere in the codebase, this PR replaces all of them with unified one defined in core/types package, and also defines constants for TxRoot, WithdrawalsRoot and UncleRoot
2023-02-21 06:12:27 -05:00
Péter Szilágyi
2f20fd31ee
core/rawdb: expose chain freezer constructor without internals ( #26748 )
2023-02-21 13:10:01 +02:00
Martin Holst Swende
6d2d126100
core: fix accessor mismatch for genesis state ( #26747 )
2023-02-21 12:18:33 +02:00
Péter Szilágyi
90d25514af
core, eth: merge snap-sync chain download progress logs ( #26676 )
2023-02-21 12:17:34 +02:00
Sungwoo Kim
7d4db69607
cmd/geth: clarify dumpconfig options ( #26729 )
...
Clarifies the documentation around dumpconfi
Signed-off-by: Sungwoo Kim <git@sung-woo.kim>
2023-02-21 02:35:04 -05:00
philip-morlier
aee0d470b1
added warn message to setTrieFlushIntervalClone hook
2023-02-20 10:00:30 -08:00
rjl493456442
13ef21d467
Revert "core/trie: remove trie tracer ( #26665 )" ( #26732 )
...
This reverts commit 7c749c947a
.
2023-02-20 09:54:52 -05:00
Péter Szilágyi
ba4267fcac
build: enable Lunar Lobster PPA builds
2023-02-20 13:26:37 +02:00
Péter Szilágyi
41dee2623e
build: fix Go 1.19.0 bootstrapper issues on 386 PPA
2023-02-20 12:36:46 +02:00
Péter Szilágyi
4519054816
build: fix (finaly?) the PPA env vars for Go bootstrapping
2023-02-20 11:31:19 +02:00
Péter Szilágyi
c02334be1e
build: yet another weird PPA fix
2023-02-20 11:07:33 +02:00
Péter Szilágyi
165268430c
internal/build: revert raising the chunk size for PPA
2023-02-20 10:43:55 +02:00
Péter Szilágyi
a43efceaf2
build: add some PPA debug logs, sigh
2023-02-20 10:31:35 +02:00
Péter Szilágyi
4ec4235fc4
build: fix gobootstrap path for the PPA
2023-02-20 10:09:00 +02:00
Péter Szilágyi
e1e2781105
build: fix setting env var, temp early exit
2023-02-20 09:57:37 +02:00
Péter Szilágyi
2166c86041
build: ship bootstrapper Go along with builder for PPA ( #26731 )
2023-02-20 08:53:15 +02:00
philip-morlier
0186a12412
functional and tested setTrieFlushIntervalClone plugin
2023-02-19 19:00:40 -08:00
Felix Lange
1db978ca6b
rpc: fix unmarshaling of null result in CallContext ( #26723 )
...
The change fixes unmarshaling of JSON null results into json.RawMessage.
---------
Co-authored-by: Jason Yuan <jason.yuan@curvegrid.com>
Co-authored-by: Jason Yuan <jason.yuan869@gmail.com>
2023-02-19 14:23:18 -05:00
Martin Holst Swende
7c749c947a
core/trie: remove trie tracer ( #26665 )
...
This PR contains a small portion of the full pbss PR, namely
Remove the tracer from trie (and comitter), and instead using an accessList.
Related changes to the Nodeset.
---------
Co-authored-by: Gary Rong <garyrong0905@gmail.com>
2023-02-19 14:10:19 -05:00
philip-morlier
bff86afa0c
updated utils to v0.0.21
2023-02-17 14:11:53 -08:00
Roman Krasiuk
15e5e6176b
eth/catalyst: request too large error ( #26722 )
...
The method `GetPayloadBodiesByRangeV1` now returns "-38004: Too large request" error if the requested range is too large, according to spec
Co-authored-by: Martin Holst Swende <martin@swende.se>
2023-02-17 13:30:38 -05:00
philip-morlier
ef92d21d25
Manual touches to modify types to conform to geth v1.11.1
2023-02-17 08:29:46 -08:00
philip-morlier
2f6b8d86f1
manual geth v1.11.1 merge
2023-02-17 07:53:01 -08:00
Marius van der Wijden
6428663faf
eth/catalyst: send INVALID instead of INVALID_BLOCK_HASH ( #26696 )
...
This change will break one hive test, but pass another and it will be the better way going forward
2023-02-17 05:25:09 -05:00
Martin Holst Swende
b40c10916c
params: begin v1.11.2 release cycle
2023-02-16 20:53:16 +01:00
Martin Holst Swende
769610667d
params: go-ethereum v1.11.1 stable
2023-02-16 20:51:51 +01:00
Martin Holst Swende
4d3525610e
all: remove deprecated uses of math.rand ( #26710 )
...
This PR is a (superior) alternative to https://github.com/ethereum/go-ethereum/pull/26708 , it handles deprecation, primarily two specific cases.
`rand.Seed` is typically used in two ways
- `rand.Seed(time.Now().UnixNano())` -- we seed it, just to be sure to get some random, and not always get the same thing on every run. This is not needed, with global seeding, so those are just removed.
- `rand.Seed(1)` this is typically done to ensure we have a stable test. If we rely on this, we need to fix up the tests to use a deterministic prng-source. A few occurrences like this has been replaced with a proper custom source.
`rand.Read` has been replaced by `crypto/rand`.`Read` in this PR.
2023-02-16 14:36:58 -05:00
ucwong
e9d42499bb
eth/downloader: fix typo ( #26716 )
2023-02-16 19:40:16 +02:00
Martin Holst Swende
13d7de77f4
eth/downloader: fix empty-body case in queue fetchresult ( #26707 )
2023-02-16 12:28:01 +02:00
Martin Holst Swende
645e3e86c4
core, eth/downloader: make body validation more strict ( #26704 )
2023-02-16 12:10:16 +02:00
rjl493456442
08bf8a60c3
core: check genesis state presence by disk read ( #26703 )
2023-02-16 12:09:41 +02:00
Péter Szilágyi
5ccc99b258
travis, build: update Go to 1.20.1 ( #26653 )
...
travis, build: update Go to 1.20
2023-02-16 09:00:45 +02:00
Martin Holst Swende
194b5c9152
params: begin v1.11.1 release cycle
2023-02-15 19:15:31 +01:00
Martin Holst Swende
18b641b064
params: go-ethereum v1.11.0 stable
2023-02-15 19:14:20 +01:00
Marius van der Wijden
7fb42e6db2
eth/downloader: handle missing withdrawals if empty list is expected ( #26675 )
...
This PR relaxes the block body ingress handling a bit: if block body withdrawals are missing (but expected to be empty), the body withdrawals are set to 'empty list' before being passed to upper layers.
This fixes an issue where a block passed from EthereumJS to geth was deemed invalid.
2023-02-15 07:23:07 -05:00
Patrick O'Grady
5967a2290a
ethdb/pebble: Fix MemTableStopWritesThreshold
( #26692 )
...
MemTableStopWritesThreshold was set to the max size of all memtables before blocking writing but should be set to the max number of memtables. This is documented [here](https://github.com/cockroachdb/pebble/blob/master/options.go#L738-L742 ).
2023-02-15 03:27:52 -05:00
Marius van der Wijden
dbd6c1324d
eth/catalyst: return error if withdrawals are nil post-shanghai ( #26691 )
...
Spec: https://github.com/ethereum/execution-apis/blob/main/src/engine/shanghai.md#request
2023-02-14 13:39:00 -05:00
Felix Lange
101587b3f4
p2p/dnsdisc: fix tests with Go 1.20 ( #26690 )
2023-02-14 15:58:43 +02:00
Sina Mahmoodi
ff38c9ee2e
eth/filters: replace atomic pointer with value ( #26689 )
...
* eth/filters: replace atomic.Pointer
* fix
* improve
Co-authored-by: Martin Holst Swende <martin@swende.se>
---------
Co-authored-by: Martin Holst Swende <martin@swende.se>
2023-02-14 15:48:22 +02:00