mirror of
https://github.com/d0zingcat/ore.git
synced 2026-05-13 15:09:57 +00:00
no log
This commit is contained in:
@@ -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.
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user