mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-08-20 10:52:25 +00:00
core/txpool: clear the sidecar before return
Signed-off-by: jsvisa <delweng@gmail.com>
This commit is contained in:
parent
1a1ad0beae
commit
260f524876
1 changed files with 2 additions and 2 deletions
|
|
@ -1635,7 +1635,7 @@ func (p *BlobPool) Content() (map[common.Address][]*types.Transaction, map[commo
|
|||
for addr, metas := range p.index {
|
||||
for _, meta := range metas {
|
||||
if tx, err := p.get(meta.id); err == nil {
|
||||
pending[addr] = append(pending[addr], tx)
|
||||
pending[addr] = append(pending[addr], tx.WithoutBlobTxSidecar())
|
||||
} else {
|
||||
log.Error("Failed to retrieve blob transaction", "hash", meta.hash, "id", meta.id, "err", err)
|
||||
}
|
||||
|
|
@ -1655,7 +1655,7 @@ func (p *BlobPool) ContentFrom(addr common.Address) ([]*types.Transaction, []*ty
|
|||
if metas, ok := p.index[addr]; ok {
|
||||
for _, meta := range metas {
|
||||
if tx, err := p.get(meta.id); err == nil {
|
||||
pending = append(pending, tx)
|
||||
pending = append(pending, tx.WithoutBlobTxSidecar())
|
||||
} else {
|
||||
log.Error("Failed to retrieve blob transaction", "hash", meta.hash, "id", meta.id, "err", err)
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue