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