From 4e9efe6fcafef6c0246069a4696a92fb60080c6c Mon Sep 17 00:00:00 2001 From: Hardhat Chad <155858888+HardhatChad@users.noreply.github.com> Date: Fri, 8 Mar 2024 09:11:00 -0600 Subject: [PATCH] Update update_admin.rs --- src/processor/update_admin.rs | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/src/processor/update_admin.rs b/src/processor/update_admin.rs index 7815e98..4e0c406 100644 --- a/src/processor/update_admin.rs +++ b/src/processor/update_admin.rs @@ -11,6 +11,20 @@ use crate::{instruction::UpdateAdminArgs, loaders::*, state::Treasury, utils::Ac /// Safety requirements: /// - Can only succeed if the signer is the current program admin. /// - Can only succeed if the provided treasury is valid. +/// +/// Discussion: +/// - The admin authority only has one lever of power: the ability to adjust the global +/// mining difficulty. If the difficulty is too easy, miners will find hashes very quickly +/// and the bottleneck for throughput shifts from local compute to Solana bandwidth. In essence, +/// if the Ore token has value and difficulty is low, mining becomes an incentivized stress +/// test for the Solana network. +/// - At the same time, if difficulty is too hard, miners will have to wait very long periods +/// of time between finding valid hashes. This will bias rewards to well-resourced miners +/// with large compute operations. Keeping a low difficulty ensures casual miners can +/// consistently earn rewards and undercuts some of the advantage of larger players. +/// - Ultimately admin authority should be delegated to a governance mechanism – either +/// democratic or futarchic – to ensure difficulty is kept at a value that represents the +/// interests of ecosystem paricipants. pub fn process_update_admin<'a, 'info>( _program_id: &Pubkey, accounts: &'a [AccountInfo<'info>],