From 7ff981df569fb288c7592fa009104fba9ba06ea4 Mon Sep 17 00:00:00 2001 From: Tao Zhu <tao@solana.com> Date: Tue, 12 Sep 2023 22:54:45 +0000 Subject: [PATCH] update comment --- cost-model/src/transaction_cost.rs | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/cost-model/src/transaction_cost.rs b/cost-model/src/transaction_cost.rs index 477d5edaed2323..73fac4441dee73 100644 --- a/cost-model/src/transaction_cost.rs +++ b/cost-model/src/transaction_cost.rs @@ -5,9 +5,8 @@ use {crate::block_cost_limits, solana_sdk::pubkey::Pubkey}; /// Resources required to process a regular transaction often include /// an array of variables, such as execution cost, loaded bytes, write /// lock and read lock etc. -/// Vote has a simple and pre-determined format, therefore can have -/// a constant cost, skipping transaction inspection as required for -/// non-vote transaction. +/// Vote has a simpler and pre-determined format, it's cost structure +/// can be simpler, calculation quicker. #[derive(Debug)] pub enum TransactionCost { Vote { writable_accounts: Vec<Pubkey> },