Skip to content

Conversation

@shargon
Copy link
Member

@shargon shargon commented Mar 13, 2025

Description

Part of #3802
Require #3802

Type of change

  • Optimization (the change is only an optimization)
  • Style (the change is only a code style for better maintenance or standard purpose)
  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • This change requires a documentation update

How Has This Been Tested?

  • Test A
  • Test B

Test Configuration:

Checklist:

  • My code follows the style guidelines of this project
  • I have performed a self-review of my code
  • I have commented my code, particularly in hard-to-understand areas
  • I have made corresponding changes to the documentation
  • My changes generate no new warnings
  • I have added tests that prove my fix is effective or that my feature works
  • New and existing unit tests pass locally with my changes
  • Any dependent changes have been merged and published in downstream modules

@shargon shargon added the Blocked This issue can't be worked at the moment label Mar 13, 2025
@shargon shargon requested a review from superboyiii March 13, 2025 13:43
for (int i = 0; i < context.CommitPayloads.Length; i++)
var block = context.EnsureHeader();

if (!StorageItem.IsSerializable(TrimmedBlock.Create(block.Header, message.TransactionHashes)))
Copy link
Contributor

Choose a reason for hiding this comment

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

Trimmed blocks is just a header + transaction hashes, how can be unserializable (if not OOM)?

Full block is a header + transactions, but transactions are verified and if we need an serializability checks for them it should be done during verification.

Copy link
Member Author

Choose a reason for hiding this comment

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

Is serialized by p2p, it's a different method with different limits, but here we ensure that is also serializable for the vm

Copy link
Member

@vncoelho vncoelho left a comment

Choose a reason for hiding this comment

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

The idea looks good to me

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Blocked This issue can't be worked at the moment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants