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

Add functions to collect executed transactions fee in details #35363

Closed

Conversation

tao-stones
Copy link
Contributor

Problem

Working bank should collect executed transactions's fee in detail, separating transaction_fee (half burnt) and prio fee (100% rewarded).

Summary of Changes

  • Add CollectorFeeDetails to bank, which is NOT (de)serialized
  • Add dead_code filter_program_errors_and_collect_fee_details() implements collecting fee_details. This function is not called yet, next PR will invoke it behind a feature gate.

Fixes #

@@ -1827,6 +1853,8 @@ impl Bank {
))),
epoch_reward_status: fields.epoch_reward_status,
transaction_processor: TransactionBatchProcessor::default(),
// collector_fee_details is not serialized to snapshot
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Believe it is OK to not serialize collector_fee_details, but not yet 100% sure.

@willhickey
Copy link
Contributor

This repository is no longer in use. Please re-open this pull request in the agave repo: https://github.com/anza-xyz/agave

@willhickey willhickey closed this Mar 3, 2024
@tao-stones
Copy link
Contributor Author

re-open as anza-xyz#178

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