mirror of
https://github.com/d0zingcat/ore.git
synced 2026-05-13 23:16:52 +00:00
num winners
This commit is contained in:
@@ -25,6 +25,9 @@ pub struct ResetEvent {
|
||||
/// The top miner of the round.
|
||||
pub top_miner: Pubkey,
|
||||
|
||||
/// The number of miners on the winning square.
|
||||
pub num_winners: u64,
|
||||
|
||||
/// The total amount of SOL prospected in the round.
|
||||
pub total_prospects: u64,
|
||||
|
||||
|
||||
@@ -55,6 +55,7 @@ pub fn process_reset(accounts: &[AccountInfo<'_>], _data: &[u8]) -> ProgramResul
|
||||
end_slot: board.end_slot,
|
||||
winning_square: winning_square as u64,
|
||||
top_miner: board.top_miner,
|
||||
num_winners: 0,
|
||||
total_prospects: board.total_prospects,
|
||||
total_vaulted: board.total_vaulted,
|
||||
total_winnings: board.total_winnings,
|
||||
@@ -151,6 +152,7 @@ pub fn process_reset(accounts: &[AccountInfo<'_>], _data: &[u8]) -> ProgramResul
|
||||
end_slot: board.end_slot,
|
||||
winning_square: winning_square as u64,
|
||||
top_miner: board.top_miner,
|
||||
num_winners: square.count[winning_square],
|
||||
total_prospects: board.total_prospects,
|
||||
total_vaulted: board.total_vaulted,
|
||||
total_winnings: board.total_winnings,
|
||||
|
||||
Reference in New Issue
Block a user