Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

all: implement withdrawals (EIP-4895) #26484

Merged
merged 43 commits into from
Jan 25, 2023
Merged
Changes from 1 commit
Commits
Show all changes
43 commits
Select commit Hold shift + click to select a range
be4ad19
core/types: add withdrawal type
lightclient Nov 5, 2022
72c91a4
core/beacon: add withdrawals and make types version agnostic
lightclient Nov 5, 2022
1779e45
eth/catalyst,les/catalyst: add withdrawals and make types version agn…
lightclient Nov 5, 2022
79ed6d4
miner: add withdrawals and update catalyst types
lightclient Nov 5, 2022
ed15060
consensus: process withdrawals
lightclient Nov 5, 2022
43ff685
core/state_processor: finalize with withdrawals
lightclient Nov 5, 2022
5e37321
core/chain_makers: add withdrawal support
lightclient Nov 5, 2022
cf34465
core/block_validator: verify withdrawals root
lightclient Nov 5, 2022
e7170c2
core/rawdb: update block readers with new block format
lightclient Nov 5, 2022
18a3ced
eth: add p2p support for withdrawals
lightclient Nov 5, 2022
8c55bd6
cmd/evm: support withdrawals in t8n and b11r
lightclient Nov 5, 2022
a6dd779
eth/downloader: always use WithBody2 when constructing blocks
lightclient Nov 30, 2022
f00089f
eth/fetcher: always use WithBody2 when constructing blocks
lightclient Nov 30, 2022
c66dc48
params: core: enable shanghai based on timestamps
MariusVanDerWijden Sep 27, 2022
7c1651b
core,consensus: use timestamp based is shanghai check
lightclient Nov 6, 2022
218b71a
consensus: fail if running shanghai on clique or ethash
lightclient Nov 6, 2022
5c5cd11
core: set withdrawals hash in genesis, fix tests, add withdrawalRoot
MariusVanDerWijden Nov 8, 2022
2e8233a
all: implement forkid changes for shanghai
MariusVanDerWijden Nov 10, 2022
9c905c2
core/types: make fetchers fetch withdrawals without transactions
MariusVanDerWijden Dec 1, 2022
5daaafe
internal/ethapi: add withdrawals to full block
MariusVanDerWijden Nov 22, 2022
f701ea4
internal/ethapi: add comment
MariusVanDerWijden Dec 7, 2022
91b284e
miner: catalyst: return transaction fees for block
MariusVanDerWijden Oct 16, 2022
47b582d
core/forkid: fix forkid filter
MariusVanDerWijden Dec 13, 2022
a686276
core/forkid: reduce diff by anonymous function
MariusVanDerWijden Dec 15, 2022
91b47e3
core/beacon: correctly marshal block value
MariusVanDerWijden Dec 17, 2022
101041a
core: fix rebasing issues
MariusVanDerWijden Jan 11, 2023
bac9e89
eth/protocols/eth: revert accidental modification
MariusVanDerWijden Jan 13, 2023
300f5f2
core, eth: use gwei for withdrawals
MariusVanDerWijden Jan 13, 2023
f959d38
eth/catalyst: use gwei in test instead of hard coded value
lightclient Jan 13, 2023
cf0ed02
core: fix nil panic
MariusVanDerWijden Jan 18, 2023
8c74d60
all: fix review comments, add beacon.Faker, fix tests
MariusVanDerWijden Jan 19, 2023
3263936
consensus/beacon: add faker
MariusVanDerWijden Jan 19, 2023
1931e38
eth/catalyst: go generate, fix nitpicks
MariusVanDerWijden Jan 19, 2023
493741d
Update consensus/beacon/consensus.go
holiman Jan 25, 2023
dd3c41a
Apply suggestions from code review
holiman Jan 25, 2023
7b073d1
Update internal/ethapi/api.go
holiman Jan 25, 2023
3481ebc
Update core/types/block.go
holiman Jan 25, 2023
b43da37
all: rebase on uint64 timestamps
MariusVanDerWijden Jan 25, 2023
f665111
consensus/beacon: add check for Shanghai activation in FinalizeAndAss…
fjl Jan 25, 2023
31a979c
core: remove Shanghai fork check in GenerateChain
fjl Jan 25, 2023
8bdbf39
consensus/beacon: remove Shanghai fork check in Finalize
fjl Jan 25, 2023
8783b19
core: simplify withdrawals existence check in StateProcessor
fjl Jan 25, 2023
428b0e6
consensus/beacon: ensure correct empty withdrawals root in Shanghai b…
fjl Jan 25, 2023
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
internal/ethapi: add comment
  • Loading branch information
MariusVanDerWijden committed Jan 25, 2023
commit f701ea43a142c1df65a5e4e90f9da3f20f81ccbf
1 change: 1 addition & 0 deletions internal/ethapi/api.go
Original file line number Diff line number Diff line change
Expand Up @@ -1247,6 +1247,7 @@ func RPCMarshalBlock(block *types.Block, inclTx bool, fullTx bool, config *param
}
fields["transactions"] = transactions
// inclTx also expands withdrawals
// TODO @MariusVanDerWijden: add a second flag similar to inclTx to enable withdrawals
fields["withdrawals"] = block.Withdrawals()
}
uncles := block.Uncles()
Expand Down