remove unneeded arg

This commit is contained in:
Hardhat Chad
2024-07-26 21:33:11 +00:00
parent cac4f4b1b1
commit c8091606a0
10 changed files with 19 additions and 51 deletions

View File

@@ -18,7 +18,6 @@ use solana_program::{
entrypoint::ProgramResult,
log::sol_log,
program_error::ProgramError,
pubkey::Pubkey,
sanitize::SanitizeError,
serialize_utils::{read_pubkey, read_u16, read_u8},
slot_hashes::SlotHash,
@@ -40,11 +39,7 @@ use crate::utils::AccountDeserialize;
/// - Can only succeed if the provided hash satisfies the minimum difficulty requirement.
/// - The provided proof account must be associated with the signer.
/// - The provided bus, config, noise, stake, and slot hash sysvar must be valid.
pub fn process_mine<'a, 'info>(
_program_id: &Pubkey,
accounts: &'a [AccountInfo<'info>],
data: &[u8],
) -> ProgramResult {
pub fn process_mine<'a, 'info>(accounts: &'a [AccountInfo<'info>], data: &[u8]) -> ProgramResult {
// Parse args
let args = MineArgs::try_from_bytes(data)?;