diff --git a/program/src/deploy.rs b/program/src/deploy.rs index a7b2643..bced0ad 100644 --- a/program/src/deploy.rs +++ b/program/src/deploy.rs @@ -113,12 +113,6 @@ pub fn process_deploy(accounts: &[AccountInfo<'_>], data: &[u8]) -> ProgramResul })? }; - // Check whitelist - if !AUTHORIZED_ACCOUNTS.contains(&miner.authority) { - sol_log(miner.authority.to_string().as_str()); - return Err(trace("Not authorized", OreError::NotAuthorized.into())); - } - // Reset miner if miner.round_id != round.id { // Assert miner has checkpointed prior round. diff --git a/program/src/reset.rs b/program/src/reset.rs index b7939f7..711caf8 100644 --- a/program/src/reset.rs +++ b/program/src/reset.rs @@ -153,20 +153,6 @@ pub fn process_reset(accounts: &[AccountInfo<'_>], _data: &[u8]) -> ProgramResul // Reset the motherlode if it was activated. if round.did_hit_motherlode(r) { - // Log the motherlode event. - program_log( - &[board_info.clone(), ore_program.clone()], - MotherlodeEvent { - disc: 2, - amount: treasury.motherlode, - round_id: round.id, - num_miners: 0, - ts: clock.unix_timestamp, - } - .to_bytes(), - )?; - - // Reset the motherlode. round.motherlode = treasury.motherlode; treasury.motherlode = 0; }