This commit is contained in:
Hardhat Chad
2024-07-16 00:41:50 +00:00

View File

@@ -247,8 +247,13 @@ pub fn crown(signer: Pubkey, current_top_staker: Pubkey) -> Instruction {
}
/// Builds a mine instruction.
pub fn mine(signer: Pubkey, bus: Pubkey, solution: Solution) -> Instruction {
let proof = Pubkey::find_program_address(&[PROOF, signer.as_ref()], &crate::id()).0;
pub fn mine(
signer: Pubkey,
proof_authority: Pubkey,
bus: Pubkey,
solution: Solution,
) -> Instruction {
let proof = Pubkey::find_program_address(&[PROOF, proof_authority.as_ref()], &crate::id()).0;
Instruction {
program_id: crate::id(),
accounts: vec![