block reward

This commit is contained in:
Hardhat Chad
2025-06-09 08:51:54 -07:00
parent 1e1ca896fd
commit 674eefd7a5
2 changed files with 5 additions and 2 deletions

View File

@@ -61,5 +61,8 @@ pub const SLOT_WINDOW: u64 = 4;
/// Amount of hash tokens to mint to market.
pub const HASH_TOKEN_SUPPLY: u64 = 10_000_000;
/// The block reward.
pub const BLOCK_REWARD: u64 = ONE_ORE * 10;
/// The virtual ORE liquidity.
pub const VIRTUAL_ORE_LIQUIDITY: u64 = ONE_ORE * 5;
pub const VIRTUAL_ORE_LIQUIDITY: u64 = BLOCK_REWARD / 2;

View File

@@ -55,7 +55,7 @@ pub fn process_open(accounts: &[AccountInfo<'_>], data: &[u8]) -> ProgramResult
block.best_hash = [0; 32];
block.best_miner = Pubkey::default();
block.id = id;
block.reward = ONE_ORE * 10;
block.reward = BLOCK_REWARD;
block.slot_hash = [0; 32];
block.start_slot = start_slot;