Skip to content

Commit

Permalink
add blob base fee (kkrt-labs#807)
Browse files Browse the repository at this point in the history
  • Loading branch information
Eikix authored Mar 4, 2024
1 parent fa0a2a9 commit c4936df
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/eth_rpc/api/eth_api.rs
Original file line number Diff line number Diff line change
Expand Up @@ -157,6 +157,10 @@ pub trait EthApi {
#[method(name = "maxPriorityFeePerGas")]
async fn max_priority_fee_per_gas(&self) -> Result<U128>;

/// Introduced in EIP-4844, returns the current blob base fee in wei.
#[method(name = "blobBaseFee")]
async fn blob_base_fee(&self) -> Result<U256>;

/// Returns whether the client is actively mining new blocks.
#[method(name = "mining")]
async fn mining(&self) -> Result<bool>;
Expand Down
4 changes: 4 additions & 0 deletions src/eth_rpc/servers/eth_rpc.rs
Original file line number Diff line number Diff line change
Expand Up @@ -192,6 +192,10 @@ where
Ok(U128::from(*MAX_PRIORITY_FEE_PER_GAS))
}

async fn blob_base_fee(&self) -> Result<U256> {
Err(EthProviderError::MethodNotSupported("eth_blobBaseFee".to_string()).into())
}

async fn mining(&self) -> Result<bool> {
tracing::warn!("Kakarot chain does not use mining");
Ok(false)
Expand Down

0 comments on commit c4936df

Please sign in to comment.