Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Removes AccountsDataMeter from InvokeContext #34698

Conversation

brooksprumo
Copy link
Contributor

@brooksprumo brooksprumo commented Jan 8, 2024

Problem

InvokeContext contains an AccountsDataMeter, but it is not used anymore.

Summary of Changes

Removes AccountsDataMeter from InvokeContext

@brooksprumo brooksprumo added the work in progress This isn't quite right yet label Jan 8, 2024
@brooksprumo brooksprumo self-assigned this Jan 8, 2024
Copy link

codecov bot commented Jan 8, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (c5d51ac) 81.8% compared to head (27094cd) 81.8%.

Additional details and impacted files
@@           Coverage Diff           @@
##           master   #34698   +/-   ##
=======================================
  Coverage    81.8%    81.8%           
=======================================
  Files         824      824           
  Lines      222725   222730    +5     
=======================================
+ Hits       182317   182350   +33     
+ Misses      40408    40380   -28     

@brooksprumo brooksprumo force-pushed the accounts-data-size/accounts-data-meter/invoke-context branch from 02e041c to 27094cd Compare January 10, 2024 13:14
@brooksprumo brooksprumo removed the work in progress This isn't quite right yet label Jan 10, 2024
@@ -175,7 +175,7 @@ impl MessageProcessor {
.map_err(|err| TransactionError::InstructionError(instruction_index as u8, err))?;
}
Ok(ProcessedMessageInfo {
accounts_data_len_delta: invoke_context.get_accounts_data_meter().delta(),
accounts_data_len_delta: 0, // unused
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This will be removed in a subsequent PR.

@@ -187,7 +185,7 @@ impl<'a> InvokeContext<'a> {
feature_set: Arc<FeatureSet>,
blockhash: Hash,
lamports_per_signature: u64,
prev_accounts_data_len: u64,
_prev_accounts_data_len: u64,
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This will be removed in a subsequent PR.

@brooksprumo brooksprumo marked this pull request as ready for review January 10, 2024 13:55
@brooksprumo brooksprumo requested a review from Lichtso January 10, 2024 14:18
@Lichtso
Copy link
Contributor

Lichtso commented Jan 10, 2024

What about the AccountsDataMeter definition itself?

@brooksprumo
Copy link
Contributor Author

What about the AccountsDataMeter definition itself?

That's the next PR! #34727

@brooksprumo brooksprumo merged commit dc5af2c into solana-labs:master Jan 10, 2024
35 of 36 checks passed
@brooksprumo brooksprumo deleted the accounts-data-size/accounts-data-meter/invoke-context branch January 10, 2024 17:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants