mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-06-01 12:38:40 +00:00
core/txpool/blobpool: rename ApplySidecar
This commit is contained in:
parent
296c236cec
commit
9c376a4055
1 changed files with 3 additions and 3 deletions
|
|
@ -162,8 +162,8 @@ func (ptx *blobTxForPool) Sidecar() *types.BlobTxSidecar {
|
||||||
return types.NewBlobTxSidecar(ptx.Version, ptx.Blobs, ptx.Commitments, ptx.Proofs)
|
return types.NewBlobTxSidecar(ptx.Version, ptx.Blobs, ptx.Commitments, ptx.Proofs)
|
||||||
}
|
}
|
||||||
|
|
||||||
// WithSidecar copies the sidecar's fields into the flat fields.
|
// ApplySidecar copies the sidecar's fields into the flat fields.
|
||||||
func (ptx *blobTxForPool) WithSidecar(sc *types.BlobTxSidecar) {
|
func (ptx *blobTxForPool) ApplySidecar(sc *types.BlobTxSidecar) {
|
||||||
ptx.Version = sc.Version
|
ptx.Version = sc.Version
|
||||||
ptx.Commitments = sc.Commitments
|
ptx.Commitments = sc.Commitments
|
||||||
ptx.Proofs = sc.Proofs
|
ptx.Proofs = sc.Proofs
|
||||||
|
|
@ -1279,7 +1279,7 @@ func (p *BlobPool) reinject(addr common.Address, txhash common.Hash) error {
|
||||||
log.Error("Failed to convert the legacy sidecar", "err", err)
|
log.Error("Failed to convert the legacy sidecar", "err", err)
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
ptx.WithSidecar(sc)
|
ptx.ApplySidecar(sc)
|
||||||
log.Info("Legacy blob transaction is reorged", "hash", ptx.Tx.Hash())
|
log.Info("Legacy blob transaction is reorged", "hash", ptx.Tx.Hash())
|
||||||
}
|
}
|
||||||
blob, err := rlp.EncodeToBytes(ptx)
|
blob, err := rlp.EncodeToBytes(ptx)
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue