Clarify code comment

This commit is contained in:
Greg Fitzgerald 2018-07-18 22:27:24 -04:00
parent 68ca9b2cb8
commit bcc247f25f
1 changed files with 2 additions and 2 deletions

View File

@ -237,8 +237,8 @@ impl Bank {
Ok(())
}
/// Apply only a transaction's credits. Credits from multiple transactions
/// may safely be applied in parallel.
/// Apply only a transaction's credits.
/// Note: It is safe to apply credits from multiple transactions in parallel.
fn apply_credits(&self, tx: &Transaction, balances: &mut HashMap<PublicKey, i64>) {
match &tx.instruction {
Instruction::NewContract(contract) => {