event disc

This commit is contained in:
Hardhat Chad
2025-06-18 08:02:27 -07:00
parent e5f5cd6537
commit fbcbd865b4
12 changed files with 47 additions and 4 deletions

View File

@@ -133,6 +133,7 @@ pub fn process_mine(accounts: &[AccountInfo<'_>], data: &[u8]) -> ProgramResult
// Emit event.
RewardEvent {
disc: OreEvent::Reward as u64,
amount: motherlode_amount,
authority: miner.authority,
block_id: block.id,
@@ -161,6 +162,7 @@ pub fn process_mine(accounts: &[AccountInfo<'_>], data: &[u8]) -> ProgramResult
// Emit event.
RewardEvent {
disc: OreEvent::Reward as u64,
amount: nugget_reward,
authority: miner.authority,
block_id: block.id,