File tree Expand file tree Collapse file tree 17 files changed +214
-20
lines changed Expand file tree Collapse file tree 17 files changed +214
-20
lines changed Original file line number Diff line number Diff line change @@ -449,6 +449,19 @@ def check_transaction(
449
449
------
450
450
InvalidBlock :
451
451
If the transaction is not includable.
452
+ GasUsedExceedsLimitError :
453
+ If the gas used by the transaction exceeds the block's gas limit.
454
+ NonceMismatchError :
455
+ If the nonce of the transaction is not valid for the sender.
456
+ InsufficientBalanceError :
457
+ If the sender does not have enough balance to pay for the transaction
458
+ and gas fees.
459
+ InvalidSenderError :
460
+ If the transaction is from an address that does not exist anymore.
461
+ InsufficientMaxFeePerGasError :
462
+ If the maximum fee per gas is less than the base fee per gas.
463
+ PriorityFeeGreaterThanMaxFeeError :
464
+ If the priority fee per gas is greater than the maximum fee per gas.
452
465
"""
453
466
gas_available = block_env .block_gas_limit - block_output .block_gas_used
454
467
if tx .gas > gas_available :
Original file line number Diff line number Diff line change @@ -366,8 +366,15 @@ def check_transaction(
366
366
367
367
Raises
368
368
------
369
- InvalidBlock :
370
- If the transaction is not includable.
369
+ GasUsedExceedsLimitError :
370
+ If the gas used by the transaction exceeds the block's gas limit.
371
+ NonceMismatchError :
372
+ If the nonce of the transaction is not equal to the sender's nonce.
373
+ InsufficientBalanceError :
374
+ If the sender's balance is not enough to pay for the transaction
375
+ and gas fees.
376
+ InvalidSenderError :
377
+ If the transaction is from an address that does not exist anymore.
371
378
"""
372
379
gas_available = block_env .block_gas_limit - block_output .block_gas_used
373
380
if tx .gas > gas_available :
Original file line number Diff line number Diff line change @@ -361,8 +361,14 @@ def check_transaction(
361
361
362
362
Raises
363
363
------
364
- InvalidBlock :
365
- If the transaction is not includable.
364
+ GasUsedExceedsLimitError :
365
+ If the gas used by the transaction exceeds the block's gas limit.
366
+ NonceMismatchError :
367
+ If the nonce of the transaction is not equal to the sender's nonce.
368
+ InsufficientBalanceError :
369
+ If the sender's balance is not enough to pay for the transaction
370
+ InvalidSenderError :
371
+ If the transaction is from an address that does not exist anymore.
366
372
"""
367
373
gas_available = block_env .block_gas_limit - block_output .block_gas_used
368
374
if tx .gas > gas_available :
Original file line number Diff line number Diff line change @@ -389,6 +389,30 @@ def check_transaction(
389
389
------
390
390
InvalidBlock :
391
391
If the transaction is not includable.
392
+ GasUsedExceedsLimitError :
393
+ If the gas used by the transaction exceeds the block's gas limit.
394
+ BlobGasLimitExceededError :
395
+ If the blob gas used by the transaction exceeds the block's blob gas
396
+ limit.
397
+ PriorityFeeGreaterThanMaxFeeError :
398
+ If the priority fee is greater than the maximum fee per gas.
399
+ InsufficientMaxFeePerBlobGasError :
400
+ If the maximum fee per blob gas is insufficient for the transaction.
401
+ InsufficientMaxFeePerGasError :
402
+ If the maximum fee per gas is insufficient for the transaction.
403
+ InvalidBlobVersionedHashError :
404
+ If the transaction contains a blob versioned hash with an invalid
405
+ version.
406
+ NoBlobDataError :
407
+ If the transaction is a type 3 but has no blobs.
408
+ TransactionTypeContractCreationError:
409
+ If the transaction type is not allowed to create contracts.
410
+ NonceMismatchError :
411
+ If the nonce of the transaction is not equal to the sender's nonce.
412
+ InsufficientBalanceError :
413
+ If the sender's balance is not enough to pay for the transaction
414
+ InvalidSenderError :
415
+ If the transaction is from an address that does not exist anymore.
392
416
"""
393
417
gas_available = block_env .block_gas_limit - block_output .block_gas_used
394
418
blob_gas_available = MAX_BLOB_GAS_PER_BLOCK - block_output .blob_gas_used
Original file line number Diff line number Diff line change @@ -361,8 +361,15 @@ def check_transaction(
361
361
362
362
Raises
363
363
------
364
- InvalidBlock :
365
- If the transaction is not includable.
364
+ GasUsedExceedsLimitError :
365
+ If the gas used by the transaction exceeds the block's gas limit.
366
+ NonceMismatchError :
367
+ If the nonce of the transaction does not match the sender's nonce.
368
+ InsufficientBalanceError :
369
+ If the sender's balance is insufficient to cover the transaction
370
+ value and gas fee.
371
+ InvalidSenderError :
372
+ If the transaction is from an address that does not exist anymore.
366
373
"""
367
374
gas_available = block_env .block_gas_limit - block_output .block_gas_used
368
375
if tx .gas > gas_available :
Original file line number Diff line number Diff line change @@ -373,8 +373,15 @@ def check_transaction(
373
373
374
374
Raises
375
375
------
376
- InvalidBlock :
377
- If the transaction is not includable.
376
+ GasUsedExceedsLimitError :
377
+ If the gas used by the transaction exceeds the block's gas limit.
378
+ NonceMismatchError :
379
+ If the nonce of the transaction does not match the sender's nonce.
380
+ InsufficientBalanceError :
381
+ If the sender's balance is insufficient to cover the transaction
382
+ value and gas fee.
383
+ InvalidSenderError :
384
+ If the transaction is from an address that does not exist anymore.
378
385
"""
379
386
gas_available = block_env .block_gas_limit - block_output .block_gas_used
380
387
if tx .gas > gas_available :
Original file line number Diff line number Diff line change @@ -356,8 +356,15 @@ def check_transaction(
356
356
357
357
Raises
358
358
------
359
- InvalidBlock :
360
- If the transaction is not includable.
359
+ GasUsedExceedsLimitError :
360
+ If the gas used by the transaction exceeds the block's gas limit.
361
+ NonceMismatchError :
362
+ If the nonce of the transaction does not match the sender's nonce.
363
+ InsufficientBalanceError :
364
+ If the sender's balance is insufficient to cover the transaction
365
+ value and gas fee.
366
+ InvalidSenderError :
367
+ If the transaction is from an address that does not exist anymore.
361
368
"""
362
369
gas_available = block_env .block_gas_limit - block_output .block_gas_used
363
370
if tx .gas > gas_available :
Original file line number Diff line number Diff line change @@ -449,6 +449,22 @@ def check_transaction(
449
449
------
450
450
InvalidBlock :
451
451
If the transaction is not includable.
452
+ GasUsedExceedsLimitError :
453
+ If the gas used by the transaction exceeds the gas limit of the block.
454
+ NonceMismatchError :
455
+ If the nonce of the transaction does not match the expected nonce
456
+ for the sender.
457
+ InsufficientBalanceError :
458
+ If the sender does not have enough balance to pay for the gas fee
459
+ and the value of the transaction.
460
+ InvalidSenderError :
461
+ If the transaction is from an address that does not exist anymore.
462
+ PriorityFeeGreaterThanMaxFeeError:
463
+ If the priority fee per gas is greater than the maximum fee per gas
464
+ in a 1559 transaction.
465
+ InsufficientMaxFeePerGasError :
466
+ If the maximum fee per gas is less than the base fee per gas in a
467
+ 1559 transaction.
452
468
"""
453
469
gas_available = block_env .block_gas_limit - block_output .block_gas_used
454
470
if tx .gas > gas_available :
Original file line number Diff line number Diff line change @@ -356,8 +356,15 @@ def check_transaction(
356
356
357
357
Raises
358
358
------
359
- InvalidBlock :
360
- If the transaction is not includable.
359
+ GasUsedExceedsLimitError :
360
+ If the gas used by the transaction exceeds the block's gas limit.
361
+ NonceMismatchError :
362
+ If the nonce of the transaction does not match the sender's nonce.
363
+ InsufficientBalanceError :
364
+ If the sender's balance is insufficient to cover the transaction
365
+ value and gas fee.
366
+ InvalidSenderError :
367
+ If the transaction is from an address that does not exist anymore.
361
368
"""
362
369
gas_available = block_env .block_gas_limit - block_output .block_gas_used
363
370
if tx .gas > gas_available :
Original file line number Diff line number Diff line change @@ -361,8 +361,15 @@ def check_transaction(
361
361
362
362
Raises
363
363
------
364
- InvalidBlock :
365
- If the transaction is not includable.
364
+ GasUsedExceedsLimitError :
365
+ If the gas used by the transaction exceeds the block's gas limit.
366
+ NonceMismatchError :
367
+ If the nonce of the transaction does not match the sender's nonce.
368
+ InsufficientBalanceError :
369
+ If the sender's balance is insufficient to cover the transaction
370
+ value and gas fee.
371
+ InvalidSenderError :
372
+ If the transaction is from an address that does not exist anymore.
366
373
"""
367
374
gas_available = block_env .block_gas_limit - block_output .block_gas_used
368
375
if tx .gas > gas_available :
You can’t perform that action at this time.
0 commit comments