mirror of
https://github.com/d0zingcat/ore.git
synced 2026-05-14 07:26:51 +00:00
Merge pull request #65 from regolith-labs/relayer-integration
Mine ix builder with proof authority as arg
This commit is contained in:
@@ -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![
|
||||
|
||||
Reference in New Issue
Block a user