From ccc6293676ef7f1d0db03084cf358c09b7e7b7a5 Mon Sep 17 00:00:00 2001 From: Hardhat Chad Date: Sun, 25 Aug 2024 12:44:19 +0000 Subject: [PATCH] todo --- program/src/mine.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/program/src/mine.rs b/program/src/mine.rs index 59c3caa..d92f5c1 100644 --- a/program/src/mine.rs +++ b/program/src/mine.rs @@ -116,6 +116,8 @@ pub fn process_mine(accounts: &[AccountInfo<'_>], data: &[u8]) -> ProgramResult // Parse optional accounts, two at a time. let (boost_accounts, optional_accounts) = optional_accounts.split_at(2); if let [boost_info, stake_info] = boost_accounts { + // TODO Load accounts + // Only apply boost if last stake was greater than one minute ago. let boost_data = boost_info.data.borrow(); let boost = Boost::try_from_bytes(&boost_data)?;