-
Notifications
You must be signed in to change notification settings - Fork 479
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
Fix blob tx size calculation #8123
Conversation
We are using incorrect blob tx sizes when announcing blob txs to our peers |
Hive tests |
Co-authored-by: Lukasz Rozmej <[email protected]>
@@ -197,7 +197,9 @@ private void ClearPreHashInternal() | |||
/// </summary> | |||
public int GetLength(ITransactionSizeCalculator sizeCalculator, bool shouldCountBlobs) |
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.
Might be cool in addition to Transaction to have NetworkTransaction class-wrapper with GetTransaction method or so to make it clearer which form is used here or there. So you can't call GetLength for transaction without NetworkWrapper. May be too much work though
Co-authored-by: Lukasz Rozmej <[email protected]>
Fixes #8121
Changes
When adding filter for max tx size (#7925) I introduced a regression. In
SizeTxFilter
we are calculating sizes of blob txs without including blobs. The value is saved, so we are not recalculating it later, when we need size of the whole tx, including blobs.Types of changes
What types of changes does your code introduce?
Testing
Requires testing
If yes, did you write tests?
Notes on testing
Hive tests were failing because of regression, it is fixed now
Documentation
Requires documentation update
Requires explanation in Release Notes