This commit is contained in:
Hardhat Chad
2025-10-03 09:39:19 -07:00
parent 3c4d7c6258
commit a2bd407902
2 changed files with 0 additions and 20 deletions

View File

@@ -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.

View File

@@ -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;
}