Skip to content

Commit 7658cc1

Browse files
author
HaoranYi
committed
update comments
1 parent e15a1a9 commit 7658cc1

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

runtime/src/bank/tests.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7206,7 +7206,7 @@ fn test_bpf_loader_upgradeable_deploy_with_max_len() {
72067206
invocation_message.clone(),
72077207
bank.last_blockhash(),
72087208
);
7209-
// See comments below at line 7230.
7209+
// See comments below for Test buffer invocation.
72107210
assert_eq!(
72117211
bank.process_transaction(&transaction),
72127212
Err(TransactionError::InvalidProgramForExecution),
@@ -7232,7 +7232,7 @@ fn test_bpf_loader_upgradeable_deploy_with_max_len() {
72327232
// short-circuit buffer account to fake it and mark it executable. So it
72337233
// passed program execution check but failed with `Err(InstructionError(0, InvalidAccountData))`.
72347234
// With this PR, we don't do that. The buffer account will NOT be executable. A different error is throw `Err(InvalidProgramForExecution)`.
7235-
// This will break consensus unfortunately! Maybe a feature gate is required for this PR?
7235+
// This will NOT break consensus fortunately! Changing to `Err(InvalidProgramForExecution)` won't affect bank hash!
72367236
assert_eq!(
72377237
bank.process_transaction(&transaction),
72387238
Err(TransactionError::InvalidProgramForExecution),

0 commit comments

Comments
 (0)