mirror of
https://github.com/hl-archive-node/nanoreth.git
synced 2025-12-06 10:59:55 +00:00
chore: use u64 for blobcount (#14250)
This commit is contained in:
@ -161,9 +161,9 @@ pub enum Eip4844PoolTransactionError {
|
||||
#[error("too many blobs in transaction: have {have}, permitted {permitted}")]
|
||||
TooManyEip4844Blobs {
|
||||
/// Number of blobs the transaction has
|
||||
have: usize,
|
||||
have: u64,
|
||||
/// Number of maximum blobs the transaction can have
|
||||
permitted: usize,
|
||||
permitted: u64,
|
||||
},
|
||||
/// Thrown if validating the blob sidecar for the transaction failed.
|
||||
#[error(transparent)]
|
||||
|
||||
@ -328,7 +328,8 @@ where
|
||||
)
|
||||
}
|
||||
|
||||
let blob_count = transaction.blob_versioned_hashes().map(|b| b.len()).unwrap_or(0);
|
||||
let blob_count =
|
||||
transaction.blob_versioned_hashes().map(|b| b.len() as u64).unwrap_or(0);
|
||||
if blob_count == 0 {
|
||||
// no blobs
|
||||
return TransactionValidationOutcome::Invalid(
|
||||
@ -339,7 +340,7 @@ where
|
||||
)
|
||||
}
|
||||
|
||||
let max_blob_count = self.fork_tracker.max_blob_count() as usize;
|
||||
let max_blob_count = self.fork_tracker.max_blob_count();
|
||||
if blob_count > max_blob_count {
|
||||
return TransactionValidationOutcome::Invalid(
|
||||
transaction,
|
||||
|
||||
Reference in New Issue
Block a user