mirror of
https://github.com/d0zingcat/ore.git
synced 2026-06-01 07:36:50 +00:00
Merge branch 'master' of https://github.com/regolith-labs/ore
This commit is contained in:
@@ -247,8 +247,13 @@ pub fn crown(signer: Pubkey, current_top_staker: Pubkey) -> Instruction {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/// Builds a mine instruction.
|
/// Builds a mine instruction.
|
||||||
pub fn mine(signer: Pubkey, bus: Pubkey, solution: Solution) -> Instruction {
|
pub fn mine(
|
||||||
let proof = Pubkey::find_program_address(&[PROOF, signer.as_ref()], &crate::id()).0;
|
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 {
|
Instruction {
|
||||||
program_id: crate::id(),
|
program_id: crate::id(),
|
||||||
accounts: vec![
|
accounts: vec![
|
||||||
|
|||||||
Reference in New Issue
Block a user