use super::*; #[derive(Debug, Parser)] pub(crate) struct Subsidy { #[arg(help = "List sats in subsidy at <HEIGHT>.")] height: Height, } #[derive(Debug, PartialEq, Serialize, Deserialize)] pub struct Output { pub first: u64, pub subsidy: u64, pub name: String, } impl Subsidy { pub(crate) fn run(self) -> SubcommandResult { let first = self.height.starting_sat(); let subsidy = self.height.subsidy(); if subsidy == 0 { bail!("block {} has no subsidy", self.height); } Ok(Box::new(Output { first: first.0, subsidy, name: first.name(), })) } }
Inscription number 44,982,969
Genesis block 819,059
File type text
File size 609 b
Creation date Nov 30,2023 1:34 am