mirror of
https://github.com/d0zingcat/ore.git
synced 2026-05-14 07:26:51 +00:00
comments
This commit is contained in:
@@ -14,7 +14,6 @@ use solana_program::{
|
||||
program_error::ProgramError, pubkey::Pubkey,
|
||||
};
|
||||
|
||||
// TODO Alternative to bincode?
|
||||
// TODO Is downgrade necessary?
|
||||
|
||||
declare_id!("mineRHF5r6S7HyD9SppBfVMXMavDkJsxwGesEvxZr2A");
|
||||
|
||||
@@ -24,8 +24,6 @@ use crate::{
|
||||
COMPUTE_BUDGET_PROGRAM_ID, MIN_DIFFICULTY, ONE_MINUTE, TWO_YEARS,
|
||||
};
|
||||
|
||||
// TODO Look into tx introspection to require 1 hash per tx
|
||||
|
||||
/// Mine is the primary workhorse instruction of the Ore program. Its responsibilities include:
|
||||
/// 1. Calculate the hash from the provided nonce.
|
||||
/// 2. Payout rewards based on difficulty, staking multiplier, and liveness penalty.
|
||||
|
||||
@@ -15,10 +15,11 @@ pub struct Bus {
|
||||
/// The ID of the bus account.
|
||||
pub id: u64,
|
||||
|
||||
/// The quantity of rewards this bus has left to issue in the current epoch epoch.
|
||||
/// The remaining rewards this bus has left to payout in the current epoch epoch.
|
||||
pub rewards: u64,
|
||||
|
||||
/// The rewards that would have been paid out by this bus in the current epoch if the bus had no limit.
|
||||
/// The rewards this bus would have paid out in the current epoch if there no limit.
|
||||
/// Used to calculate the updated reward rate.
|
||||
pub theoretical_rewards: u64,
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user