Shivam Sharma
65014b1f5e
Merge branch 'develop' into shivam/upstream-geth-1.13.5
2024-01-19 13:56:00 +05:30
SHIVAM SHARMA
2a35bf8340
add : amoy flags and genesis ( #1131 )
...
* add : amoy flags and genesis
* minor fix
* add : amoy.json in internal/cli/server
* disable : peer check in mining for Amoy
* add : amoy genesis hash
* add amoy testnet deployment entries
* update : amoy genesis
* fix typos
* add : post london forks + burn contract
* add : amoy genesis hash
* bump : version meta to amoy (#1092 )
* add : amoy bootnodes
* chg : maxpeers of amoy val to 3 from 1
* bump : version to v1.1.0-amoy-2
* add : amoychain worker restriction on peercount
---------
Co-authored-by: sreevalsanmr <sreevalsan@polygon.technology>
2024-01-19 02:01:36 +05:30
Shivam Sharma
c816d0f1f3
fix : TestWelcome genesis bug
2024-01-11 16:18:35 +05:30
Shivam Sharma
c0bf289a84
fix : testcases
2024-01-10 17:12:37 +05:30
Shivam Sharma
8c088c7295
fix : resolve static problems
2023-12-15 13:57:19 +05:30
Shivam Sharma
a9fa325b7e
Merge tag 'v1.13.5' of https://github.com/ethereum/go-ethereum into shivam/upstream-geth-1.13.5
2023-12-15 13:55:57 +05:30
Arpit Temani
9c1308818c
make blobgas nil
2023-11-10 14:29:27 +05:30
Arpit Temani
073bb183da
make blobgas nil
2023-11-10 14:22:14 +05:30
Arpit Temani
1483c960ed
merge develop
2023-11-03 10:10:02 +05:30
Guillaume Ballet
4cbca5178a
core, cmd/geth: add --override.* flags to geth init ( #28407 )
...
* core, cmd/geth: add --override.* flags to geth init
* also apply overrides before genesis commit with new block
* review feedback
2023-10-27 10:15:14 +08:00
Anshal Shukla
9f4457958d
bor: make withdrawals nil
2023-10-20 15:05:41 +05:30
Arpit Temani
48f6200449
merge shanghai tests
2023-10-16 23:23:13 +05:30
rjl493456442
eeb5dc3ccf
cmd, core: resolve scheme from a read-write database ( #28313 )
...
* cmd, core: resolve scheme from a read-write database
* cmd, core, eth: move the scheme check in the ethereum constructor
* cmd/geth: dump should in ro mode
* cmd: reverts
2023-10-11 11:27:44 +03:00
Shivam Sharma
1fc6354ab1
clean : shanghai changes
2023-10-06 12:06:46 +05:30
Péter Szilágyi
323542af50
core, params: update Holesky testnet to relaunched spec ( #28191 )
2023-09-25 16:10:23 +03:00
Arpit Temani
7f727cb65d
skip tests
2023-09-22 17:03:17 +05:30
Martin Holst Swende
6aa88ccdd2
beacon/engine, eth/catalyst, miner: EIP-4788 CL/EL protocol updates ( #27872 )
...
This PR makes EIP-4788 work in the engine API and miner. It also fixes some bugs related to
EIP-4844 block processing and mining. Changes in detail:
- Header.BeaconRoot has been renamed to ParentBeaconRoot.
- The engine API now implements forkchoiceUpdatedV3
- newPayloadV3 method has been updated with the parentBeaconBlockRoot parameter
- beacon root is now applied to new blocks in miner
- For EIP-4844, block creation now updates the blobGasUsed field of the header
2023-08-26 04:52:12 +02:00
Péter Szilágyi
6b98d18789
cmd, core, params: add support for the Holesky testnet ( #28007 )
...
* cmd, core, params: add support for the Holesky testnet
* cmd/devp2p: add support for holesky for the dns crawler
2023-08-25 18:11:40 +03:00
Felix Lange
6dc9cdf15b
core: support null balance in genesis ( #28005 )
2023-08-25 15:59:40 +02:00
Martin Holst Swende
b8d38e76ef
core, params, beacon/engine: implement EIP 4788 BeaconRoot ( #27849 )
...
This change implements "EIP 4788 : Beacon block root in the EVM". It implements version-2 of EPI-4788, main difference being that the contract is an actual contract rather than a precompile, as in #27289 .
2023-08-22 08:33:39 -04:00
Arpit Temani
d3c5bc9b45
fix build
2023-08-21 17:48:09 +05:30
Shivam Sharma
56ca065961
chg : shanghaiTime to shanghaiBlock
2023-08-18 17:05:13 +05:30
Arpit Temani
b343cffdb4
merge geth v1.12.2 into develop
2023-08-18 14:05:34 +05:30
rjl493456442
503f1f7ada
all: activate pbss as experimental feature ( #26274 )
...
* all: activate pbss
* core/rawdb: fix compilation error
* cma, core, eth, les, trie: address comments
* cmd, core, eth, trie: polish code
* core, cmd, eth: address comments
* cmd, core, eth, les, light, tests: address comment
* cmd/utils: shorten log message
* trie/triedb/pathdb: limit node buffer size to 1gb
* cmd/utils: fix opening non-existing db
* cmd/utils: rename flag name
* cmd, core: group chain history flags and fix tests
* core, eth, trie: fix memory leak in snapshot generation
* cmd, eth, internal: deprecate flags
* all: enable state tests for pathdb, fixes
* cmd, core: polish code
* trie/triedb/pathdb: limit the node buffer size to 256mb
---------
Co-authored-by: Martin Holst Swende <martin@swende.se>
Co-authored-by: Péter Szilágyi <peterke@gmail.com>
2023-08-10 22:21:36 +03:00
Péter Szilágyi
57268f7e6c
all: rename dataGas to blobGas ( #27789 )
2023-07-27 16:53:28 +03:00
rjl493456442
88f3d61468
all: expose block number information to statedb ( #27753 )
...
* core/state: clean up
* all: add block number infomration to statedb
* core, trie: rename blockNumber to block
2023-07-24 13:22:09 +03:00
Shivam Sharma
54acb92cb4
fix : test-integration
2023-07-17 16:39:12 +08:00
Martin Holst Swende
b058cf454b
core, tests: EIP-4844 transaction processing logic ( #27721 )
...
This updates the reference tests to the latest version and also adds logic
to process EIP-4844 blob transactions into the state transition. We are now
passing most Cancun fork tests.
Co-authored-by: Marius van der Wijden <m.vanderwijden@live.de>
Co-authored-by: Felix Lange <fjl@twurst.com>
2023-07-15 23:27:36 +02:00
jwasinger
ea782809f7
cmd/geth: implement dev mode for post-merge ( #27327 )
...
This change adds back the 'geth --dev' mode of operation, using a cl-mocker.
---------
Co-authored-by: Martin Holst Swende <martin@swende.se>
Co-authored-by: rjl493456442 <garyrong0905@gmail.com>
Co-authored-by: lightclient <14004106+lightclient@users.noreply.github.com>
2023-07-06 04:42:34 -04:00
Guillaume Ballet
85b8d1c06c
params, trie: add verkle fork management + upgrade go-verkle ( #27464 )
...
* params, trie: add verkle fork management + upgrade go-verkle
* remove the two verkle files
* core, eth, params: add missing function
* Gary's feedback
* remove trie/utils/verkle.go
* add verkle block override
---------
Co-authored-by: Gary Rong <garyrong0905@gmail.com>
2023-06-28 12:08:48 +03:00
marcello33
99693ef56c
dev: fix: all remaining lint issues
2023-06-19 11:39:59 +02:00
marcello33
f3ffacf2d7
dev: fix: most of wsl lint issues
2023-06-15 15:48:26 +02:00
marcello33
3af5e435c7
dev: fix: some wsl lint issues
2023-06-15 12:27:20 +02:00
marcello33
79ff0c17e1
dev: fix: error related lint issues
2023-06-14 17:21:52 +02:00
marcello33
4307e68288
dev: fix: http related and nilnil lint errors
2023-06-14 16:58:04 +02:00
marcello33
dda0d1163f
dev: chg: solve some TODOs
2023-06-13 13:11:25 +02:00
marcello33
a043ec6d62
dev: add: merge upstream
2023-06-09 14:34:30 +02:00
Péter Szilágyi
c7c84ca16c
all: remove the Rinkeby testnet ( #27406 )
2023-06-02 14:03:21 +03:00
Delweng
6c732766c8
core,console: replace noarg fmt.Errorf with errors.New ( #27332 )
...
* core: replace noarg fmt.Errorf with errors.New
Signed-off-by: jsvisa <delweng@gmail.com>
* console: replace noarg fmt.Errorf with errors.New
Signed-off-by: jsvisa <delweng@gmail.com>
* core: go autoimport
Signed-off-by: jsvisa <delweng@gmail.com>
* core: dry
Signed-off-by: jsvisa <delweng@gmail.com>
---------
Signed-off-by: jsvisa <delweng@gmail.com>
2023-05-25 08:24:09 -04:00
Péter Szilágyi
85a4b82b33
all: tie timestamp based forks to the passage of London ( #27279 )
2023-05-19 11:27:19 +03:00
rjl493456442
a14301823e
all: new empty trie with types.EmptyRootHash instead of null ( #27230 )
2023-05-11 10:19:42 +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
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
Martin Holst Swende
6d2d126100
core: fix accessor mismatch for genesis state ( #26747 )
2023-02-21 12:18:33 +02:00
rjl493456442
08bf8a60c3
core: check genesis state presence by disk read ( #26703 )
2023-02-16 12:09:41 +02: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
Péter Szilágyi
095e365fac
all: remove support for Ropsten ( #26644 )
2023-02-09 10:03:00 +02:00
rjl493456442
9842301376
all: remove database commit callback, rework noderesolver ( #26637 )
...
This change ports some changes from the main PBSS PR:
- get rid of callback function in `trie.Database.Commit` which is not required anymore
- rework the `nodeResolver` in `trie.Iterator` to make it compatible with multiple state scheme
- some other shallow changes in tests and typo-fixes
2023-02-08 06:14:34 -05:00
Marius van der Wijden
2a2b0419fb
all: implement withdrawals (EIP-4895) ( #26484 )
...
This change implements withdrawals as specified in EIP-4895.
Co-authored-by: lightclient@protonmail.com <lightclient@protonmail.com>
Co-authored-by: marioevz <marioevz@gmail.com>
Co-authored-by: Martin Holst Swende <martin@swende.se>
Co-authored-by: Felix Lange <fjl@twurst.com>
2023-01-25 15:32:25 +01:00