Skip to content
This repository has been archived by the owner on Sep 23, 2023. It is now read-only.

Commit

Permalink
add todo for replaying blob txs
Browse files Browse the repository at this point in the history
  • Loading branch information
roberto-bayardo committed Feb 10, 2023
1 parent afdb004 commit 02918a3
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions txpool/fetch.go
Original file line number Diff line number Diff line change
Expand Up @@ -467,6 +467,8 @@ func (f *Fetch) handleStateChanges(ctx context.Context, client StateChangesClien
minedTxs.Resize(uint(len(change.Txs)))
for i := range change.Txs {
minedTxs.Txs[i] = &types2.TxSlot{}
// TODO(eip-4844): Blob transactions here will be "unwrapped" variety, so parsing will fail.
// Ultimately we need to persist the wrapped versions somehow if we would like to replay them.
if err = f.threadSafeParseStateChangeTxn(func(parseContext *types2.TxParseContext) error {
_, err := parseContext.ParseTransaction(change.Txs[i], 0, minedTxs.Txs[i], minedTxs.Senders.At(i), false /* hasEnvelope */, nil)
return err
Expand Down

0 comments on commit 02918a3

Please sign in to comment.