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

Commit

Permalink
Send back errors
Browse files Browse the repository at this point in the history
  • Loading branch information
somnathb1 committed Sep 18, 2023
1 parent 778be3a commit c71bfc3
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions txpool/fetch.go
Original file line number Diff line number Diff line change
Expand Up @@ -469,9 +469,15 @@ func (f *Fetch) handleStateChanges(ctx context.Context, client StateChangesClien
if err = f.threadSafeParseStateChangeTxn(func(parseContext *types2.TxParseContext) error {
utx := &types2.TxSlot{}
sender := make([]byte, 20)
_, err = parseContext.ParseTransaction(change.Txs[i], 0, utx, sender, false /* hasEnvelope */, false /* wrappedWithBlobs */, nil)
_, err2 := parseContext.ParseTransaction(change.Txs[i], 0, utx, sender, false /* hasEnvelope */, false /* wrappedWithBlobs */, nil)
if err2 != nil {
return err2
}
if utx.Type == types2.BlobTxType {
knownBlobTxn := f.pool.GetKnownBlobTxn(tx, utx.IDHash[:])
knownBlobTxn, err2 := f.pool.GetKnownBlobTxn(tx, utx.IDHash[:])
if err2 != nil {
return err2
}
// Get the blob tx from cache; ignore altogether if it isn't there
if knownBlobTxn != nil {
unwindTxs.Append(knownBlobTxn.Tx, sender, false)
Expand Down

0 comments on commit c71bfc3

Please sign in to comment.