mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-08-19 02:12:23 +00:00
internal/ethapi: remove unused parameters, error return from TransactionArgs.setCancunFeeDefaults
This commit is contained in:
parent
84a80216c6
commit
1804851b9a
1 changed files with 2 additions and 3 deletions
|
|
@ -189,7 +189,7 @@ func (args *TransactionArgs) setFeeDefaults(ctx context.Context, b Backend) erro
|
|||
if args.BlobFeeCap != nil && args.BlobFeeCap.ToInt().Sign() == 0 {
|
||||
return errors.New("maxFeePerBlobGas, if specified, must be non-zero")
|
||||
}
|
||||
if err := args.setCancunFeeDefaults(ctx, head, b); err != nil {
|
||||
if err := args.setCancunFeeDefaults(head); err != nil {
|
||||
return err
|
||||
}
|
||||
// If both gasPrice and at least one of the EIP-1559 fee parameters are specified, error.
|
||||
|
|
@ -243,7 +243,7 @@ func (args *TransactionArgs) setFeeDefaults(ctx context.Context, b Backend) erro
|
|||
}
|
||||
|
||||
// setCancunFeeDefaults fills in reasonable default fee values for unspecified fields.
|
||||
func (args *TransactionArgs) setCancunFeeDefaults(ctx context.Context, head *types.Header, b Backend) error {
|
||||
func (args *TransactionArgs) setCancunFeeDefaults(head *types.Header) {
|
||||
// Set maxFeePerBlobGas if it is missing.
|
||||
if args.BlobHashes != nil && args.BlobFeeCap == nil {
|
||||
var excessBlobGas uint64
|
||||
|
|
@ -258,7 +258,6 @@ func (args *TransactionArgs) setCancunFeeDefaults(ctx context.Context, head *typ
|
|||
val := new(big.Int).Mul(blobBaseFee, big.NewInt(2))
|
||||
args.BlobFeeCap = (*hexutil.Big)(val)
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
// setLondonFeeDefaults fills in reasonable default fee values for unspecified fields.
|
||||
|
|
|
|||
Loading…
Reference in a new issue