mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-08-20 10:52:25 +00:00
eth/catalyst: fixup invocation of BlockToExecutableData
This commit is contained in:
parent
f1a8cc2f28
commit
3bebfce495
1 changed files with 8 additions and 5 deletions
|
|
@ -1521,13 +1521,16 @@ func TestBlockToPayloadWithBlobs(t *testing.T) {
|
||||||
}
|
}
|
||||||
|
|
||||||
txs = append(txs, types.NewTx(&inner))
|
txs = append(txs, types.NewTx(&inner))
|
||||||
|
sidecars := []*types.BlobTxSidecar{
|
||||||
blobs := make([]kzg4844.Blob, 1)
|
{
|
||||||
commitments := make([]kzg4844.Commitment, 1)
|
Blobs: make([]kzg4844.Blob, 1),
|
||||||
proofs := make([]kzg4844.Proof, 1)
|
Commitments: make([]kzg4844.Commitment, 1),
|
||||||
|
Proofs: make([]kzg4844.Proof, 1),
|
||||||
|
},
|
||||||
|
}
|
||||||
|
|
||||||
block := types.NewBlock(&header, txs, nil, nil, trie.NewStackTrie(nil))
|
block := types.NewBlock(&header, txs, nil, nil, trie.NewStackTrie(nil))
|
||||||
envelope := engine.BlockToExecutableData(block, nil, blobs, commitments, proofs)
|
envelope := engine.BlockToExecutableData(block, nil, sidecars)
|
||||||
var want int
|
var want int
|
||||||
for _, tx := range txs {
|
for _, tx := range txs {
|
||||||
want += len(tx.BlobHashes())
|
want += len(tx.BlobHashes())
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue