Merge pull request #65 from regolith-labs/relayer-integration

Mine ix builder with proof authority as arg
This commit is contained in:
Hardhat Chad
2024-07-14 16:16:27 -05:00
committed by GitHub

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![