mirror of
https://github.com/d0zingcat/ore.git
synced 2026-05-14 07:26:51 +00:00
return data
This commit is contained in:
@@ -8,8 +8,8 @@ use solana_program::{
|
||||
};
|
||||
|
||||
use crate::{
|
||||
impl_instruction_from_bytes, impl_to_bytes, state::Hash, BUS, BUS_ADDRESSES, MINT,
|
||||
MINT_ADDRESS, PROOF, TREASURY, TREASURY_ADDRESS,
|
||||
impl_instruction_from_bytes, impl_to_bytes, state::Hash, BUS, MINT, MINT_ADDRESS, PROOF,
|
||||
TREASURY, TREASURY_ADDRESS,
|
||||
};
|
||||
|
||||
#[repr(u8)]
|
||||
|
||||
@@ -5,6 +5,7 @@ use solana_program::{
|
||||
clock::Clock,
|
||||
entrypoint::ProgramResult,
|
||||
keccak::{hashv, Hash as KeccakHash},
|
||||
program::set_return_data,
|
||||
program_error::ProgramError,
|
||||
program_memory::sol_memcmp,
|
||||
pubkey::Pubkey,
|
||||
@@ -76,7 +77,8 @@ pub fn process_mine<'a, 'info>(
|
||||
proof.total_hashes = proof.total_hashes.saturating_add(1);
|
||||
proof.total_rewards = proof.total_rewards.saturating_add(1);
|
||||
|
||||
// TODO Log?
|
||||
// Set return data
|
||||
set_return_data(treasury.reward_rate.to_le_bytes().as_slice());
|
||||
|
||||
Ok(())
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user