Skip to content

Commit e0d2ab3

Browse files
author
HaoranYi
committed
update comments
1 parent 1d10796 commit e0d2ab3

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
@@ -7205,7 +7205,7 @@ fn test_bpf_loader_upgradeable_deploy_with_max_len() {
72057205
invocation_message.clone(),
72067206
bank.last_blockhash(),
72077207
);
7208-
// See comments below at line 7230.
7208+
// See comments below for Test buffer invocation.
72097209
assert_eq!(
72107210
bank.process_transaction(&transaction),
72117211
Err(TransactionError::InvalidProgramForExecution),
@@ -7231,7 +7231,7 @@ fn test_bpf_loader_upgradeable_deploy_with_max_len() {
72317231
// short-circuit buffer account to fake it and mark it executable. So it
72327232
// passed program execution check but failed with `Err(InstructionError(0, InvalidAccountData))`.
72337233
// With this PR, we don't do that. The buffer account will NOT be executable. A different error is throw `Err(InvalidProgramForExecution)`.
7234-
// This will break consensus unfortunately! Maybe a feature gate is required for this PR?
7234+
// This will NOT break consensus fortunately! Changing to `Err(InvalidProgramForExecution)` won't affect bank hash!
72357235
assert_eq!(
72367236
bank.process_transaction(&transaction),
72377237
Err(TransactionError::InvalidProgramForExecution),

0 commit comments

Comments
 (0)