pub(super) async fn add_cost( states: &Arc<Mutex<HashMap<String, BlockState>>>, block: &str, spent: f64, )
Put spent on a block’s state as its cost_usd, which is what the run’s ledger row sums.
spent
cost_usd