safe open

This commit is contained in:
Hardhat Chad
2025-07-18 11:38:26 -07:00
parent 1c3b1246d3
commit b35d487b31
2 changed files with 31 additions and 23 deletions

View File

@@ -39,7 +39,7 @@ pub fn process_close(accounts: &[AccountInfo<'_>], _data: &[u8]) -> ProgramResul
miner_rewards_info.as_associated_token_account(&miner_info.key, &mint_info.key)?;
}
// Payout block reward.
// Payout block reward to winning miner.
if block.best_hash_miner != Pubkey::default() {
// Load recipient.
recipient_info.as_associated_token_account(&block.best_hash_miner, &mint_info.key)?;