mirror of
https://github.com/d0zingcat/ore.git
synced 2026-05-13 15:09:57 +00:00
signer
This commit is contained in:
@@ -46,14 +46,13 @@ pub fn initialize(signer: Pubkey) -> Instruction {
|
||||
}
|
||||
}
|
||||
|
||||
pub fn mine(signer: Pubkey, authority: Pubkey, id: u64, nonce: u64) -> Instruction {
|
||||
pub fn mine(signer: Pubkey, id: u64, nonce: u64) -> Instruction {
|
||||
let block_adddress = block_pda(id).0;
|
||||
let miner_address = miner_pda(authority).0;
|
||||
let miner_address = miner_pda(signer).0;
|
||||
Instruction {
|
||||
program_id: crate::ID,
|
||||
accounts: vec![
|
||||
AccountMeta::new(signer, true),
|
||||
AccountMeta::new(authority, false),
|
||||
AccountMeta::new(block_adddress, false),
|
||||
AccountMeta::new(miner_address, false),
|
||||
],
|
||||
|
||||
Reference in New Issue
Block a user