Skip to content
This repository has been archived by the owner on May 11, 2024. It is now read-only.

Commit

Permalink
feat: update comments
Browse files Browse the repository at this point in the history
  • Loading branch information
davidtaikocha committed May 1, 2024
1 parent d2498fc commit cf1550b
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion pkg/txlist_validator/tx_list_validator.go
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,12 @@ func NewTxListValidator(
}

// ValidateTxList checks whether the transactions list in the TaikoL1.proposeBlock transaction's
// input data is valid.
// input data is valid, the rules are:
// - If the transaction list is empty, it's valid.
// - If the transaction list is not empty:
// 1. If the transaction list is using calldata, the compressed bytes of the transaction list must be
// less than or equal to maxBytesPerTxList.
// 2. The transaction list bytes must be able to be RLP decoded into a list of transactions.
func (v *TxListValidator) ValidateTxList(
blockID *big.Int,
txListBytes []byte,
Expand Down

0 comments on commit cf1550b

Please sign in to comment.