-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
chore: add static file helpers on StorageWriter #9740
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
naming nits
first_tx_index = Some(0); | ||
} | ||
|
||
// TODO: I guess this error will never be returned |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
unclear what this todo means
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
removed
td: U256, | ||
) -> ProviderResult<u64> { | ||
debug!(target: "tree::persistence", ?td, ?start_tx_number, "Logging transactions"); | ||
fn log_transactions(&self, block: Arc<SealedBlock>) -> ProviderResult<u64> { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I find log_
very confusing can we stick to write
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
sure, renamed
This adds some helper methods to write headers / transactions to static files, similar to the
append_receipts_from_blocks
method, inStorageWriter
. This makes thelog_transactions
method basically a wrapper overStorageWriter
methods now