mirror of
https://github.com/d0zingcat/ore.git
synced 2026-05-14 07:26:51 +00:00
add post balance to MineEvent log
This commit is contained in:
@@ -8,6 +8,7 @@ pub struct MineEvent {
|
||||
pub difficulty: u64,
|
||||
pub reward: u64,
|
||||
pub timing: i64,
|
||||
pub balance: u64,
|
||||
}
|
||||
|
||||
impl_to_bytes!(MineEvent);
|
||||
|
||||
@@ -198,6 +198,7 @@ pub fn process_mine<'a, 'info>(accounts: &'a [AccountInfo<'info>], data: &[u8])
|
||||
difficulty: difficulty as u64,
|
||||
reward: reward_actual,
|
||||
timing: t.saturating_sub(t_liveness),
|
||||
balance: proof.balance,
|
||||
}
|
||||
.to_bytes(),
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user