This commit is contained in:
Hardhat Chad
2024-04-30 20:48:58 +00:00
parent 38deb27995
commit 963c9f7909
3 changed files with 3 additions and 5 deletions

View File

@@ -14,7 +14,6 @@ use solana_program::{
program_error::ProgramError, pubkey::Pubkey,
};
// TODO Alternative to bincode?
// TODO Is downgrade necessary?
declare_id!("mineRHF5r6S7HyD9SppBfVMXMavDkJsxwGesEvxZr2A");

View File

@@ -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.

View File

@@ -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,
}