Péter Szilágyi
85a4b82b33
all: tie timestamp based forks to the passage of London ( #27279 )
2023-05-19 11:27:19 +03:00
Péter Szilágyi
1982437259
core/types: un-ssz blob txs, add json marshalling and tweaks ( #27256 )
2023-05-12 20:14:29 +03:00
Péter Szilágyi and Martin Holst Swende
2169fa343a
crypto/kzg4844: pull in the C and Go libs for KZG cryptography ( #27155 )
...
* cryto/kzg4844: pull in the C and Go libs for KZG cryptography
* go.mod: pull in the KZG libraries
* crypto/kzg4844: add basic becnhmarks for ballpark numbers
* cmd, crypto: integrate both CKZG and GoKZG all the time, add flag
* cmd/utils, crypto/kzg4844: run library init on startup
* crypto/kzg4844: make linter happy
* crypto/kzg4844: push missing file
* crypto/kzg4844: fully disable CKZG but leave in the sources
* build, crypto/kzg4844, internal: link CKZG by default and with portable mode
* crypto/kzg4844: drop verifying the trusted setup in gokzg
* internal/build: yolo until it works?
* cmd/utils: make flag description friendlier
Co-authored-by: Martin Holst Swende <martin@swende.se >
* crypto/ckzg: no need for double availability check
* build: tiny flag cleanup nitpick
---------
Co-authored-by: Martin Holst Swende <martin@swende.se >
2023-05-10 14:54:14 +03:00
Péter Szilágyi
dde2da0efb
all: remove ethash pow, only retain shims needed for consensus and tests ( #27178 )
...
* all: remove ethash pow, only retain shims needed for consensus and tests
* all: thank you linter
* all: disallow launching Geth in legacy PoW mode
* cmd/env/internal/t8ntool: remove dangling ethash flag
2023-05-03 12:58:39 +03:00
Péter Szilágyi
66c0c4e517
cmd, eth, les: replace Shanghai override flag with Cancun ( #27171 )
2023-04-26 18:17:37 +03:00
Péter Szilágyi and Gary Rong
1e556d220c
all: remove notion of trusted checkpoints in the post-merge world ( #27147 )
...
* all: remove notion of trusted checkpoints in the post-merge world
* light: remove unused function
* eth/ethconfig, les: remove unused config option
* les: make linter happy
---------
Co-authored-by: Gary Rong <garyrong0905@gmail.com >
2023-04-24 09:37:10 +03:00
Péter Szilágyi
d3ece3a07c
cmd/utils, node: switch to Pebble as the default db if none exists ( #27136 )
...
* cmd/utils, node: switch to Pebble as the default db if none exists
* node: fall back to LevelDB on platforms not supporting Pebble
* core/rawdb, node: default to Pebble at the node level
* cmd/geth: fix some tests explicitly using leveldb
* ethdb/pebble: allow double closes, makes tests simpler
2023-04-21 19:24:18 +03:00
Péter Szilágyi
bbc565ab05
core/types, params: add blob transaction type, RLP encoded for now ( #27049 )
...
* core/types, params: add blob transaction type, RLP encoded for now
* all: integrate Cancun (and timestamp based forks) into MakeSigner
* core/types: fix 2 back-and-forth type refactors
* core: fix review comment
* core/types: swap blob tx type id to 0x03
2023-04-21 12:52:02 +03:00
Péter Szilágyi
4a9fa31450
Merge pull request #27051 from sandakersmann/master
...
build: upgrade -dlgo version to Go 1.20.3
2023-04-08 17:13:55 +03:00
d2cf49327f
consensus/misc, params: add EIP-4844 blobfee conversions ( #27041 )
...
* consensus/misc, params: add EIP-4844 blobfee conversions
* consensus/misc: pull in fakeExponential test cases
* consensus/misc: reuse bigints
* consensus/misc: nit renames, additional larger testcase
---------
Co-authored-by: Roberto Bayardo <bayardo@alum.mit.edu >
Co-authored-by: Martin Holst Swende <martin@swende.se >
2023-04-04 11:25:28 +03:00
Péter Szilágyi
91faf2c559
consensus, core/typer: add 4844 excessDataGas to header, tie it to Cancun ( #27046 )
2023-04-04 10:02:50 +03:00
Péter Szilágyi
8a9a73c99b
log: add special casing of uint256 into the logger ( #26936 )
2023-03-21 12:01:43 +02:00
Péter Szilágyi
2ed8013f08
build: allow building nightly archives via cron jobs ( #26938 )
2023-03-21 11:52:29 +02:00
Péter Szilágyi
df02799543
travis: only build PPAs nightly, not on every push, too heavy ( #26846 )
2023-03-09 16:44:54 +02:00
Péter Szilágyi
4c23fe97c5
eth: remove admin.peers[i].eth.head and difficulty ( #26804 )
2023-03-06 09:27:46 +02:00
Péter Szilágyi
27e59827d8
travi: remove strange leftover Go version
2023-03-03 12:26:04 +02:00
Péter Szilágyi
403cac71eb
README, go.mod, event, internal/version: bump min Go to 1.19 ( #26803 )
2023-03-03 12:24:09 +02:00
Péter Szilágyi
010189538e
core: fix a merge fault ( #26802 )
2023-03-03 12:11:39 +02:00
Péter Szilágyi
19f74fa3c0
core/rawdb, ethdb/pebble: disable pebble on openbsd ( #26801 )
2023-03-03 12:05:00 +02:00
Péter Szilágyi
cd31f2dee2
all: change chain head markers from block to header ( #26777 )
2023-03-02 08:29:15 +02:00
Péter Szilágyi
ee530c0d5a
Merge pull request #26721 from holiman/nocover
...
ci: disable coverage reporting in appveyor and travis
2023-02-23 13:24:31 +02:00
Péter Szilágyi
b3ae073488
eth: use the last announced finalized block as the sync ancient limit ( #26685 )
2023-02-23 13:22:41 +02:00
Péter Szilágyi
f6a7cc68d5
params: begin v.1.11.3 release cycle
2023-02-22 14:25:19 +02: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
Péter Szilágyi
2f20fd31ee
core/rawdb: expose chain freezer constructor without internals ( #26748 )
2023-02-21 13:10:01 +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
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
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
Péter Szilágyi
77380b9629
go.mod: update pebble to latest master ( #26654 )
2023-02-09 19:01:31 +02:00
Péter Szilágyi
3086c256c9
eth/downloader: fix timeout resurrection panic ( #26652 )
...
* common/prque, eth/downloader: fix timeout resurrection panic
* common/prque: revert -1 hack for les, temporaryly!
2023-02-09 14:56:15 +02:00
Péter Szilágyi
da3c974c36
ethdb/pebble: fix nil callbacks ( #26650 )
2023-02-09 13:31:42 +02:00
bf1798e04e
common/prque: generic priority queue ( #26290 )
...
* common, core, eth, les, trie: make prque generic
* les/vflux/server: fixed issues in priorityPool
* common, core, eth, les, trie: make priority also generic in prque
* les/flowcontrol: add test case for priority accumulator overflow
* les/flowcontrol: avoid priority value overflow
* common/prque: use int priority in some tests
No need to convert to int64 when we can just change the type used by the
queue.
* common/prque: remove comment about int64 range
---------
Co-authored-by: Zsolt Felfoldi <zsfelfoldi@gmail.com >
Co-authored-by: Felix Lange <fjl@twurst.com >
2023-02-09 13:03:54 +02:00
Péter Szilágyi
095e365fac
all: remove support for Ropsten ( #26644 )
2023-02-09 10:03:00 +02:00
Péter Szilágyi
3a79a99f80
Merge pull request #26599 from karalabe/mobile-nuke
...
accounts, build, mobile: remove Android and iOS support
2023-02-03 12:52:10 +02:00
Péter Szilágyi
d9699c8238
accounts, build, mobile: remove Andriod and iOS support
2023-02-03 12:29:07 +02:00
Péter Szilágyi
5d8bff1d72
Merge pull request #26581 from holiman/nuke_puppet
...
cmd/puppeth: remove puppeth
2023-02-02 10:00:23 +02:00
Péter Szilágyi
452a12aa79
eth/downloader: move the pivot in beacon sync mode too ( #26453 )
...
In legacy (pre-merge) sync mode, headers were contiguously downloaded from the network and when no more headers were available, we checked every few seconds whether there are 64 new blocks to move the pivot.
In beacon (post-merge) sync mode, we don't need to check for new skeleton headers non stop, since those re delivered one by one by the engine API. The missing code snippet from the header fetcher was to actually look at the latest head and move the pivot if it was more than 2*64-8 away. This PR adds the missing movement logic.
2023-01-10 12:16:54 -05:00
Péter Szilágyi
43692c84d1
Merge pull request #26451 from rjl493456442/fix-beacon-sync-2
...
eth/downloader: fix unexpected skeleton header deletion
2023-01-09 12:55:51 +02:00
Péter Szilágyi
71f7988b0f
eth/downloader: create repro testcase for beacon header loss
2023-01-09 12:12:25 +02:00
Péter Szilágyi
2189773093
Merge pull request #25878 from MariusVanDerWijden/shanghai-by-time
...
params: core: enable shanghai based on timestamps
2023-01-06 16:10:12 +02:00
Péter Szilágyi
b56c796220
cmd, core, eth, els, params: disallow setheads below genesis, tweaks
2023-01-06 15:29:58 +02:00
Péter Szilágyi
fcf3d00488
eth, les: polish forkid a bit, fix races and transition validation
2023-01-06 15:29:57 +02:00
Péter Szilágyi
d021157820
core, les, light: implement timestamp based sethead and genesis rewinds
2023-01-03 12:57:07 +02:00
Péter Szilágyi
08481028fe
core, les, params: add timestamp based fork compatibility checks
2023-01-03 12:57:06 +02:00
Péter Szilágyi
7496ad8edc
Merge pull request #26049 from sandakersmann/master
...
build: upgrade -dlgo version to Go 1.19.2
2022-10-27 11:01:12 +03:00
Péter Szilágyi and Martin Holst Swende
c4a662176e
core, eth: for types with accurate size calcs, return uint64, not float ( #26046 )
...
* core, eth: for types with accurate size calcs, return uint64, not float
* core/types: proper tx size tests
* core/types: extend tx size test with decoded sizes, fix error
* core/txpool: fix linter
Co-authored-by: Martin Holst Swende <martin@swende.se >
2022-10-26 15:23:07 +03:00
Péter Szilágyi
5bed24dd77
Merge pull request #26044 from karalabe/rename-typed-tx-files
...
core/types: rename tx files to group them better together
2022-10-26 13:51:46 +03:00
Péter Szilágyi
68ba845bb5
core/types: rename tx files to group them better together
2022-10-26 13:30:51 +03:00
Péter Szilágyi
a2b7481b78
Merge pull request #26038 from karalabe/split-txpool
...
all: refactor txpool into it's own package in prep for 4844
2022-10-24 20:30:33 +03:00
Péter Szilágyi
a6dda03644
all: refactor txpool into it's own package in prep for 4844
2022-10-24 16:35:53 +03:00
Péter Szilágyi
4f7a425aa8
Merge pull request #25924 from holiman/comments_fix
...
all: fix docstrings
2022-10-04 13:30:00 +03:00
Péter Szilágyi
18a001fa3e
Merge pull request #25831 from karalabe/fix-challenge-stop-hang
...
eth: fix a rare datarace on CHT challenge reply / shutdown
2022-09-20 15:30:15 +03:00
Péter Szilágyi
d728ba97d8
eth: fix a rare datarace on CHT challenge reply / shutdown
2022-09-20 14:14:24 +03:00
Péter Szilágyi and Martin Holst Swende
de8d5fa042
eth/protocols/snap: throttle trie heal requests when peers DoS us ( #25666 )
...
* eth/protocols/snap: throttle trie heal requests when peers DoS us
* eth/protocols/snap: lower heal throttle log to debug
Co-authored-by: Martin Holst Swende <martin@swende.se >
* eth/protocols/snap: fix comment
Co-authored-by: Martin Holst Swende <martin@swende.se >
2022-09-09 11:42:57 +03:00
Péter Szilágyi
d408cb6fba
Merge pull request #25694 from karalabe/concurrent-heal-check
...
trie: check childrens' existence concurrently for snap heal
2022-09-06 15:49:13 +03:00
Péter Szilágyi
a9ec2ab2e6
trie: check childrens' existence concurrently for snap heal
2022-09-06 12:57:03 +03:00
Péter Szilágyi
511bf8f188
Merge pull request #25651 from holiman/fix_snapqueue
...
eth/protocols/snap: fix problems due to idle-but-busy peers
2022-09-01 12:38:34 +03:00
Péter Szilágyi
57896d6fbe
params: begin v1.10.24 release cycle
2022-08-24 12:11:17 +03:00
Péter Szilágyi
d901d85377
params: release Geth v1.10.23
2022-08-24 12:09:02 +03:00
Péter Szilágyi
4c114af502
Merge pull request #25582 from holiman/err_handling
...
consensus/beacon: don't ignore errors
2022-08-23 22:26:33 +03:00
Péter Szilágyi
9ed10b9e48
Merge pull request #25581 from karalabe/triedb-fix-flush-order
...
core/state, trie: fix trie flush order for proper pruning
2022-08-23 22:13:33 +03:00
Péter Szilágyi
5758d1fb11
core/state, trie: fix trie flush order for proper pruning
2022-08-23 21:17:12 +03:00
Péter Szilágyi
81bd998353
core, eth/downloader: handle spurious junk bodies from racey rollbacks ( #25578 )
...
* eth/downloader: handle junkbodies/receipts in the beacon sync
* core: check for header presence when checking for blocks
2022-08-23 14:02:51 +03:00
Péter Szilágyi and Felix Lange
395f3d4bf6
eth/catalyst: warn less frequently if no beacon client is available ( #25569 )
...
* eth/catalyst: warn less frequently if no beacon client is available
* eth/catalyst: tweak warning frequency a bit
* eth/catalyst: some more tweaks
* Update api.go
Co-authored-by: Felix Lange <fjl@twurst.com >
2022-08-22 11:27:39 +03:00
Péter Szilágyi
02418c2fa9
Revert "eth/fetcher: don't spend too much time on transaction inclusion" ( #25567 )
...
Revert "eth/fetcher: don't spend too much time on transaction inclusion (#25524 )"
This reverts commit 0ce494b60c .
2022-08-22 10:14:56 +03:00
Péter Szilágyi
c4cd632f47
Merge pull request #25506 from ycyraum/apply-transaction-no-bc
...
core: remove unused bc ChainContext in applyTransaction
2022-08-10 11:02:22 +03:00
Péter Szilágyi
c7ce74a53a
Merge pull request #25461 from sandakersmann/master
...
build: upgrade -dlgo version to Go 1.18.5
2022-08-02 10:23:24 +03:00
Péter Szilágyi
6fd06ab075
cmd, core, eth, les, params: add merge-passed chain config ( #24538 )
...
* cmd, core, eth, les, params: add merge-passed chain config
* eth/catalyst, params: add various warning on malfunctioning beacons
* eth/catalyst: fix warning for beacons without transition exchanges
2022-08-01 15:13:25 +03:00
Péter Szilágyi
c02b0488fb
Merge pull request #25428 from karalabe/engineapi-snap-import-deny
...
eth/catalyst: fix NewPayload warn log when dropping due to snap sync
2022-07-28 08:50:42 +03:00
Péter Szilágyi
ad7106dfc4
eth/catalyst: fix NewPayload warn log when dropping due to snap sync
2022-07-28 08:46:13 +03:00
Péter Szilágyi
f543e6b065
Merge pull request #25371 from Zachinquarantine/mergeconfig-message
...
params: change Merge config to print simpler message
2022-07-25 17:50:29 +03:00
f3af3fd8df
eth: support bubbling up bad blocks from sync to the engine API ( #25190 )
...
* eth: support bubbling up bad blocks from sync to the engine API
* eth/catalyst: fix typo
Co-authored-by: Marius van der Wijden <m.vanderwijden@live.de >
* eth/catalyst: fix typo
Co-authored-by: Marius van der Wijden <m.vanderwijden@live.de >
* Update eth/catalyst/api.go
* eth/catalyst: when forgetting bad hashes, also forget descendants
* eth/catalyst: minor bad block tweaks for resilience
Co-authored-by: Marius van der Wijden <m.vanderwijden@live.de >
Co-authored-by: Martin Holst Swende <martin@swende.se >
2022-07-25 16:51:04 +03:00
Péter Szilágyi
2b6a761238
Merge pull request #25397 from karalabe/fix-tracer-capitalization
...
eth/tracers/js: fix capitalization in tests
2022-07-25 16:50:40 +03:00
Péter Szilágyi
eb2b8cb4fd
eth/tracers/js: fix capitalization in tests
2022-07-25 16:49:16 +03:00
Péter Szilágyi
6da1fce265
Merge pull request #25379 from holiman/leveldb_update
...
deps: update goleveldb
2022-07-25 09:01:01 +03:00
Péter Szilágyi
b53d38246e
Merge pull request #25096 from lightclient/remove-version-field
...
all: remove version field
2022-07-14 12:13:59 +03:00
Péter Szilágyi
e108d36575
Merge pull request #25293 from sandakersmann/master
...
build: upgrade -dlgo version to Go 1.18.4
2022-07-14 10:30:53 +03:00
Péter Szilágyi
d740d6e741
Merge pull request #25290 from karalabe/tar-archive-folder-time
...
internal/build: add a timestamp to the tar archive folder
2022-07-12 14:39:05 +03:00
Péter Szilágyi
68cd0cda4a
internal/build: add a timestamp to the tar archive folder
2022-07-12 14:35:35 +03:00
Péter Szilágyi
48da9d5513
Merge pull request #25288 from karalabe/enable-sepolia-dnsdisc
...
params: enable DNS discovery on Sepolia too
2022-07-12 14:09:42 +03:00
Péter Szilágyi
e66a538a36
params: enable DNS discovery on Sepolia too
2022-07-12 14:06:23 +03:00
Péter Szilágyi
714fb302a5
Merge pull request #25247 from sandakersmann/master
...
build: upgrade -dlgo version to Go 1.18.3
2022-07-11 10:33:12 +03:00
Péter Szilágyi and Marius van der Wijden
de1cecb22e
eth/catalyst: disallow importing blocks via newPayload during snap sync ( #25210 )
...
* eth/catalyst: disallow importing blocks via newPayload during snap sync
* eth/catalyst: make tests pass by using full sync only
* eth/catalysts: make the import delay a bit cleaner
* eth/catalyst: fix typo
Co-authored-by: Marius van der Wijden <m.vanderwijden@live.de >
Co-authored-by: Marius van der Wijden <m.vanderwijden@live.de >
2022-07-01 14:38:26 +03:00
Péter Szilágyi
692bfd1bf8
Merge pull request #25206 from dbadoy/master
...
common/prque: fix typo
2022-06-30 09:23:34 +03:00
Péter Szilágyi
67454df08b
params: begin v1.10.20 release cycle
2022-06-15 15:56:01 +03:00
Péter Szilágyi
23bee16208
params: release Geth v1.10.19
2022-06-15 15:49:45 +03:00
Péter Szilágyi
c4dab8ceca
Merge pull request #25044 from karalabe/rpc-histograms
...
rpc: swap out timer metrics to histograms
2022-06-08 16:34:43 +03:00
Péter Szilágyi
106a162b7c
rpc: swap out timer metrics to histograms
2022-06-08 16:24:33 +03:00
Péter Szilágyi
41e75480df
eth, les, params: log chain config a bit saner ( #24904 )
...
Previously on Geth startup we just logged the chain config is a semi-json-y format. Whilst that worked while we had a handful of hard-forks defined, currently it's kind of unwieldy.
This PR converts that original data dump and converts it into a user friendly - alas multiline - log output.
2022-06-07 12:49:07 +02:00
Péter Szilágyi
6cc4cc68c2
Merge pull request #24945 from karalabe/cht-1.10.18
...
params: update CHTs for Geth 1.10.18
2022-05-24 17:11:14 +03:00
Péter Szilágyi
e31ff1f33c
params: update CHTs for Geth 1.10.18
2022-05-24 16:20:43 +03:00