mirror of
https://github.com/d0zingcat/ore.git
synced 2026-05-27 23:26:46 +00:00
miner migration
This commit is contained in:
@@ -24,6 +24,12 @@ pub enum OreAccount {
|
||||
Treasury = 104,
|
||||
}
|
||||
|
||||
#[repr(u8)]
|
||||
#[derive(Clone, Copy, Debug, Eq, PartialEq, IntoPrimitive, TryFromPrimitive)]
|
||||
pub enum OreAccountOLD {
|
||||
MinerOLD = 103,
|
||||
}
|
||||
|
||||
pub fn block_pda(id: u64) -> (Pubkey, u8) {
|
||||
Pubkey::find_program_address(&[BLOCK, &id.to_le_bytes()], &crate::ID)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user