mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-07-21 20:26:41 +00:00
internal/ethapi: remove todo
This commit is contained in:
parent
127d1f42bb
commit
4bd95bc495
1 changed files with 0 additions and 24 deletions
|
|
@ -1653,18 +1653,6 @@ func (api *TransactionAPI) SendRawTransaction(ctx context.Context, input hexutil
|
||||||
return common.Hash{}, err
|
return common.Hash{}, err
|
||||||
}
|
}
|
||||||
|
|
||||||
// Convert legacy blob transaction proofs.
|
|
||||||
// TODO: remove in go-ethereum v1.17.x
|
|
||||||
if sc := tx.BlobTxSidecar(); sc != nil {
|
|
||||||
exp := api.currentBlobSidecarVersion()
|
|
||||||
if sc.Version == types.BlobSidecarVersion0 && exp == types.BlobSidecarVersion1 {
|
|
||||||
if err := sc.ToV1(); err != nil {
|
|
||||||
return common.Hash{}, fmt.Errorf("blob sidecar conversion failed: %v", err)
|
|
||||||
}
|
|
||||||
tx = tx.WithBlobTxSidecar(sc)
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
return SubmitTransaction(ctx, api.b, tx)
|
return SubmitTransaction(ctx, api.b, tx)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -1676,18 +1664,6 @@ func (api *TransactionAPI) SendRawTransactionSync(ctx context.Context, input hex
|
||||||
return nil, err
|
return nil, err
|
||||||
}
|
}
|
||||||
|
|
||||||
// Convert legacy blob transaction proofs.
|
|
||||||
// TODO: remove in go-ethereum v1.17.x
|
|
||||||
if sc := tx.BlobTxSidecar(); sc != nil {
|
|
||||||
exp := api.currentBlobSidecarVersion()
|
|
||||||
if sc.Version == types.BlobSidecarVersion0 && exp == types.BlobSidecarVersion1 {
|
|
||||||
if err := sc.ToV1(); err != nil {
|
|
||||||
return nil, fmt.Errorf("blob sidecar conversion failed: %v", err)
|
|
||||||
}
|
|
||||||
tx = tx.WithBlobTxSidecar(sc)
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
ch := make(chan core.ChainEvent, 128)
|
ch := make(chan core.ChainEvent, 128)
|
||||||
sub := api.b.SubscribeChainEvent(ch)
|
sub := api.b.SubscribeChainEvent(ch)
|
||||||
defer sub.Unsubscribe()
|
defer sub.Unsubscribe()
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue