Skip to content

Commit

Permalink
Remove unused miner bool
Browse files Browse the repository at this point in the history
  • Loading branch information
Jouzo committed Sep 8, 2023
1 parent 3af292c commit 52fe5a7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 7 deletions.
7 changes: 1 addition & 6 deletions lib/ain-evm/src/core.rs
Original file line number Diff line number Diff line change
Expand Up @@ -204,12 +204,7 @@ impl EVMCoreService {
/// Result cannot be used safety unless cs_main lock is taken on C++ side
/// across all usages. Note: To be replaced with a proper lock flow later.
///
pub unsafe fn validate_raw_tx(
&self,
tx: &str,
queue_id: u64,
miner: bool,
) -> Result<ValidateTxInfo> {
pub unsafe fn validate_raw_tx(&self, tx: &str, queue_id: u64) -> Result<ValidateTxInfo> {
debug!("[validate_raw_tx] queue_id {}", queue_id);
debug!("[validate_raw_tx] raw transaction : {:#?}", tx);
let signed_tx = SignedTx::try_from(tx)
Expand Down
2 changes: 1 addition & 1 deletion lib/ain-rs-exports/src/evm.rs
Original file line number Diff line number Diff line change
Expand Up @@ -456,7 +456,7 @@ pub fn evm_unsafe_try_validate_raw_tx_in_q(
}
}
unsafe {
match SERVICES.evm.core.validate_raw_tx(raw_tx, queue_id, true) {
match SERVICES.evm.core.validate_raw_tx(raw_tx, queue_id) {
Ok(ValidateTxInfo {
signed_tx,
prepay_fee,
Expand Down

0 comments on commit 52fe5a7

Please sign in to comment.