Skip to content

Commit 7318404

Browse files
souradeep-dasSamWilsn
authored andcommitted
update docs
1 parent dd5990d commit 7318404

File tree

17 files changed

+214
-20
lines changed

17 files changed

+214
-20
lines changed

src/ethereum/arrow_glacier/fork.py

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -449,6 +449,19 @@ def check_transaction(
449449
------
450450
InvalidBlock :
451451
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.
452465
"""
453466
gas_available = block_env.block_gas_limit - block_output.block_gas_used
454467
if tx.gas > gas_available:

src/ethereum/berlin/fork.py

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -366,8 +366,15 @@ def check_transaction(
366366
367367
Raises
368368
------
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.
371378
"""
372379
gas_available = block_env.block_gas_limit - block_output.block_gas_used
373380
if tx.gas > gas_available:

src/ethereum/byzantium/fork.py

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -361,8 +361,14 @@ def check_transaction(
361361
362362
Raises
363363
------
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.
366372
"""
367373
gas_available = block_env.block_gas_limit - block_output.block_gas_used
368374
if tx.gas > gas_available:

src/ethereum/cancun/fork.py

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -389,6 +389,30 @@ def check_transaction(
389389
------
390390
InvalidBlock :
391391
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.
392416
"""
393417
gas_available = block_env.block_gas_limit - block_output.block_gas_used
394418
blob_gas_available = MAX_BLOB_GAS_PER_BLOCK - block_output.blob_gas_used

src/ethereum/constantinople/fork.py

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -361,8 +361,15 @@ def check_transaction(
361361
362362
Raises
363363
------
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.
366373
"""
367374
gas_available = block_env.block_gas_limit - block_output.block_gas_used
368375
if tx.gas > gas_available:

src/ethereum/dao_fork/fork.py

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -373,8 +373,15 @@ def check_transaction(
373373
374374
Raises
375375
------
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.
378385
"""
379386
gas_available = block_env.block_gas_limit - block_output.block_gas_used
380387
if tx.gas > gas_available:

src/ethereum/frontier/fork.py

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -356,8 +356,15 @@ def check_transaction(
356356
357357
Raises
358358
------
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.
361368
"""
362369
gas_available = block_env.block_gas_limit - block_output.block_gas_used
363370
if tx.gas > gas_available:

src/ethereum/gray_glacier/fork.py

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -449,6 +449,22 @@ def check_transaction(
449449
------
450450
InvalidBlock :
451451
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.
452468
"""
453469
gas_available = block_env.block_gas_limit - block_output.block_gas_used
454470
if tx.gas > gas_available:

src/ethereum/homestead/fork.py

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -356,8 +356,15 @@ def check_transaction(
356356
357357
Raises
358358
------
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.
361368
"""
362369
gas_available = block_env.block_gas_limit - block_output.block_gas_used
363370
if tx.gas > gas_available:

src/ethereum/istanbul/fork.py

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -361,8 +361,15 @@ def check_transaction(
361361
362362
Raises
363363
------
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.
366373
"""
367374
gas_available = block_env.block_gas_limit - block_output.block_gas_used
368375
if tx.gas > gas_available:

0 commit comments

Comments
 (0)