mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-07-19 19:30:44 +00:00
core/types: qf
This commit is contained in:
parent
79385a4fda
commit
41634e60ab
1 changed files with 5 additions and 3 deletions
|
|
@ -22,6 +22,8 @@ import (
|
||||||
"fmt"
|
"fmt"
|
||||||
"math/big"
|
"math/big"
|
||||||
|
|
||||||
|
"slices"
|
||||||
|
|
||||||
"github.com/ethereum/go-ethereum/common"
|
"github.com/ethereum/go-ethereum/common"
|
||||||
"github.com/ethereum/go-ethereum/crypto/kzg4844"
|
"github.com/ethereum/go-ethereum/crypto/kzg4844"
|
||||||
"github.com/ethereum/go-ethereum/params"
|
"github.com/ethereum/go-ethereum/params"
|
||||||
|
|
@ -181,9 +183,9 @@ func (tx *BlobTx) copy() TxData {
|
||||||
}
|
}
|
||||||
if tx.Sidecar != nil {
|
if tx.Sidecar != nil {
|
||||||
cpy.Sidecar = &BlobTxSidecar{
|
cpy.Sidecar = &BlobTxSidecar{
|
||||||
Blobs: append([]kzg4844.Blob(nil), tx.Sidecar.Blobs...),
|
Blobs: slices.Clone(tx.Sidecar.Blobs),
|
||||||
Commitments: append([]kzg4844.Commitment(nil), tx.Sidecar.Commitments...),
|
Commitments: slices.Clone(tx.Sidecar.Commitments),
|
||||||
Proofs: append([]kzg4844.Proof(nil), tx.Sidecar.Proofs...),
|
Proofs: slices.Clone(tx.Sidecar.Proofs),
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return cpy
|
return cpy
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue