mirror of
https://github.com/d0zingcat/ore.git
synced 2026-05-13 23:16:52 +00:00
Merge pull request #79 from tonton-sol/mine-event-log-add-balance
add post balance to MineEvent log
This commit is contained in:
@@ -6,6 +6,7 @@ pub struct MineEvent {
|
||||
pub difficulty: u64,
|
||||
pub reward: u64,
|
||||
pub timing: i64,
|
||||
pub balance: u64,
|
||||
}
|
||||
|
||||
#[repr(C)]
|
||||
|
||||
@@ -242,6 +242,7 @@ pub fn process_mine(accounts: &[AccountInfo], data: &[u8]) -> ProgramResult {
|
||||
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