-
Notifications
You must be signed in to change notification settings - Fork 20.9k
all: implement flat deposit requests encoding #30425
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
Changes from all commits
5db0c7b
89a441f
8735cf3
a2abb4b
b3cff4e
57f2ad1
c1c8a2c
54ac02b
c6ba1dc
0fc9841
ca1ed76
e9cf625
c87fd76
e408488
6690bdd
eb5aaa2
ff99699
0be1fe8
11e82ef
f9cc214
ded9d6b
168d3eb
9181bd3
9df0a64
d250deb
0310778
cb08ea9
f27902e
b87d536
2509bde
92dc664
b67f40b
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -449,7 +449,6 @@ func (g *Genesis) toBlockWithRoot(root common.Hash) *types.Block { | |
} | ||
var ( | ||
withdrawals []*types.Withdrawal | ||
requests types.Requests | ||
) | ||
if conf := g.Config; conf != nil { | ||
num := big.NewInt(int64(g.Number)) | ||
|
@@ -473,11 +472,12 @@ func (g *Genesis) toBlockWithRoot(root common.Hash) *types.Block { | |
} | ||
} | ||
if conf.IsPrague(num, g.Timestamp) { | ||
head.RequestsHash = &types.EmptyRequestsHash | ||
requests = make(types.Requests, 0) | ||
emptyRequests := [][]byte{{0}} | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. kinda weird to just have the deposit request prefix just as a bare 0 value here instead of named? |
||
rhash := types.CalcRequestsHash(emptyRequests) | ||
head.RequestsHash = &rhash | ||
} | ||
} | ||
return types.NewBlock(head, &types.Body{Withdrawals: withdrawals, Requests: requests}, nil, trie.NewStackTrie(nil)) | ||
return types.NewBlock(head, &types.Body{Withdrawals: withdrawals}, nil, trie.NewStackTrie(nil)) | ||
} | ||
|
||
// Commit writes the block and state of a genesis specification to the database. | ||
|
Uh oh!
There was an error while loading. Please reload this page.