miner: fix txs.Shift

This commit is contained in:
Gary Rong 2025-07-15 09:45:35 +08:00
parent c7bf31a968
commit 6108ff6be9

View file

@ -432,7 +432,7 @@ func (miner *Miner) commitTransactions(env *environment, plainTxs, blobTxs *tran
if sidecar.Version == types.BlobSidecarVersion0 { if sidecar.Version == types.BlobSidecarVersion0 {
log.Info("Including blob tx with v0 sidecar, recomputing proofs", "hash", ltx.Hash) log.Info("Including blob tx with v0 sidecar, recomputing proofs", "hash", ltx.Hash)
if err := sidecar.ToV1(); err != nil { if err := sidecar.ToV1(); err != nil {
txs.Shift() txs.Pop()
log.Info("Failed to recompute cell proofs", "hash", ltx.Hash, "err", err) log.Info("Failed to recompute cell proofs", "hash", ltx.Hash, "err", err)
continue continue
} }